Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FileMonitor ¶
type FileMonitor struct { Path string // 监控的文件/目录路径 Delay time.Duration // 执行命令的延时 OnFileChange func(fm *FileMonitor) // 文件变化时的回调函数 *ProcessInfo }
FileMonitor 是文件监控组件的结构体
func NewFileMonitor ¶
func NewFileMonitor(path string, onFileChange func(fm *FileMonitor)) *FileMonitor
NewFileMonitor 创建一个新的文件监控组件
type ProcessInfo ¶ added in v0.0.5
Click to show internal directories.
Click to hide internal directories.