watch

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: May 10, 2021 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrFileNotFound = errors.New("No such file or directory")
)

Functions

This section is empty.

Types

type Watch

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

func New

func New(log logger.ILogger) (*Watch, error)

func (*Watch) Load

func (w *Watch) Load() error

func (*Watch) Run

func (w *Watch) Run()

func (*Watch) Stop

func (w *Watch) Stop()

func (*Watch) Watch

func (w *Watch) Watch() error

type Watcher

type Watcher interface {
	Watch(watcher *fsnotify.Watcher) error
	Load() error
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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