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

Function PrefixClient

kv/prefix.go:15–17  ·  view source on GitHub ↗

PrefixClient takes a KVClient and forces a prefix on all its operations.

(client Client, prefix string)

Source from the content-addressed store, hash-verified

13
14// PrefixClient takes a KVClient and forces a prefix on all its operations.
15func PrefixClient(client Client, prefix string) Client {
16 return &prefixedKVClient{prefix, client}
17}
18
19// List returns a list of keys under a given prefix.
20func (c *prefixedKVClient) List(ctx context.Context, prefix string) ([]string, error) {

Callers 1

createClientFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected