ReloadConfigIfChanged asks the underlying watcher to reload config from disk.
()
| 132 | |
| 133 | // ReloadConfigIfChanged asks the underlying watcher to reload config from disk. |
| 134 | func (w *WatcherWrapper) ReloadConfigIfChanged() bool { |
| 135 | if w == nil || w.reloadConfigIfChanged == nil { |
| 136 | return false |
| 137 | } |
| 138 | w.reloadConfigIfChanged() |
| 139 | return true |
| 140 | } |
| 141 | |
| 142 | // SetPluginAuthParser updates the plugin auth parser used by the watcher. |
| 143 | func (w *WatcherWrapper) SetPluginAuthParser(parser PluginAuthParser) { |
no test coverage detected