Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ClientInt ¶
ClientInt is a file watcher abstraction based on fsnotify.
func NewFileWatcher ¶
func NewFileWatcher(eventHandler EventHandler, errorHandler ErrorHandler) (ClientInt, error)
NewFileWatcher returns an implementation of ClientInt that continuously listens for fsnotify events and calls the event handler as soon as an event is received.
type ErrorHandler ¶
type ErrorHandler func(error)
ErrorHandler is called when a fsnotify error occurs.
type EventHandler ¶
EventHandler is called when a fsnotify event occurs.
Click to show internal directories.
Click to hide internal directories.