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