Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type NotifyHandlerFun ¶
type NotifyWatcher ¶
type NotifyWatcher struct {
// contains filtered or unexported fields
}
func NewNotifyWatcher ¶
func NewNotifyWatcher(dir string, recursive bool, handler NotifyHandlerFun, events ...notify.Event) *NotifyWatcher
NewNotifyWatcher watches the given dir and calls handler on inotify events a dir ending in "/*" will result in a recursive watch
func (*NotifyWatcher) IsWatching ¶
func (nw *NotifyWatcher) IsWatching() bool
func (*NotifyWatcher) Stop ¶
func (nw *NotifyWatcher) Stop() error
func (*NotifyWatcher) Watch ¶
func (nw *NotifyWatcher) Watch() error
Watch starts an initialised notify watcher (blockings)
Click to show internal directories.
Click to hide internal directories.