Help us shape the future of Go! Take the 2026 Go Developer Survey

tui

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: May 11, 2026 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Overview

Package tui is the Bubble Tea front-end. The active tab determines a time range (Last3H / Last24H / Today); every panel — header summary, sessions table, model breakdown, and chart — reads from that range. Switching tabs re-scopes the entire UI, not just the chart.

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 entire UI state. Note `stats` (not "day") — the aggregator returns three parallel ranges; we pick one based on activeTab.

func New

func New(pricer *pricing.Pricer, petName string) 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

Jump to

Keyboard shortcuts

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