Documentation ¶ Index ¶ type EventType func (e EventType) String() string type FileEvent type Watcher func NewWatcher(root string, ignore *indexer.IgnoreMatcher, debounceMs int) (*Watcher, error) func (w *Watcher) Close() error func (w *Watcher) Events() <-chan FileEvent func (w *Watcher) Start(ctx context.Context) error Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ This section is empty. Types ¶ type EventType ¶ type EventType int const ( EventCreate EventType = iota EventModify EventDelete EventRename ) func (EventType) String ¶ func (e EventType) String() string type FileEvent ¶ type FileEvent struct { Type EventType Path string } type Watcher ¶ type Watcher struct { // contains filtered or unexported fields } func NewWatcher ¶ func NewWatcher(root string, ignore *indexer.IgnoreMatcher, debounceMs int) (*Watcher, error) func (*Watcher) Close ¶ func (w *Watcher) Close() error func (*Watcher) Events ¶ func (w *Watcher) Events() <-chan FileEvent func (*Watcher) Start ¶ func (w *Watcher) Start(ctx context.Context) error Source Files ¶ View all Source files watcher.go Click to show internal directories. Click to hide internal directories.