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

Method WatchKey

kv/memberlist/memberlist_client.go:103–110  ·  view source on GitHub ↗

WatchKey is part of kv.Client interface.

(ctx context.Context, key string, f func(interface{}) bool)

Source from the content-addressed store, hash-verified

101
102// WatchKey is part of kv.Client interface.
103func (c *Client) WatchKey(ctx context.Context, key string, f func(interface{}) bool) {
104 err := c.awaitKVRunningOrStopping(ctx)
105 if err != nil {
106 return
107 }
108
109 c.kv.WatchKey(ctx, key, c.codec, f)
110}
111
112// WatchPrefix calls f whenever any value stored under prefix changes.
113// Part of kv.Client interface.

Callers

nothing calls this directly

Calls 2

WatchKeyMethod · 0.65

Tested by

no test coverage detected