MCPcopy Create free account
hub / github.com/cortexproject/cortex / WatchKey

Method WatchKey

pkg/ring/kv/client.go:114–114  ·  view source on GitHub ↗

WatchKey calls f whenever the value stored under key changes.

(ctx context.Context, key string, f func(any) bool)

Source from the content-addressed store, hash-verified

112
113 // WatchKey calls f whenever the value stored under key changes.
114 WatchKey(ctx context.Context, key string, f func(any) bool)
115
116 // WatchPrefix calls f whenever any value stored under prefix changes.
117 WatchPrefix(ctx context.Context, prefix string, f func(string, any) bool)

Callers 13

loopMethod · 0.65
WatchKeyMethod · 0.65
WatchKeyMethod · 0.65
WatchKeyMethod · 0.65
TestWatchKeyFunction · 0.65
Test_WatchKeyFunction · 0.65
observeValueForSomeTimeFunction · 0.65
TestMultipleClientsFunction · 0.65

Calls

no outgoing calls

Tested by 8

TestWatchKeyFunction · 0.52
Test_WatchKeyFunction · 0.52
observeValueForSomeTimeFunction · 0.52
TestMultipleClientsFunction · 0.52