MCPcopy
hub / github.com/grafana/dskit / List

Method List

kv/memberlist/memberlist_client.go:63–70  ·  view source on GitHub ↗

List is part of kv.Client interface.

(ctx context.Context, prefix string)

Source from the content-addressed store, hash-verified

61
62// List is part of kv.Client interface.
63func (c *Client) List(ctx context.Context, prefix string) ([]string, error) {
64 err := c.awaitKVRunningOrStopping(ctx)
65 if err != nil {
66 return nil, err
67 }
68
69 return c.kv.List(prefix), nil
70}
71
72// Get is part of kv.Client interface.
73func (c *Client) Get(ctx context.Context, key string) (interface{}, error) {

Callers

nothing calls this directly

Calls 2

ListMethod · 0.65

Tested by

no test coverage detected