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

Struct watcher

config/loader/memory/memory.go:42–50  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

40}
41
42type watcher struct {
43 sync.Mutex
44 value reader.Value
45 reader reader.Reader
46 version atomic.Value
47 exit chan bool
48 updates chan updateValue
49 path []string
50}
51
52func (w *watcher) getVersion() string {
53 return w.version.Load().(string)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected