etcd

package
v0.1.1-0...-f9b01a3 Latest Latest
Warning

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

Go to latest
Published: Dec 21, 2020 License: MIT Imports: 3 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 {
	Client *clientv3.Client
	// contains filtered or unexported fields
}

ConfigurationWatcher wraps etcd client.

func NewConfigurationWatcher

func NewConfigurationWatcher(configStorage *etcd.ConfigurationStorage, settingsKey string, watchChan chan interface{}) (*ConfigurationWatcher, error)

NewConfigurationWatcher creates and returns new etcd-backed configuration watcher.

func (*ConfigurationWatcher) Stop

func (cw *ConfigurationWatcher) Stop()

Stop stops watcher.

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