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 | package events
import (
"github.com/fsnotify/fsnotify"
)
type CIEvent struct {
RunID uint64
}
type FSEvent struct {
Events map[string]fsnotify.Op
}
type Event struct {
CIEvent
FSEvent
}
type Listener interface {
GetLatestRunID() (uint64, error)
Subscribe() (<-chan Event, error)
}
|