Documentation
¶
Index ¶
Constants ¶
View Source
const ( ColorBg = "#1a1b2e" ColorPanel = "#232436" ColorBorder = "#444466" ColorTitle = "#A6E3A1" // green ColorModel = "#CBA6F7" // purple/magenta ColorValue = "#FFFFFF" ColorLabel = "#888899" ColorDim = "#666677" ColorOk = "#A6E3A1" ColorDegraded = "#F9E2AF" // yellow ColorError = "#F38BA8" // red )
Colors (exported for use in CLI help output).
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 Bubble Tea model for ccmonitor.
type Options ¶
type Options struct {
Backend backend.Backend
Interval time.Duration
NoRateLimits bool
Minimal bool
}
Options configures the TUI model.
type SnapshotMsg ¶
type SnapshotMsg struct {
Snapshot *domain.BackendSnapshot
Err error
}
SnapshotMsg carries the result of a collection cycle.
type Styles ¶
type Styles struct {
App lipgloss.Style
Panel lipgloss.Style
Title lipgloss.Style
Label lipgloss.Style
Value lipgloss.Style
ModelName lipgloss.Style
StatusOk lipgloss.Style
StatusWarn lipgloss.Style
StatusErr lipgloss.Style
Header lipgloss.Style
Dim lipgloss.Style
TableHeader lipgloss.Style
}
Styles holds all lipgloss styles used by the TUI.
Click to show internal directories.
Click to hide internal directories.