gauge

package
Version: v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Dec 24, 2019 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	MinValueLabel = "min"
	MaxValueLabel = "max"
	CurValueLabel = "cur"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Gauge

type Gauge struct {
	*ui.Block
	*data.Consumer
	// contains filtered or unexported fields
}

Gauge displays cur value between specified min and max values

func NewGauge

func NewGauge(c config.GaugeConfig, palette console.Palette) *Gauge

func (*Gauge) ConsumeSample

func (g *Gauge) ConsumeSample(sample *data.Sample)

func (*Gauge) Draw

func (g *Gauge) Draw(buffer *ui.Buffer)

Source Files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL