Documentation ¶
Index ¶
Constants ¶
View Source
const ( // OpUnsupported stands for currently unsupported file operation type. OpUnsupported = Op(iota) // OpRemove is used when watched file was removed. OpRemove // OpCreate is used when watched file was created. OpCreate )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type WatchEvent ¶
WatchEvent is a single event that happens during filesystem watch.
type Watcher ¶
Watcher is a filesystem watcher that can be used to watch filesystem changes.
func NewWatcher ¶
NewWatcher creates new Watcher that will be watching passed files or directories that already exist. Currently only create and remove operations are supported. NOTE: when watching a single file no new event will be triggered after it's removal.
Click to show internal directories.
Click to hide internal directories.