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 encapsulates the entire TUI application, including its state and components. It holds references to all UI views and manages the application's data state.
type AppState ¶
AppState holds the dynamic data and UI state of the application. It uses a mutex to ensure thread-safe access from different goroutines.
func (*AppState) CycleSortColumn ¶
func (s *AppState) CycleSortColumn()
CycleSortColumn moves to the next sortable column.
func (*AppState) GetFilteredConnections ¶
func (s *AppState) GetFilteredConnections() []models.Connection
GetFilteredConnections returns the currently visible list of connections.
func (*AppState) SetConnections ¶
func (s *AppState) SetConnections(conns []models.Connection)
SetConnections updates the master list of connections and reapplies sorting and filtering.
func (*AppState) SetFilterText ¶
SetFilterText updates the filter query and reapplies it.
func (*AppState) ToggleSortOrder ¶
func (s *AppState) ToggleSortOrder()
ToggleSortOrder reverses the current sort order.
type View ¶
type View struct {
// contains filtered or unexported fields
}
View represents the main UI of the application. It holds all the tview components.
func (*View) GetSelectedConnection ¶
func (v *View) GetSelectedConnection() *models.Connection
GetSelectedConnection returns the connection object for the currently selected row in the table.
func (*View) Refresh ¶
func (v *View) Refresh()
Refresh re-draws the main table and details view with the latest data from the app state.
func (*View) SetStatusMessage ¶
SetStatusMessage updates the hint view with a temporary message.
func (*View) ShowInfoModal ¶
ShowInfoModal displays a short-lived informational message to the user.