Documentation
¶
Overview ¶
Package api exposes the engine's live snapshot and the store's history over HTTP, and serves the embedded dashboard. It is consumed locally by the dashboard UI (and could back a Wails/native shell later).
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Capturer ¶ added in v0.6.0
type Capturer interface {
ListInterfaces() []types.NetIface
PreferredInterface() string // "" means auto-detect
SetPreferredInterface(name string) error
Paused() bool
SetPaused(p bool)
}
Capturer lets the API list and switch the capture interface. Implemented by the live capture supervisor; nil for demo/offline sources (which can't switch).
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
Server wires the engine (live), store (history) and update checker to HTTP.
Click to show internal directories.
Click to hide internal directories.