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

Method WatchKey

pkg/ring/kv/prefix.go:45–47  ·  view source on GitHub ↗

WatchKey watches a key.

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

Source from the content-addressed store, hash-verified

43
44// WatchKey watches a key.
45func (c *prefixedKVClient) WatchKey(ctx context.Context, key string, f func(any) bool) {
46 c.client.WatchKey(ctx, c.prefix+key, f)
47}
48
49// WatchPrefix watches a prefix. For a prefix client it appends the prefix argument to the clients prefix.
50func (c *prefixedKVClient) WatchPrefix(ctx context.Context, prefix string, f func(string, any) bool) {

Callers

nothing calls this directly

Calls 1

WatchKeyMethod · 0.65

Tested by

no test coverage detected