view_explore

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Jul 28, 2022 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const ViewType = "explore"

Variables

View Source
var (
	ContainerPadding = 1
)

Functions

func Fetch

func Fetch(ctx context.ProgramContext) (view view.View, fetchCmd tea.Cmd)

Types

type Model

type Model struct {
	Repositories []data_search.Repository
	// contains filtered or unexported fields
}

func NewModel

func NewModel(id int, ctx *context.ProgramContext) Model

func (*Model) BuildRows

func (m *Model) BuildRows() []table.Row

func (*Model) FetchViewRows

func (m *Model) FetchViewRows() tea.Cmd

func (*Model) FirstItem

func (m *Model) FirstItem() int

func (*Model) GetCurrRow

func (m *Model) GetCurrRow() data.RowData

func (*Model) GetIsLoading

func (m *Model) GetIsLoading() bool

func (*Model) GetViewColumns

func (m *Model) GetViewColumns() []table.Column

func (*Model) Id

func (m *Model) Id() int

func (*Model) LastItem

func (m *Model) LastItem() int

func (*Model) NextRow

func (m *Model) NextRow() int

func (*Model) NumRows

func (m *Model) NumRows() int

func (*Model) PrevRow

func (m *Model) PrevRow() int

func (Model) Update

func (m Model) Update(msg tea.Msg) (view.View, tea.Cmd)

func (*Model) UpdateProgramContext

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

func (*Model) View

func (m *Model) View() string

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

Jump to

Keyboard shortcuts

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