expanded

package
v0.4.1-deps Latest Latest
Warning

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

Go to latest
Published: Mar 12, 2017 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Cpu

type Cpu struct {
	*ui.LineChart
	// contains filtered or unexported fields
}

func NewCpu

func NewCpu() *Cpu

func (*Cpu) Update

func (w *Cpu) Update(val int)

type DiffHist

type DiffHist struct {
	*IntHist
	// contains filtered or unexported fields
}

func NewDiffHist

func NewDiffHist(max int) *DiffHist

func (*DiffHist) Append

func (h *DiffHist) Append(val int)

type Expanded

type Expanded struct {
	Info  *Info
	Net   *Net
	Cpu   *Cpu
	Mem   *Mem
	Width int
}

func NewExpanded

func NewExpanded(id string) *Expanded

func (*Expanded) Align

func (e *Expanded) Align()

func (*Expanded) Buffer

func (e *Expanded) Buffer() ui.Buffer

func (*Expanded) SetMeta

func (e *Expanded) SetMeta(k, v string)

func (*Expanded) SetMetrics

func (e *Expanded) SetMetrics(m metrics.Metrics)

func (*Expanded) SetWidth

func (e *Expanded) SetWidth(w int)

type FloatHist

type FloatHist struct {
	Val    float64   // most current data point
	Data   []float64 // historical data points
	Labels []string
}

func NewFloatHist

func NewFloatHist(max int) FloatHist

func (FloatHist) Append

func (h FloatHist) Append(val float64)

type Info

type Info struct {
	*ui.Table
	// contains filtered or unexported fields
}

func NewInfo

func NewInfo(id string) *Info

func (*Info) Set

func (w *Info) Set(k, v string)

type IntHist

type IntHist struct {
	Val    int   // most current data point
	Data   []int // historical data points
	Labels []string
}

func NewIntHist

func NewIntHist(max int) *IntHist

func (*IntHist) Append

func (h *IntHist) Append(val int)

type Mem

type Mem struct {
	*ui.Block
	Chart      *ui.MBarChart
	InnerLabel *ui.Par
	// contains filtered or unexported fields
}

func NewMem

func NewMem() *Mem

func (*Mem) Align

func (w *Mem) Align()

func (*Mem) Buffer

func (w *Mem) Buffer() ui.Buffer

func (*Mem) Update

func (w *Mem) Update(val int, limit int)

type Net

type Net struct {
	*ui.Sparklines
	// contains filtered or unexported fields
}

func NewNet

func NewNet() *Net

func (*Net) Update

func (w *Net) Update(rx int64, tx int64)

Jump to

Keyboard shortcuts

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