Documentation
¶
Overview ¶
@@ @ Author : Eacher @ Date : 2023-02-25 11:49:47 @ LastEditTime : 2023-02-28 10:05:26 @ LastEditors : Eacher @ --------------------------------------------------------------------------------< @ Description : @ --------------------------------------------------------------------------------< @ FilePath : /inotify/inotify.go @@
+build linux @@ @ Author : Eacher @ Date : 2023-02-20 08:45:05 @ LastEditTime : 2023-02-28 10:06:20 @ LastEditors : Eacher @ --------------------------------------------------------------------------------< @ Description : Linux inotify 文件监听功能 @ --------------------------------------------------------------------------------< @ FilePath : /inotify/inotify_linux.go @@
Index ¶
Constants ¶
const ( IN_ATTRIB = in_ATTRIB IN_CLOSE = in_CLOSE IN_CLOSE_NOWRITE = in_CLOSE_NOWRITE IN_CLOSE_WRITE = in_CLOSE_WRITE IN_CREATE = in_CREATE IN_DELETE = in_DELETE IN_DELETE_SELF = in_DELETE_SELF IN_MODIFY = in_MODIFY IN_MOVE = in_MOVE IN_MOVED_FROM = in_MOVED_FROM IN_MOVED_TO = in_MOVED_TO IN_MOVE_SELF = in_MOVE_SELF IN_OPEN = in_OPEN )
const MAX_ITEM = syscall.SizeofInotifyEvent * 20
防止数组溢出
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type WatchSingle ¶
func (WatchSingle) GetEventName ¶
func (ws WatchSingle) GetEventName() string
type Watcher ¶
type Watcher struct {
// contains filtered or unexported fields
}
func NewWatcher ¶
func (*Watcher) WaitEvent ¶
func (w *Watcher) WaitEvent() (WatchSingle, error)