tui

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Jan 6, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Manager added in v0.0.7

type Manager struct {
	ChecksCount       int
	TotalResponseTime time.Duration
	TotalUptime       time.Duration
	StartTime         time.Time
	LastCheckTime     time.Time
	IsUp              bool
	MinResponseTime   float64
	MaxResponseTime   float64
	TDigest           *tdigest.TDigest

	QuitWidget            *widgets.Paragraph
	UptimeWidget          *widgets.Paragraph
	UpForWidget           *widgets.Paragraph
	AvgResponseTimeWidget *widgets.Paragraph
	MinResponseTimeWidget *widgets.Paragraph
	MaxResponseTimeWidget *widgets.Paragraph
	P95ResponseTimeWidget *widgets.Paragraph
	SSLOkWidget           *widgets.Paragraph
	UptimePlot            *widgets.Plot
	ResponseTimePlot      *widgets.Plot
	URLWidget             *widgets.Paragraph
	RefreshWidget         *widgets.Paragraph
	AssertionWidget       *widgets.Paragraph
	TimingBreakdownWidget *uw.TimingBreakdown
	Grid                  *ui.Grid
}

func NewManager added in v0.0.7

func NewManager() *Manager

func (*Manager) InitializeWidgets added in v0.0.7

func (m *Manager) InitializeWidgets(url string, refreshInterval time.Duration)

func (*Manager) UpdateDurationWidgets added in v0.0.7

func (m *Manager) UpdateDurationWidgets(width int, height int)

func (*Manager) UpdateWidgets added in v0.0.7

func (m *Manager) UpdateWidgets(result net.WebsiteCheckResult, width int, height int)

Jump to

Keyboard shortcuts

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