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

tui

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Oct 17, 2026 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Run

func Run(cfg *config.Config, serverNames []string) error

Run starts the TUI dashboard.

Types

type Model

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

Model is the Bubble Tea model for the watch dashboard.

func NewModel

func NewModel(cfg *config.Config, serverNames []string) Model

NewModel creates a dashboard model for the given servers. If serverNames is empty, all configured servers are used.

func (Model) Init

func (m Model) Init() tea.Cmd

Init starts the initial data fetch and tick timer.

func (Model) Update

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

Update handles messages (keys, window resize, data, tick).

func (Model) View

func (m Model) View() string

View renders the full dashboard.

type ServerData

type ServerData struct {
	Name         string
	Status       *system.StatusInfo
	Containers   []docker.Container
	DockerStatus string // "ok", "not_installed", "unavailable", ""
	Alerts       *alerts.AlertResult
	Processes    []system.ProcessInfo
	Error        error
	LastUpdate   time.Time
}

ServerData holds all collected data for a single server.

Jump to

Keyboard shortcuts

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