watcher

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Feb 22, 2022 License: MIT Imports: 5 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 struct {
	FSNotifyWatcher *fsnotify.Watcher
	Directories     map[string]bool
	Excludes        []string
	Done            chan bool
	Events          chan string
}

Watcher ...

func NewWatcher

func NewWatcher(excludes []string) (*Watcher, error)

NewWatcher ...

func (*Watcher) Add

func (w *Watcher) Add(dir string)

Add ...

func (*Watcher) Close

func (w *Watcher) Close()

Close ...

func (*Watcher) Run

func (w *Watcher) Run()

Run ...

Jump to

Keyboard shortcuts

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