Documentation
¶
Index ¶
- Variables
- func BgIntervalSettingsView(m Model) string
- func BgStreamSettingsView(m Model) string
- func FormatSettingsView(m Model) string
- func GetFilteredMetrics(searchValue string) []types.MetricType
- func MenuView(m Model) string
- func MonitorView(m Model) string
- func ProcessManagementView(m Model) string
- func StreamSettingsView(m Model) string
- func StreamView(m Model) string
- type Model
Constants ¶
This section is empty.
Variables ¶
View Source
var ( TitleStyle = lipgloss.NewStyle(). Bold(true). Foreground(lipgloss.Color("#7D56F4")). MarginBottom(1) SelectedStyle = lipgloss.NewStyle(). Foreground(lipgloss.Color("#7D56F4")). Bold(true). PaddingLeft(2) NormalStyle = lipgloss.NewStyle(). PaddingLeft(4) MetricStyle = lipgloss.NewStyle(). Border(lipgloss.RoundedBorder()). BorderForeground(lipgloss.Color("#7D56F4")). Padding(1). MarginTop(1) LabelStyle = lipgloss.NewStyle(). Foreground(lipgloss.Color("#04B575")). Bold(true) ValueStyle = lipgloss.NewStyle(). Foreground(lipgloss.Color("#FAFAFA")) ErrorStyle = lipgloss.NewStyle(). Foreground(lipgloss.Color("#FF0000")) )
Functions ¶
func BgIntervalSettingsView ¶
func BgStreamSettingsView ¶
func FormatSettingsView ¶
func GetFilteredMetrics ¶
func GetFilteredMetrics(searchValue string) []types.MetricType
func MonitorView ¶
func ProcessManagementView ¶
func StreamSettingsView ¶
func StreamView ¶
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
StreamInterval types.StreamInterval
StreamCursor int
FormatCursor int
IsStreaming bool
StreamLogPath string
StreamStartTime time.Time
StreamCount int
LogFormat types.LogFormat
HostInfo *host.InfoStat
BackgroundProcesses []types.BackgroundProcess
ProcessCursor int
BgStreamCursor int
BgFormatCursor int
}
Model represents the model fields needed by views
Click to show internal directories.
Click to hide internal directories.