fswatcher

package
v0.0.0-...-edd91d0 Latest Latest
Warning

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

Go to latest
Published: Nov 2, 2019 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FsWatch

type FsWatch struct {
	Name          string
	Path          string
	Data          interface{}
	Async         bool
	AsFile        bool
	ReAddDelay    time.Duration
	CompressDelay time.Duration
	Handler       FsWatchHandler
	// contains filtered or unexported fields
}

type FsWatchHandler

type FsWatchHandler func(event *fsnotify.Event, path string, watch *FsWatch, watcher *FsWatcher, err error)

type FsWatcher

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

func (*FsWatcher) Add

func (o *FsWatcher) Add(watch *FsWatch) error

func (*FsWatcher) Get

func (o *FsWatcher) Get(abspath string) *FsWatch

func (*FsWatcher) Remove

func (o *FsWatcher) Remove(abspath string) error

func (*FsWatcher) Stop

func (o *FsWatcher) Stop()

Jump to

Keyboard shortcuts

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