all repos — homestead @ 445c43ef8b981bfacc8b465b3997da413370043f

Code for my website

use redis notifications to update website

Alan Pearce
commit

445c43ef8b981bfacc8b465b3997da413370043f

parent

fd0f99dffb49f29531d1974a638c0ce883bf5db7

1 file changed, 13 insertions(+), 4 deletions(-)

changed files
M internal/events/update.gointernal/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) }