Documentation
¶
Index ¶
- Constants
- 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) FetchDataCmd(client data.Client) tea.Cmd
- func (m *Model) FirstItem() int
- func (m *Model) Init() tea.Cmd
- func (m *Model) InspectFieldCmd(client data.Client) tea.Cmd
- func (m *Model) LastItem() int
- func (m *Model) NextCol() int
- func (m *Model) NextItem() int
- func (m *Model) NextTab() int
- func (m *Model) PrevCol() int
- func (m *Model) PrevItem() int
- func (m *Model) PrevTab() int
- func (m *Model) SetPageMetadata(metadata interface{})
- func (m *Model) StartSearch()
- func (m *Model) StopSearch()
- func (m *Model) UpdateProgramContext(ctx *context.ProgramContext)
- func (m *Model) UpdateSearch(msg tea.Msg) tea.Cmd
- func (m *Model) View() string
- type NewRowsMsg
- type Page
Constants ¶
View Source
const ( PAGE_HOME = iota PAGE_DATABASE = iota PAGE_TABLE = iota )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BatchedNewRowsMsg ¶
type BatchedNewRowsMsg struct {
Msgs []NewRowsMsg
}
type ChangePageMsg ¶
type Model ¶
Logical section with a set of tables/tabs
func (*Model) SetPageMetadata ¶
func (m *Model) SetPageMetadata(metadata interface{})
func (*Model) StartSearch ¶
func (m *Model) StartSearch()
func (*Model) StopSearch ¶
func (m *Model) StopSearch()
func (*Model) UpdateProgramContext ¶
func (m *Model) UpdateProgramContext(ctx *context.ProgramContext)
type NewRowsMsg ¶
type Page ¶
type Page interface {
Init() tea.Cmd
View() string
UpdateProgramContext(ctx *context.ProgramContext)
UpdateSearch(msg tea.Msg) tea.Cmd
NextTab() int
PrevTab() int
NextItem() int
PrevItem() int
FirstItem() int
LastItem() int
NextCol() int
PrevCol() int
StartSearch()
StopSearch()
FetchDataCmd(client data.Client) tea.Cmd
ClearData()
AppendRows(tabId int, rows []table.Row)
ClearRows(tabId int)
InspectFieldCmd(client data.Client) tea.Cmd
SetPageMetadata(metadata interface{})
}
Click to show internal directories.
Click to hide internal directories.