watch

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Apr 4, 2026 License: MIT Imports: 7 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 {
	Store         *snapshot.SnapshotStore
	Engine        *diff.DiffEngine
	Interval      time.Duration
	InjectHeaders map[string]string // optional headers to inject (e.g. auth tokens)
}

Watcher periodically replays recorded requests and reports changes.

func NewWatcher

func NewWatcher(store *snapshot.SnapshotStore, engine *diff.DiffEngine, interval time.Duration) *Watcher

NewWatcher creates a watcher that polls the live API every interval.

func (*Watcher) Watch

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

Watch starts the monitoring loop. Blocks until context is cancelled.

Jump to

Keyboard shortcuts

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