app

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Aug 6, 2026 License: MIT Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ChatsLoadedMsg

type ChatsLoadedMsg struct {
	Generation uint64
	Chats      []messages.Chat
	LoadedAt   time.Time
	Err        error
}

type ContactsLoadedMsg

type ContactsLoadedMsg struct {
	Generation uint64
	Resolver   NameResolver
	Err        error
}

type Focus

type Focus int
const (
	FocusList Focus = iota
	FocusViewport
	FocusComposer
)

type HistoryLoadedMsg

type HistoryLoadedMsg struct {
	ChatID     messages.ChatID
	Generation uint64
	Page       messages.HistoryPage
	Prepend    bool
	LoadedAt   time.Time
	Err        error
}

type Layout

type Layout int
const (
	LayoutNarrow Layout = iota
	LayoutSplit
)

type Model

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

func New

func New(opener StoreOpener, senders ...msgsender.Sender) Model

func NewWithStore

func NewWithStore(store messages.Store, senders ...msgsender.Sender) Model

func (Model) Close

func (m Model) Close() error

func (Model) Init

func (m Model) Init() tea.Cmd

func (*Model) SetInlineImageProtocol

func (m *Model) SetInlineImageProtocol(protocol inlineimage.Protocol)

func (*Model) SetResolverLoader

func (m *Model) SetResolverLoader(loader ResolverLoader)

func (Model) Update

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

func (Model) View

func (m Model) View() string

type NameResolver

type NameResolver interface {
	Resolve(string) string
}

type NarrowPane

type NarrowPane int
const (
	NarrowList NarrowPane = iota
	NarrowConversation
)

type ResolverLoader

type ResolverLoader func() (NameResolver, error)

type SendFinishedMsg

type SendFinishedMsg struct {
	ChatID          messages.ChatID
	Generation      uint64
	DraftGeneration uint64
	Err             error
}

type StoreOpenedMsg

type StoreOpenedMsg struct {
	Generation uint64
	Store      messages.Store
	Err        error
}

type StoreOpener

type StoreOpener func() (messages.Store, error)

Jump to

Keyboard shortcuts

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