mainmodel

package
v0.0.0-...-fc7e386 Latest Latest
Warning

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

Go to latest
Published: Aug 18, 2024 License: MPL-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EmptyModel

type EmptyModel struct {
}

func (EmptyModel) Init

func (m EmptyModel) Init() tea.Cmd

func (EmptyModel) Update

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

func (EmptyModel) View

func (m EmptyModel) View() string

type KeyMap

type KeyMap struct {
	common.ArrowsKeyMap
	Select key.Binding
	Quit   key.Binding
	Reset  key.Binding
}

type MainModel

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

func NewModel

func NewModel(userId string) MainModel

func (MainModel) Init

func (m MainModel) Init() tea.Cmd

func (MainModel) NewGame

func (m MainModel) NewGame(id uint) tea.Model

func (MainModel) Update

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

func (MainModel) View

func (m MainModel) View() string

Jump to

Keyboard shortcuts

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