watcher

package
v0.0.0-...-244c27e Latest Latest
Warning

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

Go to latest
Published: May 21, 2022 License: MIT Imports: 9 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Add

func Add(file string, fn cbChanged) error

func Close

func Close()

func Remove

func Remove(file string) error

Types

type Watcher

type Watcher struct {
	Watcher *fsnotify.Watcher
	// contains filtered or unexported fields
}

func GetWatcher

func GetWatcher() *Watcher

func NewWatcher

func NewWatcher() *Watcher

func (*Watcher) Add

func (w *Watcher) Add(file string, fn cbChanged) error

func (*Watcher) Remove

func (w *Watcher) Remove(file string) error

func (*Watcher) Start

func (w *Watcher) Start()

func (*Watcher) Stop

func (w *Watcher) Stop()

Jump to

Keyboard shortcuts

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