Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FetchMetrics ¶
func FetchMetrics(metricType types.MetricType) tea.Cmd
Types ¶
type Model ¶
type Model struct {
Mode types.AppMode
Cursor int
Searching bool
SearchInput textinput.Model
SelectedType types.MetricType
Monitoring bool
UpdateSecs int
Metrics types.MetricsMsg
Width int
Height int
StreamInterval types.StreamInterval
StreamCursor int
FormatCursor int
IsStreaming bool
StreamLogPath string
StreamStartTime time.Time
StreamCount int
LogFormat types.LogFormat
HostInfo *host.InfoStat
// Background process management
BackgroundProcesses []types.BackgroundProcess
ProcessCursor int
BgStreamCursor int
BgFormatCursor int
NextProcessID int
BackgroundStreamer *logging.BackgroundStreamer
}
Model represents the main application state
func InitialModel ¶
func InitialModel() Model
Click to show internal directories.
Click to hide internal directories.