WatchKey is a part of kv.Client interface.
(ctx context.Context, key string, f func(interface{}) bool)
| 322 | |
| 323 | // WatchKey is a part of kv.Client interface. |
| 324 | func (m *MultiClient) WatchKey(ctx context.Context, key string, f func(interface{}) bool) { |
| 325 | _ = m.runWithPrimaryClient(ctx, func(newCtx context.Context, primary kvclient) error { |
| 326 | primary.client.WatchKey(newCtx, key, f) |
| 327 | return newCtx.Err() |
| 328 | }) |
| 329 | } |
| 330 | |
| 331 | // WatchPrefix is a part of kv.Client interface. |
| 332 | func (m *MultiClient) WatchPrefix(ctx context.Context, prefix string, f func(string, interface{}) bool) { |
nothing calls this directly
no test coverage detected