fsnotify

package
v2.7.10 Latest Latest
Warning

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

Go to latest
Published: Feb 6, 2023 License: Apache-2.0 Imports: 6 Imported by: 2 modules, 8 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

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

Variables

This section is empty.

Functions

This section is empty.

Types

type Event

type Event = fsnotify.Event

type Watcher

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

func NewWatcher

func NewWatcher() (*Watcher, error)

NewWatcher creates a new Watcher. It's allows to watch a single file or a directory multiple times.

func (*Watcher) Add

func (w *Watcher) Add(name string) error

func (*Watcher) AddOnEventHandler

func (w *Watcher) AddOnEventHandler(onEventHandler *func(event fsnotify.Event))

func (*Watcher) Close

func (w *Watcher) Close() error

func (*Watcher) Remove

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

func (*Watcher) RemoveOnEventHandler

func (w *Watcher) RemoveOnEventHandler(onEventHandler *func(event fsnotify.Event))

Jump to

Keyboard shortcuts

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