views

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Dec 27, 2024 License: GPL-3.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WithRandSource

func WithRandSource(r *rand.Rand) func(*SingleModel)

Types

type LeaderboardModel

type LeaderboardModel struct {
	// contains filtered or unexported fields
}

func NewLeaderboardModel

func NewLeaderboardModel(in *tui.LeaderboardInput, db *sql.DB) (*LeaderboardModel, error)

func (*LeaderboardModel) Init

func (m *LeaderboardModel) Init() tea.Cmd

func (*LeaderboardModel) Update

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

func (*LeaderboardModel) View

func (m *LeaderboardModel) View() string
type MenuModel struct {
	// contains filtered or unexported fields
}

func NewMenuModel

func NewMenuModel(_ *tui.MenuInput) *MenuModel
func (m *MenuModel) Init() tea.Cmd
func (m *MenuModel) Update(msg tea.Msg) (tea.Model, tea.Cmd)
func (m *MenuModel) View() string

type SingleModel

type SingleModel struct {
	// contains filtered or unexported fields
}

func NewSingleModel

func NewSingleModel(
	in *tui.SingleInput,
	cfg *config.Config,
	opts ...func(*SingleModel),
) (*SingleModel, error)

func (*SingleModel) Init

func (m *SingleModel) Init() tea.Cmd

func (*SingleModel) Update

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

func (*SingleModel) View

func (m *SingleModel) View() string

Jump to

Keyboard shortcuts

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