tui

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Sep 27, 2025 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FormatLastLogin

func FormatLastLogin(loginAt time.Time) string

func SendMessageToChat

func SendMessageToChat(chatId, message string) tea.Cmd

Types

type Chat

type Chat struct {
	services.Chat
}

func (Chat) FilterValue

func (c Chat) FilterValue() string

FilterValue implements list.Item.

type ChatViewModel

type ChatViewModel struct {
	// Frame component
	components.Frame

	// Focusable component
	*components.FocusContainer
	// contains filtered or unexported fields
}

func (*ChatViewModel) Init

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

func (*ChatViewModel) Update

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

func (*ChatViewModel) View

func (m *ChatViewModel) View() string

type RootModel

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

func (*RootModel) Init

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

func (*RootModel) Update

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

func (*RootModel) View

func (m *RootModel) View() string

type SentMessageToChatMsg

type SentMessageToChatMsg struct {
	ChatId  string
	Message string
}

type ShutdownModel

type ShutdownModel struct {
	// Frame component
	components.Frame
}

func (*ShutdownModel) Init

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

func (*ShutdownModel) Update

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

func (*ShutdownModel) View

func (m *ShutdownModel) View() string

type SigninModel

type SigninModel struct {
	// Frame component
	components.Frame
	// Focusable container
	*components.FocusContainer
	// contains filtered or unexported fields
}

func (*SigninModel) Init

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

func (*SigninModel) Update

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

func (*SigninModel) View

func (m *SigninModel) View() string

type SignupModel

type SignupModel struct {
	// Frame component
	components.Frame
	// Focusable container
	*components.FocusContainer
	// contains filtered or unexported fields
}

func (*SignupModel) Init

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

func (*SignupModel) Update

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

func (*SignupModel) View

func (m *SignupModel) View() string

type Tui

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

func New

func New(
	em core.EventDispatcher,
	userManager *services.UserManager,
	chatManager *services.ChatManager,
) *Tui

func (*Tui) Close

func (ui *Tui) Close() error

func (*Tui) Init

func (ui *Tui) Init() error

func (*Tui) Run

func (ui *Tui) Run(ctx context.Context, wg *sync.WaitGroup) error

type User

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

func (User) Description

func (i User) Description() string

func (User) FilterValue

func (i User) FilterValue() string

func (User) Title

func (i User) Title() string

type UsersListModel

type UsersListModel struct {
	// Frame component
	components.Frame
	// Focusable component
	*components.FocusContainer
	// contains filtered or unexported fields
}

func (*UsersListModel) Init

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

func (*UsersListModel) Update

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

func (*UsersListModel) View

func (m *UsersListModel) View() string

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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