watch

package
v0.0.0-...-99b6f83 Latest Latest
Warning

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

Go to latest
Published: Aug 19, 2026 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultDebounce     = 300 * time.Millisecond
	DefaultPollInterval = 250 * time.Millisecond
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Batch

type Batch struct {
	Files      []string
	StartedAt  time.Time
	FinishedAt time.Time
}

type Options

type Options struct {
	Root         string
	Debounce     time.Duration
	PollInterval time.Duration
	WatchPaths   []string
	WatchOnly    bool
	IgnorePaths  []string
	IncludePaths []string
}

type Runner

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

func New

func New(opts Options) (*Runner, error)

func (*Runner) Start

func (r *Runner) Start(ctx context.Context) (<-chan Batch, <-chan error, error)

Jump to

Keyboard shortcuts

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