WithConfigWatcher is a CoreOption that adds a config watcher to the core (for hot reloading configs).
(watcher contract.ConfigWatcher)
| 108 | |
| 109 | // WithConfigWatcher is a CoreOption that adds a config watcher to the core (for hot reloading configs). |
| 110 | func WithConfigWatcher(watcher contract.ConfigWatcher) CoreOption { |
| 111 | return func(values *coreValues) { |
| 112 | values.configWatcher = watcher |
| 113 | } |
| 114 | } |
| 115 | |
| 116 | // SetConfigProvider is a CoreOption to replaces the default ConfigProvider. |
| 117 | func SetConfigProvider(provider ConfigProvider) CoreOption { |
no outgoing calls