model

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: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FetchMetrics

func FetchMetrics(metricType types.MetricType) tea.Cmd

func TickCmd

func TickCmd(interval int) 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

func (Model) Init

func (m Model) Init() tea.Cmd

func (Model) Update

func (m Model) Update(msg tea.Msg) (tea.Model, tea.Cmd)

func (Model) View

func (m Model) View() string

Jump to

Keyboard shortcuts

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