MCPcopy
hub / github.com/grafana/dskit / WatchKey

Method WatchKey

kv/mock.go:90–94  ·  view source on GitHub ↗
(ctx context.Context, key string, f func(interface{}) bool)

Source from the content-addressed store, hash-verified

88}
89
90func (mc *MockCountingClient) WatchKey(ctx context.Context, key string, f func(interface{}) bool) {
91 mc.WatchKeyCalls.Inc()
92
93 mc.client.WatchKey(ctx, key, f)
94}
95
96func (mc *MockCountingClient) WatchPrefix(ctx context.Context, key string, f func(string, interface{}) bool) {
97 mc.WatchPrefixCalls.Inc()

Callers

nothing calls this directly

Calls 1

WatchKeyMethod · 0.65

Tested by

no test coverage detected