filewatcher

package
v0.0.0-...-5c7ce50 Latest Latest
Warning

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

Go to latest
Published: Aug 1, 2024 License: ISC Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Create = fsnotify.Create
	Write  = fsnotify.Write
	Remove = fsnotify.Remove
	Rename = fsnotify.Rename
)

Variables

This section is empty.

Functions

This section is empty.

Types

type FileWatcher

type FileWatcher struct {
	Watcher *fsnotify.Watcher
	Events  chan fsnotify.Event
	Errors  chan error
	// contains filtered or unexported fields
}

func NewFileWatcher

func NewFileWatcher() (*FileWatcher, error)

func (*FileWatcher) AddWatch

func (fw *FileWatcher) AddWatch(path string) error

func (*FileWatcher) Close

func (fw *FileWatcher) Close()

func (*FileWatcher) Watch

func (fw *FileWatcher) Watch()

type Op

type Op = fsnotify.Op

Jump to

Keyboard shortcuts

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