Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AppWidgets ¶
type AppWidgets struct {
// contains filtered or unexported fields
}
AppWidgets struct holds the widgets needed to run the app and manage the multiple behaviors supported. This is done this way, because some widgets make refernce to others when they get focused, clicked, etc. Besides, tview always returns pointers from its constructor functions.
type Option ¶ added in v0.32.0
type Option func(*Tui)
Option is a functional option type that allows us to configure the Tui object.
func WithClient ¶ added in v0.32.0
WithClient adds and optional database client to the Tui.
func WithKeyBinding ¶ added in v0.32.0
func WithKeyBinding(kb *command.TUIKeyBindings) Option
WithKeyBinding sets a TUIKeyBindings to the Tui struct.
type Tui ¶
type Tui struct {
// contains filtered or unexported fields
}
Tui struct is the main struct when it comes to manage the UI. It is composed by a pointer to a tview application and the database client responsible for making queries to the database. Tha last field is a AppWidgets instance, so every widget can be accessed through the Tui's reference.