watch

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Jun 27, 2021 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Event

type Event = fsnotify.Event

type Ignore added in v0.0.4

type Ignore = ignore.Matcher

type Op added in v0.0.4

type Op = fsnotify.Op

type Watcher

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

func New

func New(dir string, defaultIgnore []byte) (*Watcher, error)

func (*Watcher) Close

func (w *Watcher) Close() error

func (*Watcher) SetOnChanged

func (w *Watcher) SetOnChanged(handler func(ev Event))

func (*Watcher) Watch

func (w *Watcher) Watch(ctx context.Context) error

func (*Watcher) WithDefaultIgnore added in v0.0.4

func (w *Watcher) WithDefaultIgnore(defaultIgnore []byte) *Watcher

Jump to

Keyboard shortcuts

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