single

package
v0.7.1 Latest Latest
Warning

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

Go to latest
Published: Mar 9, 2018 License: MIT Imports: 7 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 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 IO

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

func NewIO

func NewIO() *IO

func (*IO) Update

func (w *IO) Update(read int64, write int64)

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 LogLines

type LogLines struct {
	// contains filtered or unexported fields
}

func NewLogLines

func NewLogLines(max int) *LogLines

type Logs

type Logs struct {
	*ui.List
	// contains filtered or unexported fields
}

func NewLogs

func NewLogs(stream chan models.Log) *Logs

func (*Logs) Align

func (w *Logs) Align()

func (*Logs) Buffer

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

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)

type Single

type Single struct {
	Info  *Info
	Net   *Net
	Cpu   *Cpu
	Mem   *Mem
	IO    *IO
	X, Y  int
	Width int
}

func NewSingle

func NewSingle(id string) *Single

func (*Single) Align

func (e *Single) Align()

func (*Single) Buffer

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

func (*Single) Down

func (e *Single) Down()

func (*Single) GetHeight

func (e *Single) GetHeight() (h int)

Return total column height

func (*Single) SetMeta

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

func (*Single) SetMetrics

func (e *Single) SetMetrics(m models.Metrics)

func (*Single) SetWidth

func (e *Single) SetWidth(w int)

func (*Single) Up

func (e *Single) Up()

Jump to

Keyboard shortcuts

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