Documentation
¶
Index ¶
- Constants
- Variables
- func PillStatus(status string) string
- func ProvBadge(actorType string) string
- func SectionTitle(title string, width int) string
- type HeatGrid
- type InlineBar
- type LogRow
- type LogTable
- type Sidebar
- type SidebarItem
- type SidebarSection
- type Sparkline
- type Stage
- type StageFlow
- type StatCard
- type Statusbar
- type StatusbarData
Constants ¶
View Source
const SidebarWidth = 22
SidebarWidth is the fixed width of the sidebar.
Variables ¶
View Source
var SparkBlocks = []rune{'▁', '▂', '▃', '▄', '▅', '▆', '▇', '█'}
SparkBlocks are the 8 block characters used for sparkline bars.
Functions ¶
func SectionTitle ¶
SectionTitle renders an uppercase gray label with bottom border.
Types ¶
type LogRow ¶
type LogRow struct {
Time string
Source string
Message string
Code string
Level string // "info", "ok", "warn", "err", "security"
}
LogRow is a single row in the log table.
type LogTable ¶
type LogTable struct {
Viewport viewport.Model
Rows []LogRow
Filter string
AutoScroll bool
Width int
Height int
}
LogTable is a scrollable viewport for log rows.
type Sidebar ¶
type Sidebar struct {
Sections []SidebarSection
Collapsed bool
Height int
}
Sidebar renders a fixed-width left pane with sections.
type SidebarItem ¶
type SidebarItem struct {
Name string
Value string
Dot string // color name: "green", "amber", "red", ""
}
SidebarItem is a key-value pair in the sidebar.
type SidebarSection ¶
type SidebarSection struct {
Title string
Items []SidebarItem
}
SidebarSection is a group of items with a header.
type Stage ¶
type Stage struct {
Number int
Name string
Status string // "HIT", "SKIP", "MISS", "OK", "ERR"
Latency string
}
Stage represents a single stage in a flow.
type Statusbar ¶
type Statusbar struct {
Data StatusbarData
Width int
}
Statusbar renders the bottom status strip.
Click to show internal directories.
Click to hide internal directories.