cui

package
v0.0.0-...-3896bef Latest Latest
Warning

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

Go to latest
Published: Nov 9, 2021 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HandleCUI

func HandleCUI(data []*metrics.Metrics) error

handleCUI creates CUI and handles keyboardBindings

Types

type UI

type UI struct {
	Title      *widgets.Paragraph
	Status     *widgets.Paragraph
	StatsTable *widgets.Table
	Alerts     *widgets.List
}

UI is a ui implementation of UI interface.

func (*UI) Close

func (*UI) Close()

Close shuts down UI module.

func (*UI) Init

func (t *UI) Init() error

Init creates widgets, sets sizes and labels.

func (*UI) UpdateUI

func (t *UI) UpdateUI(data []*metrics.Metrics, refreshInterval time.Duration)

Update updates UI widgets from UIData.

Jump to

Keyboard shortcuts

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