Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Matcher ¶
Matcher is a interface to abstract from gobwas/glob
func GobwasMatcherFromPatterns ¶
MatcherFromPatterns returns the matcher according to the given patterns or an error. It uses github.com/gobwas/glob to generate Matcher. Thus for the supported syntax have a look there.
type RecursiveWatcher ¶
type RecursiveWatcher struct { Events chan fsnotify.Event Errors chan error // contains filtered or unexported fields }
func NewRecursiveWatcher ¶
func NewRecursiveWatcher(ctx context.Context, ignores []Matcher, initialDirs ...string) (*RecursiveWatcher, error)
NewRecursiveWatcher creates a new recursive file watcher. You can listen for errors and events via the channels Events and Errors
Click to show internal directories.
Click to hide internal directories.