Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ConfigurationWatcher ¶
type ConfigurationWatcher struct { Storage model.ConfigurationStorage // contains filtered or unexported fields }
ConfigurationWatcher is a storage-agnostic config watcher.
func NewConfigurationWatcher ¶
func NewConfigurationWatcher(configStorage model.ConfigurationStorage, settingsKey string, watchChan chan interface{}) (*ConfigurationWatcher, error)
NewConfigurationWatcher creates and returns new storage-agnostic configuration watcher.
func (*ConfigurationWatcher) Stop ¶
func (cw *ConfigurationWatcher) Stop()
Stop stops listening on config updates.
func (*ConfigurationWatcher) Watch ¶
func (cw *ConfigurationWatcher) Watch()
Watch watches for configuration updates.
func (*ConfigurationWatcher) WatchChan ¶
func (cw *ConfigurationWatcher) WatchChan() chan interface{}
WatchChan returns watcher's event channel.
Click to show internal directories.
Click to hide internal directories.