watcher

package
v1.0.3 Latest Latest
Warning

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

Go to latest
Published: Feb 12, 2026 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

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

Functions

This section is empty.

Types

type Event

type Event struct {
	AbsPath string
	RelPath string
	Type    EventType
}

type EventType

type EventType string
const (
	EventCreated  EventType = "created"
	EventModified EventType = "modified"
	EventRemoved  EventType = "removed"
)

type EventsChannel

type EventsChannel <-chan Event

type Watcher

type Watcher struct {
	// contains filtered or unexported fields
}

func New

func New(rootPath string, excludes []string) *Watcher

func (*Watcher) Watch

func (w *Watcher) Watch(ctx context.Context, wg *sync.WaitGroup) (EventsChannel, error)

Jump to

Keyboard shortcuts

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