observe

package
v0.4.2 Latest Latest
Warning

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

Go to latest
Published: Oct 10, 2026 License: Apache-2.0 Imports: 8 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Files

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

Files provides bounded directory notifications. It never follows directory symlinks, reads file contents, or creates a missing watched root. Reconciliation remains necessary for network filesystems, overflow and watcher resource limits.

func NewFiles

func NewFiles(limit int, notify func()) (*Files, error)

func (*Files) Close

func (f *Files) Close() error

func (*Files) Problems

func (f *Files) Problems() <-chan error

func (*Files) SetChanged

func (f *Files) SetChanged(changed func(string))

SetChanged installs an optional cache invalidation callback.

func (*Files) SetRoots

func (f *Files) SetRoots(roots []string) error

SetRoots discovers new subdirectories after a notification or reconciliation, and removes obsolete watches. Missing roots watch their closest existing parent so installation/first-session creation is observed without polling the home tree.

Jump to

Keyboard shortcuts

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