langhook

package
v0.0.0-...-6e85089 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 20, 2021 License: MIT Imports: 1 Imported by: 0

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL