watcher

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Apr 5, 2023 License: GPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	RootPath         string
	Patterns         []string
	IgnorePatterns   []string
	DebounceDuration time.Duration
}

type Watcher

type Watcher struct {
	Config         Config
	ChangedFilesCn chan struct{}
	ErrorsCn       chan error
	// contains filtered or unexported fields
}

func NewWatcher

func NewWatcher(cfg Config) (*Watcher, error)

func (*Watcher) Close

func (w *Watcher) Close() error

Jump to

Keyboard shortcuts

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