all repos — homestead @ e4bdf0dd0740c21e89dd42413b7bc76da381fd37

Code for my website

generalise file watcher to an UpdateListener

Alan Pearce
commit

e4bdf0dd0740c21e89dd42413b7bc76da381fd37

parent

7a987dac4c9c4c0fa2bc8484566f08bdd6d82f56

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 +}