path_watcher

package
v0.19.8 Latest Latest
Warning

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

Go to latest
Published: Nov 26, 2026 License: MIT Imports: 11 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 PathWatcher

type PathWatcher struct {
	am.ExceptionHandler

	Mach        *am.Machine
	ResultsLock sync.Mutex
	Results     []string
	EnvPath     string
	// contains filtered or unexported fields
}

PathWatcher watches all dirs in PATH for changes and returns a list of executables.

func New

func New(ctx context.Context) (*PathWatcher, error)

func (*PathWatcher) AllRefreshedEnter

func (w *PathWatcher) AllRefreshedEnter(e *am.Event) bool

func (*PathWatcher) AllRefreshedState

func (w *PathWatcher) AllRefreshedState(e *am.Event)

func (*PathWatcher) ChangeEventState

func (w *PathWatcher) ChangeEventState(e *am.Event)

func (*PathWatcher) ExceptionState

func (w *PathWatcher) ExceptionState(e *am.Event)

func (*PathWatcher) InitEnd

func (w *PathWatcher) InitEnd(e *am.Event)

func (*PathWatcher) InitState

func (w *PathWatcher) InitState(e *am.Event)

func (*PathWatcher) RefreshedEnter

func (w *PathWatcher) RefreshedEnter(e *am.Event) bool

func (*PathWatcher) RefreshedState

func (w *PathWatcher) RefreshedState(e *am.Event)

func (*PathWatcher) RefreshingEnd

func (w *PathWatcher) RefreshingEnd(e *am.Event)

func (*PathWatcher) RefreshingEnter

func (w *PathWatcher) RefreshingEnter(e *am.Event) bool

func (*PathWatcher) RefreshingExit

func (w *PathWatcher) RefreshingExit(e *am.Event) bool

func (*PathWatcher) RefreshingState

func (w *PathWatcher) RefreshingState(e *am.Event)

func (*PathWatcher) Start

func (w *PathWatcher) Start()

func (*PathWatcher) Stop

func (w *PathWatcher) Stop()

func (*PathWatcher) WatchingEnd

func (w *PathWatcher) WatchingEnd(e *am.Event)

func (*PathWatcher) WatchingState

func (w *PathWatcher) WatchingState(e *am.Event)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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