Discover Packages
github.com/gocardless/pgsql-cluster-manager
etcd
package
Version:
v0.0.7
Opens a new window with list of versions in this module.
Published: Apr 16, 2018
License: MIT
Opens a new window with license information.
Imports: 10
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
Documentation
¶
func NewSubscriber(client *clientv3 .Client , options ...func(*subscriber)) *subscriber
NewSubscriber generates a Daemon with a watcher constructed using the given etcd config
WithLogger creates an option to configure a subscriber with a logging handle.
func WithRetryInterval(interval time .Duration ) func(*subscriber)
WithRetryInterval configures the duration between retrying handlers that have failed
Run will update the etcd key with the given value, but only if the value in etcd is
different from our desired update. This avoids causing watchers that are subscribed to
changes on this key triggering for multiple PUTs of the same value.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.