Documentation
¶
Overview ¶
Package tui is the router panel: a Bubble Tea program over the control sockets of every registry endpoint, with a Sessions tab and per-session tabs Now, Routes, Policy, Classifier and Usage. RenderFleetView is pure so docs images can be produced from fixture data.
Index ¶
Constants ¶
This section is empty.
Variables ¶
var Presets = []config.Preset{config.PresetThrifty, config.PresetBalanced, config.PresetQuality}
Presets lists the policy presets in cycling order.
var Tabs = []Tab{TabNow, TabRoutes, TabPolicy, TabClassifier, TabUsage}
Tabs lists the tabs of one session, keys 1-5, in display order.
Functions ¶
func RenderFleetView ¶ added in v0.3.0
RenderFleetView draws v with ANSI colors. Output depends only on v.
Types ¶
type FleetView ¶ added in v0.3.0
type FleetView struct {
Homes []home.Home
Sessions []route.SessionInfo
Brains map[string]time.Duration
Focus string
Snap route.Snapshot // the focused session's snapshot
Tab Tab
Width int
Locked bool // a panel run with --session: no top bar, no Sessions tab
}
FleetView is what RenderFleetView draws for the docs images. Each session is on its own endpoint, as stage 1 launchers run them, unless its home is in Brains: then one brain serves the home, and the value is how long it has run.