ui

package
v0.0.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 14, 2025 License: MIT Imports: 9 Imported by: 0

Documentation

Index

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 BgIntervalSettingsView(m Model) string

func BgStreamSettingsView

func BgStreamSettingsView(m Model) string

func FormatSettingsView

func FormatSettingsView(m Model) string

func GetFilteredMetrics

func GetFilteredMetrics(searchValue string) []types.MetricType
func MenuView(m Model) string

func MonitorView

func MonitorView(m Model) string

func ProcessManagementView

func ProcessManagementView(m Model) string

func StreamSettingsView

func StreamSettingsView(m Model) string

func StreamView

func StreamView(m Model) string

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL