//
pkg.gl
Category
github.com/pingcap/tidb
pkg
util
watcher
package
9.0.0-alpha+incompatible
Repository:
https://github.com/pingcap/tidb.git
Documentation:
pkg.go.dev
Versions
3
Dependencies
7
Dependents
0
Files
347 SLOC
#
Functions
NewWatcher
NewWatcher creates a new Watcher instance.
#
Constants
Chmod
Operations type current supported.
Create
Operations type current supported.
Modify
Operations type current supported.
Move
Operations type current supported.
Remove
Operations type current supported.
Rename
Operations type current supported.
#
Variables
ErrWatcherClosed
errors created by Watcher.
ErrWatcherStarted
errors created by Watcher.
#
Structs
Event
Event represents a single file operation event.
Watcher
Watcher watches for files or directory changes by polling currently, if multi operations applied to one file or directory, only one event (with single Op) will be sent the priority of Op is: 1.
#
Type aliases
Op
Op represents file operation type.