watcher

package
v1.11.0 Latest Latest
Warning

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

Go to latest
Published: Dec 18, 2025 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrAlreadyStarted = errors.New("watcher is already running")
)

Functions

func DrainWatcher

func DrainWatcher()

func InitWatcher

func InitWatcher(ct context.Context, slogger *slog.Logger, groups []*PatternGroup) error

Types

type PatternGroup added in v1.11.0

type PatternGroup struct {
	Patterns []string
	Callback func([]*watcher.Event)
}

Jump to

Keyboard shortcuts

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