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