statssection

package
v0.1.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 5, 2026 License: MIT Imports: 8 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

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) CurrRow

func (m *Model) CurrRow() section.RowData

func (*Model) CurrRowIndex

func (m *Model) CurrRowIndex() int

func (*Model) FetchNextPageSectionRows

func (m *Model) FetchNextPageSectionRows() []tea.Cmd

func (*Model) FirstItem

func (m *Model) FirstItem()

func (*Model) GetConfig

func (m *Model) GetConfig() section.SectionConfig

func (*Model) GetId

func (m *Model) GetId() int

func (*Model) GetIsLoading

func (m *Model) GetIsLoading() bool

func (*Model) GetTotalCount

func (m *Model) GetTotalCount() int

func (*Model) GetType

func (m *Model) GetType() string

func (*Model) IsSearchFocused

func (m *Model) IsSearchFocused() bool

func (*Model) LastItem

func (m *Model) LastItem()

func (*Model) NextRow

func (m *Model) NextRow() section.RowData

func (*Model) NextTab

func (m *Model) NextTab()

func (*Model) NumRows

func (m *Model) NumRows() int

func (*Model) Pager

func (m *Model) Pager() string

func (*Model) PrevRow

func (m *Model) PrevRow()

func (*Model) PrevTab

func (m *Model) PrevTab()

func (*Model) ResetFilters

func (m *Model) ResetFilters()

func (*Model) ResetRows

func (m *Model) ResetRows()

func (*Model) SetIsLoading

func (m *Model) SetIsLoading(v bool)

func (*Model) SetSize

func (m *Model) SetSize(w, h int)

func (*Model) Update

func (m *Model) Update(msg tea.Msg) (section.Section, tea.Cmd)

func (*Model) UpdateProgramContext

func (m *Model) UpdateProgramContext(ctx *tuicontext.ProgramContext)

func (*Model) View

func (m *Model) View() string

type StatsFetchedMsg

type StatsFetchedMsg struct {
	SectionID int
	Repos     []*store.Repository
	Err       error
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL