app

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: May 6, 2026 License: BSD-3-Clause Imports: 5 Imported by: 0

Documentation

Overview

Package app provides the main application model for the Lux TUI.

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 application model

func NewApp

func NewApp() *App

NewApp creates a new application model

func (*App) Init

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

Init initializes the application

func (*App) SetEndpoint

func (a *App) SetEndpoint(ep string)

SetEndpoint overrides the default API endpoint.

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 Tab

type Tab int

Tab represents a tab in the TUI

const (
	TabDashboard Tab = iota
	TabNodes
	TabChains
	TabValidators
	TabLogs
)

Jump to

Keyboard shortcuts

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