onwatch

package module
v0.0.0-...-db04aac Latest Latest
Warning

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

Go to latest
Published: Oct 24, 2024 License: BSD-2-Clause Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrNotDirectory = errors.New("not a directory")
)

Functions

This section is empty.

Types

type Logger

type Logger interface {
	Print(...any)
	Printf(string, ...any)
}

type RecursiveWatcher

type RecursiveWatcher struct {
	Events chan fsnotify.Event
	Errors chan error
	// contains filtered or unexported fields
}

func NewRecursiveWatcher

func NewRecursiveWatcher() (*RecursiveWatcher, error)

func (*RecursiveWatcher) Add

func (rw *RecursiveWatcher) Add(p string) error

func (*RecursiveWatcher) Close

func (rw *RecursiveWatcher) Close() error

func (*RecursiveWatcher) SetLogger

func (rw *RecursiveWatcher) SetLogger(logger Logger)

Jump to

Keyboard shortcuts

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