tui

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Sep 16, 2025 License: MIT Imports: 12 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
}

func NewApp

func NewApp() *App

func (*App) Run

func (a *App) Run() error

func (*App) Stop

func (a *App) Stop()

type AppState

type AppState struct {
	sync.RWMutex
	// contains filtered or unexported fields
}

func NewAppState

func NewAppState() *AppState

func (*AppState) CycleSortColumn

func (s *AppState) CycleSortColumn()

func (*AppState) GetFilteredConnections

func (s *AppState) GetFilteredConnections() []models.Connection

func (*AppState) SetConnections

func (s *AppState) SetConnections(conns []models.Connection)

func (*AppState) SetFilterText

func (s *AppState) SetFilterText(text string)

func (*AppState) SetSort

func (s *AppState) SetSort(column int, asc bool)

func (*AppState) ToggleSortOrder

func (s *AppState) ToggleSortOrder()

type View

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

func NewView

func NewView(app *App) *View

func (*View) GetSelectedConnection

func (v *View) GetSelectedConnection() *models.Connection

func (*View) Init

func (v *View) Init()

func (*View) IsModalActive added in v0.2.0

func (v *View) IsModalActive() bool

func (*View) Refresh

func (v *View) Refresh()

func (*View) SetStatusMessage

func (v *View) SetStatusMessage(message string)

func (*View) ShowInfoModal

func (v *View) ShowInfoModal(message string, duration int)

Jump to

Keyboard shortcuts

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