watcher

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jun 14, 2026 License: MIT Imports: 8 Imported by: 0

Documentation

Overview

Package watcher provides functionality for the Tako framework.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	IncludeExts []string
	ExcludeExts []string
}

Config holds configuration for the Watcher.

type Watcher

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

Watcher implements an OS-level file watcher using fsnotify.

func New

func New(rootDir string, cfg Config) (*Watcher, error)

New creates a new Fsnotify Watcher.

func (*Watcher) ChangeChan

func (w *Watcher) ChangeChan() <-chan struct{}

ChangeChan returns a channel that emits when a relevant file changes.

func (*Watcher) Start

func (w *Watcher) Start()

Start begins listening to OS file events.

func (*Watcher) Stop

func (w *Watcher) Stop()

Stop halts the watcher and closes OS resources.

Jump to

Keyboard shortcuts

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