stats

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Nov 1, 2026 License: Apache-2.0 Imports: 7 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 {
	// contains filtered or unexported fields
}

Model is the stats pane. It holds no client and performs no I/O; samples are set by the caller as they arrive. It has no keys of its own.

func New

func New() Model

func (Model) SetDark

func (m Model) SetDark(dark bool) Model

SetDark adapts the section titles to a dark or light terminal background.

func (Model) SetErr

func (m Model) SetErr(err error) Model

SetErr shows err above the last sample, which is kept.

func (Model) SetSize

func (m Model) SetSize(w, h int) Model

SetSize sets the outer size of the pane, including its border.

func (Model) SetStats

func (m Model) SetStats(s container.Stats) Model

SetStats shows s, the next sample of the stream.

func (Model) Start

func (m Model) Start() Model

Start clears the pane for a new stats session.

func (Model) View

func (m Model) View() string

Jump to

Keyboard shortcuts

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