(ctx context.Context, client kv.Client)
| 241 | } |
| 242 | |
| 243 | func (w *watcher) watch(ctx context.Context, client kv.Client) { |
| 244 | w.values = map[string][]interface{}{} |
| 245 | client.WatchPrefix(ctx, "", func(key string, value interface{}) bool { |
| 246 | w.values[key] = append(w.values[key], value) |
| 247 | return true |
| 248 | }) |
| 249 | } |
no test coverage detected