generic

package
v1.1.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 29, 2020 License: MIT Imports: 1 Imported by: 0

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL