From 3af280e1d44263a039daab3eda189af684f795eb Mon Sep 17 00:00:00 2001 From: hackerman <3372410+aeneasr@users.noreply.github.com> Date: Mon, 30 Nov 2020 21:26:27 +0100 Subject: [PATCH] Remove `Watch()` from `Provider` interface Closes #45 --- interfaces.go | 5 ----- 1 file changed, 5 deletions(-) diff --git a/interfaces.go b/interfaces.go index d6a8069a..e87b573b 100644 --- a/interfaces.go +++ b/interfaces.go @@ -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.