use redis notifications to update website
1 file changed, 13 insertions(+), 4 deletions(-)
changed files
M internal/events/update.go → internal/events/update.go
@@ -2,11 +2,20 @@ package events import "github.com/fsnotify/fsnotify" -type Listener interface { - Wait(chan<- Event, chan<- error) error +type CIEvent struct { + RunID uint64 +} + +type FSEvent struct { + Events map[string]fsnotify.Op } type Event struct { - FileEvents []fsnotify.Event - Revision string + CIEvent + FSEvent +} + +type Listener interface { + GetLatestRunID() (uint64, error) + Subscribe() (<-chan Event, error) }