Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BaseFileHook ¶
type BaseFileHook struct{}
BaseFileHook default behaviour for FileHook
func (*BaseFileHook) OnFileClosed ¶
func (b *BaseFileHook) OnFileClosed(path string) error
OnFileClosed when file is closed
func (*BaseFileHook) OnFileClosing ¶
func (b *BaseFileHook) OnFileClosing(f *os.File) error
OnFileClosing when file is closing
func (*BaseFileHook) OnFileCreated ¶
func (b *BaseFileHook) OnFileCreated(f *os.File) error
OnFileCreated when file first created in filesystem (not exist previously)
func (*BaseFileHook) OnFileOpened ¶
func (b *BaseFileHook) OnFileOpened(f *os.File) error
OnFileOpened when file first opened in program
type FileHook ¶
type FileHook interface {
// OnFileCreated when file first created in filesystem (not exist previously)
OnFileCreated(f *os.File) error
// OnFileOpened when file first opened in program
OnFileOpened(f *os.File) error
// OnFileClosing when file is closing
OnFileClosing(f *os.File) error
// OnFileClosed when file is closed
OnFileClosed(path string) error
}
FileHook hook for file
Click to show internal directories.
Click to hide internal directories.