Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrFolderPathNotFound = errors.New("could not find a folder path for watcher")
)
Functions ¶
Types ¶
type EventHandler ¶
type EventHandler interface { OnCreate(ctx context.Context, path string, fileInfo os.FileInfo) OnRemove(ctx context.Context, path string, fileInfo os.FileInfo) OnWrite(ctx context.Context, path string, fileInfo os.FileInfo) OnRename(ctx context.Context, path string, fileInfo os.FileInfo, oldPath string) OnMove(ctx context.Context, path string, fileInfo os.FileInfo, oldPath string) }
EventHandler
type FolderWatcher ¶
Click to show internal directories.
Click to hide internal directories.