Documentation ¶
Index ¶
- Constants
- Variables
- func Fetch(ctx context.ProgramContext) (view view.View, fetchCmd tea.Cmd)
- type Model
- func (m *Model) BuildRows() []table.Row
- func (m *Model) FetchViewRows() tea.Cmd
- func (m *Model) FirstItem() int
- func (m *Model) GetCurrRow() data.RowData
- func (m *Model) GetIsLoading() bool
- func (m *Model) GetViewColumns() []table.Column
- func (m *Model) Id() int
- func (m *Model) LastItem() int
- func (m *Model) NextRow() int
- func (m *Model) NumRows() int
- func (m *Model) PrevRow() int
- func (m Model) Update(msg tea.Msg) (view.View, tea.Cmd)
- func (m *Model) UpdateProgramContext(ctx *context.ProgramContext)
- func (m *Model) View() string
- type ViewRepositoriesFetchedMsg
Constants ¶
View Source
const ViewType = "explore"
Variables ¶
View Source
var (
ContainerPadding = 1
)
Functions ¶
Types ¶
type Model ¶
type Model struct { Repositories []data_search.Repository // contains filtered or unexported fields }
func (*Model) FetchViewRows ¶
func (*Model) GetCurrRow ¶
func (*Model) GetIsLoading ¶
func (*Model) GetViewColumns ¶
func (*Model) UpdateProgramContext ¶
func (m *Model) UpdateProgramContext(ctx *context.ProgramContext)
type ViewRepositoriesFetchedMsg ¶
type ViewRepositoriesFetchedMsg struct { ViewId int Repositories []data_search.Repository }
func (ViewRepositoriesFetchedMsg) GetViewId ¶
func (msg ViewRepositoriesFetchedMsg) GetViewId() int
func (ViewRepositoriesFetchedMsg) GetViewType ¶
func (msg ViewRepositoriesFetchedMsg) GetViewType() string
Click to show internal directories.
Click to hide internal directories.