Documentation
¶
Overview ¶
Package tui implements the optional Bubble Tea terminal UI for sendit start.
It is activated with --tui on a TTY. When stdout is not a terminal the flag is silently ignored and plain zerolog output continues unchanged.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Snapshot ¶
type Snapshot struct {
Total int64
Success int64
Errors int64
Elapsed time.Duration
Latencies []time.Duration // last ≤128 successful durations, oldest first
}
Snapshot is a consistent point-in-time read of the State.
type State ¶
type State struct {
// contains filtered or unexported fields
}
State is the shared counter store written by engine dispatch goroutines and read by the TUI render tick. All methods are safe for concurrent use.
func NewState ¶
func NewState() *State
NewState returns an initialised State with the clock started at now.
Click to show internal directories.
Click to hide internal directories.