Documentation
¶
Overview ¶
Package tui is the bubbletea terminal UI for plient. It owns one State value and drives every mutation from a tea.Msg, so the iOS port has a single canonical list of events to mirror in its own state machine.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Model ¶
type Model struct {
// contains filtered or unexported fields
}
Model is the bubbletea state. Constructed by New; the SSE goroutine and REST client are owned by the model and shut down when the program exits.
func New ¶
New builds an initial model. The SSE stream is not yet running; Init kicks it off and starts the initial REST fetches.
The broadcast verifier shares c's HTTP transport so connection pooling is reused across bearer-authenticated server calls and unauthenticated public actor-doc fetches. The bearer token lives on the api.Client, not the http.Client, so it does NOT leak onto fetches to third-party URLs.
func (*Model) Init ¶
Init returns the startup commands: open SSE in a goroutine, fetch identity and contacts in parallel, and arm the SSE-receive ticker.