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 (*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()
Click to show internal directories.
Click to hide internal directories.