MCPcopy
hub / github.com/nats-io/nats.go / watcher

Struct watcher

kv.go:961–971  ·  view source on GitHub ↗

Implementation for Watch

Source from the content-addressed store, hash-verified

959
960// Implementation for Watch
961type watcher struct {
962 mu sync.Mutex
963 updates chan KeyValueEntry
964 sub *Subscription
965 initDone bool
966 initPending uint64
967 received uint64
968 ctx context.Context
969 initDoneTimer *time.Timer
970 errCh chan error
971}
972
973// Context returns the context for the watcher if set.
974func (w *watcher) Context() context.Context {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected