Versions in this module Expand all Collapse all v0 v0.8.4 Nov 4, 2019 Changes in this version + var ErrAlreadyClosed = errors.New("PollDiffWatcher already closed") + var ErrNoLoader = errors.New("You must give a non nil Loader to the poll diff watcher") + var ErrNoWatcherSupplied = errors.New("watcher has to be supplied when registering a watcher") + type Config struct + Debug bool + Diff bool + InitValue konfig.Values + Loader konfig.Loader + Logger nlogger.Provider + Rater Rater + type PollWatcher struct + func New(cfg *Config) *PollWatcher + func (t *PollWatcher) Close() error + func (t *PollWatcher) Done() <-chan struct{} + func (t *PollWatcher) Err() error + func (t *PollWatcher) Start() error + func (t *PollWatcher) Watch() <-chan struct{} + type Rater interface + Time func() time.Duration + type Time time.Duration + func (t Time) Time() time.Duration