Documentation
¶
Index ¶
- Variables
- type NotifyWrapper
- type Option
- func OnPath(path string) Option
- func OnPaths(paths ...string) Option
- func WithErrorChainAsHandler(eventsCh chan<- error) Option
- func WithErrorEventHandler(handler func(error)) Option
- func WithEventChainAsHandler(eventsCh chan<- fsnotify.Event) Option
- func WithEventHandler(handler func(fsnotify.Event)) Option
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrFSWatcherStartedNotAllowingNewPath = errors.New("watcher already started, cannot add new path") ErrFSWatcherHasNoPathsConfigured = errors.New("watcher has no paths") )
Functions ¶
This section is empty.
Types ¶
type NotifyWrapper ¶
type NotifyWrapper struct {
// contains filtered or unexported fields
}
func NewFSWatcher ¶
func NewFSWatcher(opts ...Option) (*NotifyWrapper, error)
func (*NotifyWrapper) AddPath ¶
func (w *NotifyWrapper) AddPath(path string) error
func (*NotifyWrapper) Close ¶
func (w *NotifyWrapper) Close() error
func (*NotifyWrapper) Start ¶
func (w *NotifyWrapper) Start() error
type Option ¶
type Option func(*NotifyWrapper) error
Option is used to configure a NotifyWrapper.
func WithErrorChainAsHandler ¶
func WithErrorEventHandler ¶
func WithEventChainAsHandler ¶
func WithEventHandler ¶
Click to show internal directories.
Click to hide internal directories.