Documentation ¶
Index ¶
Constants ¶
View Source
const ( // ChmodEvent is emitted when a File attributes was changed. ChmodEvent = EventType(fsnotify.Chmod) // WriteEvent is emitted when a pathname was written to; this does *not* mean the write has finished. WriteEvent = EventType(fsnotify.Write) // CreateEvent is emitted when a path(dir or file) was created CreateEvent = EventType(fsnotify.Create) // RemoveEvent is emitted when a path was removed; any watches on it will be removed. RemoveEvent = EventType(fsnotify.Remove) // RenameEvent is emitted when a path was renamed to something else; // any watched on it will be removed. RenameEvent = EventType(fsnotify.Rename) )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Configs ¶
type Configs struct { // Exts is the list of file extensions to watch for Exts []string // Paths is the list of directories and subdirectories we are watching Paths []string // Exclude is the list of directories to Exclude from the watch list Exclude []string // recursive set the Delay for event handlers execution Delay time.Duration // RootDir iis the current working directory RootDir string // Recursive enables watching on the subdirectories of the paths in the watch list Recursive bool // RootPaths is the list of parent directories to watch from the config RootPaths []string }
func NewConfigs ¶
type EventHandler ¶
type EventHandler func(Event)
Click to show internal directories.
Click to hide internal directories.