WatcherAdapter is the interface for configuration watcher.
| 34 | |
| 35 | // WatcherAdapter is the interface for configuration watcher. |
| 36 | type 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 | } |
no outgoing calls
no test coverage detected
searching dependent graphs…