fsnotifywatcher

package
v0.0.0-...-44d8e33 Latest Latest
Warning

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

Go to latest
Published: Feb 1, 2021 License: MIT Imports: 3 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	OpCreate = Op(fsnotify.Create)
	OpWrite  = Op(fsnotify.Write)
	OpRemove = Op(fsnotify.Remove)
	OpRename = Op(fsnotify.Rename)
	OpChmod  = Op(fsnotify.Chmod)
)

Functions

This section is empty.

Types

type Event

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

func (*Event) IsChmod

func (e *Event) IsChmod() bool

func (*Event) IsCreate

func (e *Event) IsCreate() bool

func (*Event) IsReName

func (e *Event) IsReName() bool

func (*Event) IsRemove

func (e *Event) IsRemove() bool

func (*Event) IsWrite

func (e *Event) IsWrite() bool

func (*Event) Path

func (e *Event) Path() string

type Op

type Op uint32

Op describes a set of file operations.

type Watcher

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

func NewWatcher

func NewWatcher() *Watcher

func (*Watcher) ErrorChan

func (w *Watcher) ErrorChan() chan error

func (*Watcher) Init

func (w *Watcher) Init() error

func (*Watcher) On

func (w *Watcher) On(e *Event)

func (*Watcher) StartWatching

func (w *Watcher) StartWatching() error

func (*Watcher) StopWatching

func (w *Watcher) StopWatching() error

func (*Watcher) Watch

func (w *Watcher) Watch(cf source.Source, callback func()) (unwatcher func(), err error)

Jump to

Keyboard shortcuts

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