Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // Add 添加监听,监控指定文件/目录的改变,如文件的增加、删除、修改、重命名等操作. /* @param path 文件 || 目录 */ Add func(path string, callbackFunc func(event *gfsnotify.Event), recursive ...bool) (callback *gfsnotify.Callback, err error) = gfsnotify.Add // Remove 移除监听. Remove func(path string) error = gfsnotify.Remove // RemoveCallback 移除监听. RemoveCallback func(callbackId int) error = gfsnotify.RemoveCallback )
View Source
var ( // NewWatcher 创建一个新的监控对象. /* PS: 不使用了要主动调用 Watcher.Close(). */ NewWatcher func() (*fsnotify.Watcher, error) = fsnotify.NewWatcher )
Functions ¶
This section is empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.