Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Event ¶
type Event struct { // Relative path to the file or directory. Name string `json:"name"` // File operation that triggered the event. Op Op `json:"op"` }
Event represents a single file system notification.
type Op ¶
type Op uint32
Op describes a set of file operations.
These are the generalized file operations that can trigger a notification.
type WatchPathConfig ¶
type WatchPathConfig struct { // Directory to watch for events Directory string `json:"directory"` // Path is relative path of object to watch with respect to the directory Path string `json:"path,omitempty"` // PathRegexp is regexp of relative path of object to watch with respect to the directory PathRegexp string `json:"pathRegexp,omitempty"` }
func (*WatchPathConfig) Validate ¶
func (c *WatchPathConfig) Validate() error
Validate validates WatchPathConfig
Click to show internal directories.
Click to hide internal directories.