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

tui

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jan 19, 2026 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func StatusStyle

func StatusStyle(status int) lipgloss.Style

StatusStyle returns a style based on HTTP status code

Types

type Model

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

Model represents the TUI state

func New

func New() (*Model, error)

New creates a new TUI model

func (Model) Init

func (m Model) Init() tea.Cmd

Init implements tea.Model

func (Model) Update

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

Update implements tea.Model

func (Model) View

func (m Model) View() string

View implements tea.Model

type View

type View int

View represents the current view in the TUI

const (
	ViewDashboard View = iota
	ViewServices
	ViewHistory
	ViewHistoryDetail
)

Jump to

Keyboard shortcuts

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