Documentation
¶
Overview ¶
Package dashboard renders the wrongtop overview tab: a btop-style single-screen grid of host, CPU, memory, network, disk and top-process panels. Each panel carries its live readout on the border line — title left, value right — with alert chips in the app-level tab bar.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Alert ¶
Alert is one threshold crossing. Key identifies the metric so the app-level alert history can track start and end of each condition.
type Model ¶
type Model struct {
// contains filtered or unexported fields
}
Model is the dashboard tab.
func New ¶
New builds the dashboard tab. Graph ramps come from the theme so the graphs and the meters always read the same palette story.
func (*Model) SetTheme ¶
SetTheme implements ui.Tab; graph ramps derive from the palette so they must be rebuilt alongside the styles.
func (*Model) SetVisible ¶
SetVisible implements ui.Tab. The dashboard keeps pushing graph history while hidden (that is the point of a warm dashboard); its view cache already makes rebuilds lazy.