Source watcher ErrStoppedWatcher and fixed test

This commit is contained in:
Milos Gajdos
2019-08-20 22:32:47 +01:00
parent dfbd730b8c
commit 4ea27517b5
7 changed files with 37 additions and 19 deletions

View File

@@ -2,9 +2,15 @@
package source
import (
"errors"
"time"
)
var (
// ErrWatcherStopped is returned when source watcher has been stopped
ErrWatcherStopped = errors.New("watcher stopped")
)
// Source is the source from which config is loaded
type Source interface {
Read() (*ChangeSet, error)