Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type LazyWatcher ¶
type LazyWatcher struct {
// contains filtered or unexported fields
}
func NewLazyWatcher ¶
func NewLazyWatcher(root string, ignorePaths []string, logger *zap.Logger) *LazyWatcher
func (*LazyWatcher) Close ¶
func (w *LazyWatcher) Close()
func (*LazyWatcher) Subscribe ¶
func (w *LazyWatcher) Subscribe(ctx context.Context, cb WatchCallback) error
type WatchCallback ¶
type WatchCallback func(event []WatchEvent)
type WatchEvent ¶
type Watcher ¶
type Watcher struct {
// contains filtered or unexported fields
}
Watcher implements a recursive, batching file watcher on top of fsnotify.
func NewWatcher ¶
NewWatcher creates a new watcher for the given root directory. The root directory must be an absolute path.
Click to show internal directories.
Click to hide internal directories.