Documentation ¶
Index ¶
Constants ¶
View Source
const ( // Added represents a file creation event. Added = "added" // Changed represents a file change event. Changed = "changed" // Removed represents a file removal event. Removed = "removed" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Watcher ¶
type Watcher struct {
// contains filtered or unexported fields
}
Watcher represents a simple struct for scanning and checking for any changes that occur in a set of watched files and directories.
func (*Watcher) NumTargets ¶
NumTargets returns the number of currently watched targets.
func (*Watcher) ScanForEvents ¶
ScanForEvents returns any events that occurred since the last scan.
Click to show internal directories.
Click to hide internal directories.