Documentation
¶
Overview ¶
Package tui is the GopherTrunk TUI — a read-only operator view over the daemon's REST + SSE API. The root Model dispatches keystrokes to one of eight panels and runs a fan of polling Cmds + a long-lived SSE pump to keep its SharedState fresh.
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 root bubbletea model.
type Options ¶
type Options struct {
NoColor bool
// Write enables the TUI's mutation keybindings. AND-ed with
// the daemon's /api/v1/mutations capability — both must agree
// for write-side keys to fire.
Write bool
}
Options controls the TUI's startup behaviour.
type RingBuf ¶
type RingBuf[T any] struct { // contains filtered or unexported fields }
RingBuf is a fixed-capacity FIFO. Push overwrites the oldest entry once the buffer is full. Snapshot returns a copy of the entries in chronological (oldest-first) order.
func NewRingBuf ¶
NewRingBuf returns a buffer of the given capacity.
Source Files
¶
Directories
¶
| Path | Synopsis |
|---|---|
|
Package client is the TUI's network layer.
|
Package client is the TUI's network layer. |
|
Package panels contains the eight read-only panels rendered by the TUI.
|
Package panels contains the eight read-only panels rendered by the TUI. |
|
Package state holds the SharedState struct and PanelKind enum so the root tui package and panels sub-package can both import it without an import cycle.
|
Package state holds the SharedState struct and PanelKind enum so the root tui package and panels sub-package can both import it without an import cycle. |
|
Package theme owns the TUI's semantic colour palette and the derived high-level lipgloss styles.
|
Package theme owns the TUI's semantic colour palette and the derived high-level lipgloss styles. |
Click to show internal directories.
Click to hide internal directories.