Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewRealWatcher ¶
func NewRealWatcher(header WatcherDesc, logger io.Writer) (watcher, error)
Types ¶
type BehaviourDesc ¶
type BehaviourDesc struct {
Event EventTypes
Entry EntryRules
Retry RetryRules
Throttle ThrottlingRules
}
type EntryNamesRules ¶
type EntryNamesRules []string
type EntryRules ¶
type EntryRules struct {
NameRules EntryNamesRules
}
func NewEntryRules ¶
func NewEntryRules() EntryRules
func (EntryRules) WithNameRule ¶
func (e EntryRules) WithNameRule(rule string) EntryRules
type EventTypes ¶
func NewEventTypes ¶
func NewEventTypes() EventTypes
func (EventTypes) WithChmod ¶
func (e EventTypes) WithChmod() EventTypes
func (EventTypes) WithCreate ¶
func (e EventTypes) WithCreate() EventTypes
func (EventTypes) WithRemove ¶
func (e EventTypes) WithRemove() EventTypes
func (EventTypes) WithRename ¶
func (e EventTypes) WithRename() EventTypes
func (EventTypes) WithWrite ¶
func (e EventTypes) WithWrite() EventTypes
type NonRecursiveNotifier ¶
type NonRecursiveNotifier struct {
// contains filtered or unexported fields
}
func (NonRecursiveNotifier) Errors ¶
func (e NonRecursiveNotifier) Errors() chan error
func (NonRecursiveNotifier) Events ¶
func (e NonRecursiveNotifier) Events() chan fsnotify.Event
type RecursiveNotifier ¶
type RecursiveNotifier struct {
// contains filtered or unexported fields
}
func (RecursiveNotifier) Errors ¶
func (e RecursiveNotifier) Errors() chan error
func (RecursiveNotifier) Events ¶
func (e RecursiveNotifier) Events() chan fsnotify.Event
type RetryRules ¶
type RetryRules struct {
Attempts uint
}
type ThrottlingRules ¶
type WatcherDesc ¶
type WatcherDesc struct {
Do Action
Name string
Path string
Behave BehaviourDesc
Recursive bool
}
Click to show internal directories.
Click to hide internal directories.