Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CompareAndUpdate ¶
CompareAndUpdate conditionally sets an etcd key value pair if the value differs from what is current.
func NewStream ¶
func NewStream(logger kitlog.Logger, client etcdGetter, opt StreamOptions) (<-chan *mvccpb.KeyValue, <-chan struct{})
NewStream accepts an etcd client with which we watch for changes to our selected keys and push them down the output channel. The advantages to using this interface over what etcd already provides is the polling interval, which ensures on boot that we receive the initial value, along with at polling intervals.
Types ¶
Click to show internal directories.
Click to hide internal directories.