ui

package
v0.50.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 13, 2026 License: Apache-2.0 Imports: 23 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ExplainEntry

type ExplainEntry struct {
	Metric string // "PSI some avg10"
	Plain  string // "% of time tasks are stuck waiting for CPU"
	Good   string // "< 5%"
	Bad    string // "> 20%"
}

ExplainEntry describes one metric for the explain side panel.

type LayoutMode

type LayoutMode int

LayoutMode selects which overview layout to render.

const (
	LayoutTwoCol   LayoutMode = 0 // A: Two-Column Split
	LayoutCompact  LayoutMode = 1 // B: Compact Table
	LayoutAdaptive LayoutMode = 2 // C: Adaptive Expand
	LayoutGrid     LayoutMode = 3 // D: Dashboard Grid
	LayoutHtop     LayoutMode = 4 // E: htop-style
	LayoutBtop     LayoutMode = 5 // F: btop-style

)

func (LayoutMode) String

func (l LayoutMode) String() string

type Model

type Model struct {
	// contains filtered or unexported fields
}

Model is the bubbletea model.

func NewModel

func NewModel(ticker engine.Ticker, interval time.Duration, dataDir string) Model

NewModel creates a new TUI model.

func (Model) Init

func (m Model) Init() tea.Cmd

func (Model) Update

func (m Model) Update(msg tea.Msg) (tea.Model, tea.Cmd)

func (Model) View

func (m Model) View() string

type Page

type Page int

Page identifies the current screen.

const (
	PageOverview Page = iota
	PageCPU
	PageMemory
	PageIO
	PageNetwork
	PageCgroups
	PageTimeline
	PageEvents
	PageProbe
	PageThresholds
	PageDiskGuard
	PageSecurity
	PageDiag
	PageIntel
	PageProxmox
	PageApps
	PageProfiler
	PageGPU
	PagePHPFPM
)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL