internal/events/update.go (view raw)
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 | package events import ( "github.com/fsnotify/fsnotify" "gitlab.com/tozd/go/errors" ) type CIEvent struct { RunID uint64 } type FSEvent struct { Events map[string]fsnotify.Op } type Event struct { CIEvent FSEvent } type Listener interface { GetLatestRunID() (uint64, errors.E) Subscribe() (<-chan Event, errors.E) } |