watcher

package
v0.0.0 Latest Latest
Warning

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

Go to latest
Published: Dec 3, 2024 License: UNKNOWN not legal advice Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PackageUpdateList

type PackageUpdateList []events.PackageUpdate

func (PackageUpdateList) FilesPath

func (pkgsu PackageUpdateList) FilesPath() []string

func (PackageUpdateList) PackagesPath

func (pkgsu PackageUpdateList) PackagesPath() []string

type PackageWatcher

type PackageWatcher struct {
	PackagesUpdate <-chan PackageUpdateList
	Errors         <-chan error
	// contains filtered or unexported fields
}

func NewPackageWatcher

func NewPackageWatcher(logger *slog.Logger, emitter emitter.Emitter) (*PackageWatcher, error)

func (*PackageWatcher) AddPackages

func (p *PackageWatcher) AddPackages(pkgs ...gnomod.Pkg) error

AddPackages adds new packages to the watcher. Packages are sorted by their length in descending order to facilitate easier and more efficient matching with corresponding paths. The longest paths are compared first.

func (*PackageWatcher) Stop

func (p *PackageWatcher) Stop()

Jump to

Keyboard shortcuts

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