fsnotifyKit

package
v2.9.106 Latest Latest
Warning

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

Go to latest
Published: Jan 27, 2024 License: Apache-2.0 Imports: 2 Imported by: 0

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.

Jump to

Keyboard shortcuts

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