WatchKey is part of kv.Client interface.
(ctx context.Context, key string, f func(interface{}) bool)
| 101 | |
| 102 | // WatchKey is part of kv.Client interface. |
| 103 | func (c *Client) WatchKey(ctx context.Context, key string, f func(interface{}) bool) { |
| 104 | err := c.awaitKVRunningOrStopping(ctx) |
| 105 | if err != nil { |
| 106 | return |
| 107 | } |
| 108 | |
| 109 | c.kv.WatchKey(ctx, key, c.codec, f) |
| 110 | } |
| 111 | |
| 112 | // WatchPrefix calls f whenever any value stored under prefix changes. |
| 113 | // Part of kv.Client interface. |
nothing calls this directly
no test coverage detected