fswatcher

package
v1.34.1 Latest Latest
Warning

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

Go to latest
Published: May 16, 2022 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Watcher

type Watcher interface {
	Add(name string) error
	Events() chan fsnotify.Event
	Errors() chan error
}

Watcher watches for Events and Errors once a resource is added to the watch list. Primarily used for mocking the fsnotify lib.

func NewWatcher

func NewWatcher() (Watcher, error)

NewWatcher creates a new fsnotifyWatcherWrapper, wrapping the fsnotify.Watcher.

Jump to

Keyboard shortcuts

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