tui

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jan 6, 2026 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type App

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

App is the main TUI application model

func NewApp

func NewApp(cfg *config.Config, manager *session.Manager, alertMgr *alert.Manager) *App

func (*App) EventChannel

func (a *App) EventChannel() chan<- agent.Event

EventChannel returns the event channel for pushing events

func (*App) Init

func (a *App) Init() tea.Cmd

Init initializes the application

func (*App) SetContext

func (a *App) SetContext(ctx context.Context)

SetContext sets the context for the app

func (*App) Update

func (a *App) Update(msg tea.Msg) (tea.Model, tea.Cmd)

Update handles messages

func (*App) View

func (a *App) View() string

View renders the application

type Pane

type Pane int

Pane represents the focused pane

const (
	PaneAgentList Pane = iota
	PaneViewport
	PaneStats
	PaneAlerts
)

type Theme

type Theme = components.Theme

func NewTheme

func NewTheme(cfg *config.ThemeConfig) *Theme

Directories

Path Synopsis
Package components provides TUI components
Package components provides TUI components

Jump to

Keyboard shortcuts

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