Documentation ¶
Index ¶
- Constants
- func FetchAllSections(ctx context.ProgramContext) (sections []section.Section, fetchAllCmd tea.Cmd)
- func GetSectionColumns(cfg config.PrsSectionConfig, ctx *context.ProgramContext) []table.Column
- type Model
- func (m *Model) BuildRows() []table.Row
- func (m *Model) FetchNextPageSectionRows() []tea.Cmd
- func (m *Model) GetCurrRow() data.RowData
- func (m Model) GetItemPluralForm() string
- func (m Model) GetItemSingularForm() string
- func (m Model) GetTotalCount() *int
- func (m Model) IsLoading() bool
- func (m *Model) NumRows() int
- func (m *Model) ResetRows()
- func (m Model) Update(msg tea.Msg) (section.Section, tea.Cmd)
- type SectionPullRequestsFetchedMsg
- type UpdatePRMsg
Constants ¶
View Source
const SectionType = "pr"
Variables ¶
This section is empty.
Functions ¶
func FetchAllSections ¶
func GetSectionColumns ¶
func GetSectionColumns( cfg config.PrsSectionConfig, ctx *context.ProgramContext, ) []table.Column
Types ¶
type Model ¶
type Model struct { section.Model Prs []data.PullRequestData }
func NewModel ¶
func NewModel( id int, ctx *context.ProgramContext, cfg config.PrsSectionConfig, lastUpdated time.Time, ) Model
func (*Model) FetchNextPageSectionRows ¶
func (*Model) GetCurrRow ¶
func (Model) GetItemPluralForm ¶
func (Model) GetItemSingularForm ¶
func (Model) GetTotalCount ¶ added in v4.3.0
Click to show internal directories.
Click to hide internal directories.