Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func LoggingEventHandler ¶
LoggingEventHandler is an example EventHandler that logs fsnotify events
func Watch ¶
func Watch(ctx context.Context, path string, eventHandler EventHandler) error
Watch a filesystem path and call the eventHandler (asyncronously) when an event happens. When the supplied context is canceled, watching will stop. If the path is a directory, events will also trigger for immediate children.
Types ¶
type EventHandler ¶
Click to show internal directories.
Click to hide internal directories.