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