expanded

package
v0.6.1 Latest Latest
Warning

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

Go to latest
Published: Jun 29, 2017 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 Expanded

type Expanded struct {
	Info  *Info
	Net   *Net
	Cpu   *Cpu
	Mem   *Mem
	IO    *IO
	X, Y  int
	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) Down added in v0.5.1

func (e *Expanded) Down()

func (*Expanded) GetHeight added in v0.5.1

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

Return total column height

func (*Expanded) SetMeta

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

func (*Expanded) SetMetrics

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

func (*Expanded) SetWidth

func (e *Expanded) SetWidth(w int)

func (*Expanded) Up added in v0.5.1

func (e *Expanded) Up()

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 added in v0.5.1

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

func NewIO added in v0.5.1

func NewIO() *IO

func (*IO) Update added in v0.5.1

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 added in v0.6.1

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

func NewLogLines added in v0.6.1

func NewLogLines(max int) *LogLines

type Logs added in v0.6.1

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

func NewLogs added in v0.6.1

func NewLogs(stream chan models.Log) *Logs

func (*Logs) Align added in v0.6.1

func (w *Logs) Align()

func (*Logs) Buffer added in v0.6.1

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)

Jump to

Keyboard shortcuts

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