MCPcopy
hub / github.com/gogf/gf / WatcherAdapter

Interface WatcherAdapter

os/gcfg/gcfg_adaper.go:36–45  ·  view source on GitHub ↗

WatcherAdapter is the interface for configuration watcher.

Source from the content-addressed store, hash-verified

34
35// WatcherAdapter is the interface for configuration watcher.
36type WatcherAdapter interface {
37 // AddWatcher adds a watcher function for specified `pattern` and `resource`.
38 AddWatcher(name string, fn WatcherFunc)
39 // RemoveWatcher removes the watcher function for specified `pattern` and `resource`.
40 RemoveWatcher(name string)
41 // GetWatcherNames returns all watcher names.
42 GetWatcherNames() []string
43 // IsWatching checks and returns whether the specified `pattern` is watching.
44 IsWatching(name string) bool
45}

Callers 12

WatchMethod · 0.65
StopWatchMethod · 0.65
IsWatchingMethod · 0.65
IsWatchingMethod · 0.65
IsWatchingMethod · 0.65
IsWatchingMethod · 0.65
IsWatchingMethod · 0.65
IsWatchingMethod · 0.65
IsWatchingMethod · 0.65

Implementers 7

Clientcontrib/config/polaris/polaris.go
Clientcontrib/config/apollo/apollo.go
Clientcontrib/config/consul/consul.go
Clientcontrib/config/kubecm/kubecm.go
Clientcontrib/config/nacos/nacos.go
AdapterFileos/gcfg/gcfg_adapter_file.go
AdapterContentos/gcfg/gcfg_adapter_content.go

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…