MCPcopy Create free account
hub / github.com/cloudwan/gohan / WatchContext

Method WatchContext

sync/sync.go:44–44  ·  view source on GitHub ↗

WatchContext keep watch update under the path until context is canceled.

(ctx context.Context, path string, revision int64)

Source from the content-addressed store, hash-verified

42 Watch(path string, responseChan chan *Event, stopChan chan bool, revision int64) error
43 //WatchContext keep watch update under the path until context is canceled.
44 WatchContext(ctx context.Context, path string, revision int64) <-chan *Event
45 GetProcessID() string
46 Close()
47}

Callers 5

RunMethod · 0.65
processSyncWatchMethod · 0.65
iterateMethod · 0.65
WatchMethod · 0.65
sync_test.goFile · 0.65

Implementers 5

Syncsync/etcd/etcd.go
MockSyncsync/mocks/sync_mock.go
MockSyncMockRecordersync/mocks/sync_mock.go
Syncsync/noop/noop.go
Syncsync/etcdv3/etcd.go

Calls

no outgoing calls

Tested by

no test coverage detected