ui

package
v0.0.0-...-dbfe939 Latest Latest
Warning

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

Go to latest
Published: Aug 7, 2024 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FormModel

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

func NewFormModel

func NewFormModel(state sessionState) FormModel

func (FormModel) Init

func (m FormModel) Init() tea.Cmd

func (FormModel) Update

func (m FormModel) Update(message tea.Msg) (tea.Model, tea.Cmd)

func (FormModel) View

func (m FormModel) View() string

type MainModel

type MainModel struct {
	State             sessionState
	Cm                auth.ConfigManager
	AuthToken         string
	User              models.User
	Width             int
	Height            int
	UnauthorizedModel tea.Model
	LoginModel        tea.Model
	SignUpModel       tea.Model
	RoomListModel     tea.Model
	RoomModel         tea.Model
}

func NewMainModel

func NewMainModel(token string, cm auth.ConfigManager) MainModel

func (MainModel) Init

func (m MainModel) Init() tea.Cmd

func (MainModel) Update

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

func (MainModel) View

func (m MainModel) View() string

type UnauthorizedModel

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

func NewUnauthorizedModel

func NewUnauthorizedModel() UnauthorizedModel

func (UnauthorizedModel) Init

func (m UnauthorizedModel) Init() tea.Cmd

func (UnauthorizedModel) Update

func (m UnauthorizedModel) Update(message tea.Msg) (tea.Model, tea.Cmd)

func (UnauthorizedModel) View

func (m UnauthorizedModel) View() string

Jump to

Keyboard shortcuts

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