Documentation ¶
Overview ¶
Package listener provides an interface to an inotify-based system for watching a directory and its subdirectories for file close and file move events.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Listener ¶
type Listener struct {
// contains filtered or unexported fields
}
Listener contains all member variables required for the state of a running file listener.
func Create ¶
Create and set up an inotify watcher on the directory and its subdirectories. File events will be converted into `tarcache.LocalDataFile` structs and pointers to those structs will sent to the passed-in channel.
func (*Listener) ListenForever ¶
ListenForever listens for listen for FS events and sends them along the fileChannel until Stop is called.
Click to show internal directories.
Click to hide internal directories.