Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Notifier ¶
type Notifier interface {
Notify(ctx context.Context, watchers []events.Watcher, events chan<- events.Event, errors chan<- error) (Closer, error)
}
A notifier takes a set of watchers to watch and emits events when a file of those being watched changes. Errors will be sent over the error channel. The watcher keeps watching files until the ctx is done. The watcher returns a closer to stop watching the files.
Click to show internal directories.
Click to hide internal directories.