generalise file watcher to an UpdateListener
1 file changed, 12 insertions(+), 0 deletions(-)
changed files
A internal/update/update.go
@@ -0,0 +1,12 @@ +package update + +import "github.com/fsnotify/fsnotify" + +type Listener interface { + Wait(chan<- Event, chan<- error) error +} + +type Event struct { + FileEvents []fsnotify.Event + Revision string +}