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

Struct watcher

jetstream/kv.go:1188–1195  ·  view source on GitHub ↗

Implementation for Watch

Source from the content-addressed store, hash-verified

1186
1187// Implementation for Watch
1188type watcher struct {
1189 mu sync.Mutex
1190 updates chan KeyValueEntry
1191 sub *nats.Subscription
1192 initDone bool
1193 initPending uint64
1194 received uint64
1195}
1196
1197// Updates returns the interior channel.
1198func (w *watcher) Updates() <-chan KeyValueEntry {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected