Skip to content

Commit

Permalink
Remove Watch() from Provider interface
Browse files Browse the repository at this point in the history
Closes knadh#45
  • Loading branch information
aeneasr authored Nov 30, 2020
1 parent e136d6c commit 3af280e
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions interfaces.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,6 @@ type Provider interface {
// It is important to note that the string keys should not be flat delimited
// keys like `parent.child.key`, but nested like `{parent: {child: {key: 1}}}`.
Read() (map[string]interface{}, error)

// Watch watches the source for changes, for instance, changes to a file,
// and invokes a callback with an `event` interface, which a provider
// is free to substitute with its own type, including nil.
Watch(func(event interface{}, err error)) error
}

// Parser represents a configuration format parser.
Expand Down

0 comments on commit 3af280e

Please sign in to comment.