watcher

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: May 14, 2026 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Watcher

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

func New

func New(cfg *config.Config, src source.PlanSource, rep reporter.Reporter) *Watcher

func (*Watcher) Run

func (w *Watcher) Run(ctx context.Context) error

Run reads plans continuously and flushes findings to the reporter every cfg.Interval. Blocks until ctx is cancelled.

func (*Watcher) RunOnce

func (w *Watcher) RunOnce(ctx context.Context) error

RunOnce reads all plans from src until the channel closes, then reports. Designed for one-shot mode where the source stops at EOF.

Jump to

Keyboard shortcuts

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