watch

package
v2.4.5 Latest Latest
Warning

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

Go to latest
Published: Apr 8, 2021 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Watch

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

Watch 看守

func NewWatch

func NewWatch() (*Watch, error)

NewWatch 看守对象

func (*Watch) Close

func (w *Watch) Close() error

Close 关闭看守

func (*Watch) Monitor

func (w *Watch) Monitor(path string, fun WatchEventFun) error

Monitor 监视

func (*Watch) Remove

func (w *Watch) Remove(path string)

Remove 移除事件函数

type WatchEventFun

type WatchEventFun func(fsnotify.Event)

WatchEventFun 看守事件函数

Jump to

Keyboard shortcuts

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