Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrInvalidFunction = fmt.Errorf("Invalid function")
ErrInvalidFunction is the "Invalid function" error.
View Source
var ErrUnknownDriver = fmt.Errorf("Unknown driver")
ErrUnknownDriver is the "Unknown driver" error.
View Source
var ErrWatchExists = fmt.Errorf("Watch already exists")
ErrWatchExists is the "Watch already exists" error.
Functions ¶
This section is empty.
Types ¶
type Driver ¶
type Driver interface { Name() string PrefixPath() string Watch(path string, identifier string, f func(path string, event string) bool) error Unwatch(path string, identifier string) error }
Driver represents a low-level fs notification driver.
type ErrInvalidPath ¶
type ErrInvalidPath struct {
PrefixPath string
}
ErrInvalidPath is the "Invalid path" error.
func (*ErrInvalidPath) Error ¶
func (e *ErrInvalidPath) Error() string
Error returns the error string.
Click to show internal directories.
Click to hide internal directories.