screens

package
v0.0.0-...-b232b9b Latest Latest
Warning

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

Go to latest
Published: Oct 27, 2024 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RootScreen

func RootScreen() rootScreenModel

Types

type DefaultModel

type DefaultModel struct{}

func (DefaultModel) Init

func (m DefaultModel) Init() tea.Cmd

func (DefaultModel) Update

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

func (DefaultModel) View

func (m DefaultModel) View() string

type HomeScreenModel

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

func NewHomeScreenModel

func NewHomeScreenModel(user dtos.User) HomeScreenModel

func (HomeScreenModel) Init

func (m HomeScreenModel) Init() tea.Cmd

func (HomeScreenModel) Update

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

func (HomeScreenModel) View

func (m HomeScreenModel) View() string

type LoginScreenModel

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

func NewLoginScreenModel

func NewLoginScreenModel() LoginScreenModel

func (LoginScreenModel) Init

func (m LoginScreenModel) Init() tea.Cmd

func (LoginScreenModel) Update

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

func (LoginScreenModel) View

func (m LoginScreenModel) View() string

type MatchmakingScreenModel

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

func NewMatchmakingScreen

func NewMatchmakingScreen(user dtos.User) MatchmakingScreenModel

func (MatchmakingScreenModel) Init

func (m MatchmakingScreenModel) Init() tea.Cmd

func (MatchmakingScreenModel) Update

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

func (MatchmakingScreenModel) View

func (m MatchmakingScreenModel) View() string

type PlayScreenModel

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

TODO: implement play screen

func NewPlayScreenModel

func NewPlayScreenModel(matchInfo dtos.MatchInfo) PlayScreenModel

func (PlayScreenModel) Init

func (m PlayScreenModel) Init() tea.Cmd

func (PlayScreenModel) Update

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

func (PlayScreenModel) View

func (m PlayScreenModel) View() string

Jump to

Keyboard shortcuts

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