sampler: github.com/sqshq/sampler/component/gauge Index | Files

package gauge

import "github.com/sqshq/sampler/component/gauge"

Index

Package Files

gauge.go

Constants

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

type Gauge Uses

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

Gauge displays cur value between specified min and max values

func NewGauge Uses

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

func (*Gauge) ConsumeSample Uses

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

func (*Gauge) Draw Uses

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

Package gauge imports 8 packages (graph) and is imported by 1 packages. Updated 2020-01-03. Refresh now. Tools for package owners.