Documentation ¶
Index ¶
Constants ¶
View Source
const ( // DriverNameFANotify is the name of the FANotify driver. // // FANotify should be preferred over INotify because it is more performant and does not need to recursively watch // subdirectories. However, it is not possible to use fanotify if the specified path is not a mountpoint because we // need to use the unix.FAN_MARK_FILESYSTEM flag for this functionality. DriverNameFANotify = "fanotify" // DriverNameINotify is the name of the inotify driver. DriverNameINotify = "inotify" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Event ¶
type Event int
Event is a numeric code identifying the event.
const ( // EventAdd represents the add event. EventAdd Event = iota // EventRemove represents the remove event. EventRemove // EventWrite represents the write event (a file that was opened for writing was closed). EventWrite // EventRename represents the rename event. This event will fire when a file is renamed to the watched file name, // e.g. If watching `/some-dir`, and a file is renamed from `/some-dir/file.txt.tmp` to `/some-dir/file.txt`, the // event fires for `/some-dir/file.txt`, and not for `/some-dir/file.txt.tmp`. EventRename )
Click to show internal directories.
Click to hide internal directories.