ui

package
v0.1.19 Latest Latest
Warning

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

Go to latest
Published: May 14, 2026 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Model

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

Model is the bubbletea model. It holds all UI state

func New

func New(ch <-chan domain.Snapshot) 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 SortField

type SortField int
const (
	SortByRSS SortField = iota // default: highest RSS first
	SortByCPU
	SortByPID
	SortByPPID
	SortByCmdLine
)

func (SortField) String

func (s SortField) String() string

Jump to

Keyboard shortcuts

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