Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type TestStore ¶
type TestStore struct {
// contains filtered or unexported fields
}
TestStore - not concurrency safe
type Watch ¶
type Watch struct {
// contains filtered or unexported fields
}
func NewWatcher ¶
NewWatcher accepts a store name t, watcher configurations, and a store and returns a new watch with all watcher mechanisms.
func (*Watch) Close ¶
Close closes all running watchers and returns an error if a CloseTimeout is exceeded. if the CloseTimeout is zero, the close method waits indefinitely for the close operation to complete
func (*Watch) CollectStats ¶
func (w *Watch) CollectStats(exporter common.StatsCollector)
func (*Watch) Watch ¶
Watch return s a <-chan []byte on which all new detected configuration changes are pushed. Watch the initial value for watch will always be nil, if the key on the associated store does not exist or is empty. Watch can be called multiple times on the same key at different places, or on multiple different keys on the same store.