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