Documentation ¶ Index ¶ type FSWatcher func NewFSWatcher() *FSWatcher func (fs *FSWatcher) Close() func (fs *FSWatcher) Enable() func (fs *FSWatcher) Init(rdirs, dirs []string) (chan error, chan struct{}) func (fs *FSWatcher) Run() (chan struct{}, chan string, chan error) type Inotify type Walker Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ This section is empty. Types ¶ type FSWatcher ¶ type FSWatcher struct { // contains filtered or unexported fields } func NewFSWatcher ¶ func NewFSWatcher() *FSWatcher func (*FSWatcher) Close ¶ func (fs *FSWatcher) Close() func (*FSWatcher) Enable ¶ added in v1.2.1 func (fs *FSWatcher) Enable() func (*FSWatcher) Init ¶ func (fs *FSWatcher) Init(rdirs, dirs []string) (chan error, chan struct{}) func (*FSWatcher) Run ¶ func (fs *FSWatcher) Run() (chan struct{}, chan string, chan error) type Inotify ¶ type Inotify interface { Init() error Watch(dir string) error NumWatchers() int Read(buf []byte) (int, error) ParseNextEvent(buf []byte) (*inotify.Event, uint32, error) Close() error } type Walker ¶ type Walker interface { Walk(dir string, depth int) (chan string, chan error, chan struct{}) } Source Files ¶ View all Source files fswatcher.go Directories ¶ Show internal Expand all Path Synopsis inotify walker Click to show internal directories. Click to hide internal directories.