diskwatch

package
v0.0.0-...-fad138e Latest Latest
Warning

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

Go to latest
Published: Apr 20, 2023 License: AGPL-3.0 Imports: 6 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Watch

func Watch(path string, logic func(fsnotify.Event)) error

func WatchPrefix

func WatchPrefix(prefix string, logic func(event fsnotify.Event)) error

Types

type LogicFunc

type LogicFunc func(fsnotify.Event)

type LogicManage

type LogicManage struct {
	sync.RWMutex
	// contains filtered or unexported fields
}

func NewLogicManage

func NewLogicManage() *LogicManage

func (*LogicManage) Watch

func (p *LogicManage) Watch(path string, logic LogicFunc) error

func (*LogicManage) WatchPrefix

func (p *LogicManage) WatchPrefix(path string, logic LogicFunc) error

Jump to

Keyboard shortcuts

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