Documentation
¶
Index ¶
- type Model
- func (m *Model) CurrRow() section.RowData
- func (m *Model) CurrRowIndex() int
- func (m *Model) FetchNextPageSectionRows() []tea.Cmd
- func (m *Model) FirstItem()
- func (m *Model) GetConfig() section.SectionConfig
- func (m *Model) GetId() int
- func (m *Model) GetIsLoading() bool
- func (m *Model) GetTotalCount() int
- func (m *Model) GetType() string
- func (m *Model) IsSearchFocused() bool
- func (m *Model) LastItem()
- func (m *Model) NextRow() section.RowData
- func (m *Model) NextTab()
- func (m *Model) NumRows() int
- func (m *Model) Pager() string
- func (m *Model) PrevRow()
- func (m *Model) PrevTab()
- func (m *Model) ResetFilters()
- func (m *Model) ResetRows()
- func (m *Model) SetIsLoading(v bool)
- func (m *Model) SetSize(w, h int)
- func (m *Model) Update(msg tea.Msg) (section.Section, tea.Cmd)
- func (m *Model) UpdateProgramContext(ctx *tuicontext.ProgramContext)
- func (m *Model) View() string
- type StatsFetchedMsg
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Model ¶
type Model struct {
// contains filtered or unexported fields
}
func NewModel ¶
func NewModel(id int, ctx *tuicontext.ProgramContext, cfg section.SectionConfig) *Model
func (*Model) CurrRowIndex ¶
func (*Model) FetchNextPageSectionRows ¶
func (*Model) GetConfig ¶
func (m *Model) GetConfig() section.SectionConfig
func (*Model) GetIsLoading ¶
func (*Model) GetTotalCount ¶
func (*Model) IsSearchFocused ¶
func (*Model) ResetFilters ¶
func (m *Model) ResetFilters()
func (*Model) SetIsLoading ¶
func (*Model) UpdateProgramContext ¶
func (m *Model) UpdateProgramContext(ctx *tuicontext.ProgramContext)
type StatsFetchedMsg ¶
type StatsFetchedMsg struct {
SectionID int
Repos []*store.Repository
Err error
}
Click to show internal directories.
Click to hide internal directories.