components

package
v0.0.0-...-46e07f9 Latest Latest
Warning

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

Go to latest
Published: Apr 13, 2025 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

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 HistoryModel

type HistoryModel struct {
	Cursor int
	Choice string
}

func (HistoryModel) ClearHistory

func (m HistoryModel) ClearHistory(q db.Queries, userID uuid.UUID)

func (HistoryModel) Init

func (m HistoryModel) Init() tea.Cmd

func (HistoryModel) Update

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

func (HistoryModel) View

func (m HistoryModel) View() string

type LoginModel

type LoginModel struct {
	UserID   uuid.UUID
	Username string
	State    *LoginModelState
	// contains filtered or unexported fields
}

func InitLoginModel

func InitLoginModel() LoginModel

func (LoginModel) Init

func (m LoginModel) Init() tea.Cmd

func (LoginModel) Login

func (m LoginModel) Login(q db.Queries, username string) (uuid.UUID, error)

func (LoginModel) Update

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

func (LoginModel) View

func (m LoginModel) View() string

type LoginModelState

type LoginModelState struct {
	Config *config.Config
	DB     *db.Queries
}

Jump to

Keyboard shortcuts

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