tikdog_watcher

package
v0.0.0-...-040cd8a Latest Latest
Warning

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

Go to latest
Published: Dec 7, 2020 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrPathNotFound = errors.New("error: path not found")
)

Functions

func Add

func Add(name string, h CallBack) error

func AddRecursive

func AddRecursive(name string, h CallBack) (err error)

func IsCreateEvent

func IsCreateEvent(ev Event) bool

func IsDeleteEvent

func IsDeleteEvent(ev Event) bool

func IsDir

func IsDir(path string) bool

func IsNotExist

func IsNotExist(name string) bool

func IsRenameEvent

func IsRenameEvent(ev Event) bool

func IsUpdateEvent

func IsUpdateEvent(ev Event) bool

func IsWriteEvent

func IsWriteEvent(ev Event) bool

func List

func List() []string

func New

func New() (*watcherManager, error)

func Remove

func Remove(name string) error

func SetDefault

func SetDefault(c *watcherManager)

func Start

func Start()

func Stop

func Stop()

Types

type CallBack

type CallBack func(event interface{}) error

type Event

type Event struct {
	fsnotify.Event
	Watcher *fsnotify.Watcher
}

Jump to

Keyboard shortcuts

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