watcher

package
v0.0.0-...-595eb68 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 14, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Options

type Options struct {
	Path          string   `json:"path" yaml:"path"`
	Extensions    []string `json:"extensions" yaml:"extensions"`
	ExcludedPaths []string `json:"excluded_paths" yaml:"excluded_paths"`
	Recursive     bool     `json:"recursive" yaml:"recursive"`
}

func (*Options) MatchesExcludedPath

func (o *Options) MatchesExcludedPath(name string) bool

func (*Options) MatchesExtensions

func (o *Options) MatchesExtensions(path string) bool

type Watcher

type Watcher struct {
	// contains filtered or unexported fields
}

func NewWatcher

func NewWatcher(options Options) (*Watcher, error)

func (*Watcher) Close

func (w *Watcher) Close() error

func (*Watcher) Start

func (w *Watcher) Start() error

func (*Watcher) WatcherEvents

func (w *Watcher) WatcherEvents(watcherFunc func(event fsnotify.Event))

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL