Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type EventError ¶
type EventError struct {
Err error
}
EventError represents an error when trying to catch events in the Watcher (fsnotify.Watcher)
func (*EventError) Error ¶
func (e *EventError) Error() string
Allow EventError to satisfy error interface.
type Watcher ¶
func InitWatcher ¶
func (*Watcher) AddPathRecursive ¶
(*fsnotify.Watcher).Add() function do not add recursively. AddPathRecursive recursively adds all directories inside the root path to the watcher.
func (*Watcher) AddPathRecursiveAndUpload ¶
func (*Watcher) AddPathsAlreadyConfigured ¶
func (w *Watcher) AddPathsAlreadyConfigured()
AddPathsAlreadyConfigured adds pre-configured paths to the watcher
func (*Watcher) RemovePathRecursive ¶
(*fsnotify.Watcher).Remove() function do not remove recursively. RemovePathRecursive recursively removes all sub-directories of the root path from the watcher.
type WatcherFailedInitError ¶
type WatcherFailedInitError struct {
Err error
}
WatcherFailedInitError represents an error when trying to init a Watcher (fsnotify.Watcher)
func (*WatcherFailedInitError) Error ¶
func (e *WatcherFailedInitError) Error() string
Allow WatcherFailedInitError to satisfy error interface.