tui

package
v0.0.0-...-dc8df4f Latest Latest
Warning

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

Go to latest
Published: Jul 22, 2024 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewChatModel

func NewChatModel(apiClient *api.Client) tea.Model

Types

type ChatModel

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

func (*ChatModel) Init

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

func (*ChatModel) Update

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

func (*ChatModel) View

func (m *ChatModel) View() string

type LoginModel

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

func NewLoginModel

func NewLoginModel(ps push.Server, api *api.Client, cm tea.Model) *LoginModel

func (*LoginModel) Init

func (lm *LoginModel) Init() tea.Cmd

func (*LoginModel) Update

func (lm *LoginModel) Update(msg tea.Msg) (tea.Model, tea.Cmd)

func (*LoginModel) View

func (lm *LoginModel) View() string

type UsernameMsg

type UsernameMsg string

Jump to

Keyboard shortcuts

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