Documentation ¶
Index ¶
- type BatchedNewRowsMsg
- type ChangePageMsg
- type Model
- func (m *Model) AppendRows(tabId int, rows []table.Row)
- func (m *Model) ClearData()
- func (m *Model) ClearRows(tabId int)
- func (m *Model) CurrentPane() pane.Pane
- func (m *Model) FetchData(client *data.Client) tea.Cmd
- func (m *Model) GetCurrentPaneId() int
- func (m *Model) GetPageContext() interface{}
- func (m *Model) GetPaneAt(index int) pane.Pane
- func (m *Model) GetPaneId(paneName string) int
- func (m *Model) GetSpec() PageSpec
- func (m *Model) Hide()
- func (m *Model) Init() tea.Cmd
- func (m *Model) Inspect(client *data.Client) tea.Cmd
- func (m *Model) NextTab() int
- func (m *Model) PrevTab() int
- func (m *Model) SetPageContext(context interface{})
- func (m *Model) SetSize(width int, height int)
- func (m *Model) Update(client *data.Client, msg tea.Msg) (tea.Cmd, bool)
- func (m *Model) View() string
- type NewRowsMsg
- type Page
- type PageSpec
- type UpdateRowMsg
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BatchedNewRowsMsg ¶
type BatchedNewRowsMsg struct {
Msgs []NewRowsMsg
}
type ChangePageMsg ¶
type Model ¶
type Model struct { Spec PageSpec Context interface{} Tabs tabs.Model Panes []pane.Pane // contains filtered or unexported fields }
Logical section with a set of tables/tabs
func (*Model) CurrentPane ¶
func (*Model) GetCurrentPaneId ¶
func (*Model) GetPageContext ¶
func (m *Model) GetPageContext() interface{}
func (*Model) SetPageContext ¶
func (m *Model) SetPageContext(context interface{})
type NewRowsMsg ¶
type Page ¶
type Page interface { Init() tea.Cmd View() string NextTab() int PrevTab() int FetchData(client *data.Client) tea.Cmd ClearData() AppendRows(tabId int, rows []table.Row) ClearRows(tabId int) GetPageContext() interface{} SetPageContext(context interface{}) GetSpec() PageSpec GetPaneAt(index int) pane.Pane GetCurrentPaneId() int Inspect(client *data.Client) tea.Cmd Update(client *data.Client, msg tea.Msg) (cmd tea.Cmd, consumed bool) Hide() // Called when the page is no longer visible SetSize(width int, height int) }
Click to show internal directories.
Click to hide internal directories.