MCPcopy
hub / github.com/micro/go-micro / Watcher

Interface Watcher

registry/watcher.go:7–11  ·  view source on GitHub ↗

Watcher is an interface that returns updates about services within the registry.

Source from the content-addressed store, hash-verified

5// Watcher is an interface that returns updates
6// about services within the registry.
7type Watcher interface {
8 // Next is a blocking call
9 Next() (*Result, error)
10 Stop()
11}
12
13// Result is returned by a call to Next on
14// the watcher. Actions can be create, update, delete.

Callers 10

RunFunction · 0.95
RunFunction · 0.95
RunFunction · 0.95
RunFunction · 0.95
StartMethod · 0.95
StartMethod · 0.95
watchMethod · 0.95

Implementers 12

memWatcherregistry/memory_watcher.go
mdnsWatcherregistry/mdns_registry.go
etcdWatcherregistry/etcd/watcher.go
consulWatcherregistry/consul/watcher.go
natsWatcherregistry/nats/nats_watcher.go
watcherconfig/default.go
noopWatcherconfig/source/noop.go
watcherconfig/source/memory/watcher.go
watcherconfig/source/env/watcher.go
watcherconfig/source/file/watcher.go
watcherconfig/source/nats/watcher.go
watcherconfig/loader/memory/memory.go

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…