compact

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: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Compact

type Compact struct {
	Status *Status
	Name   *TextCol
	Cid    *TextCol
	Cpu    *GaugeCol
	Mem    *GaugeCol
	Net    *TextCol
	IO     *TextCol
	Pids   *TextCol
	X, Y   int
	Width  int
	Height int
}

func NewCompact

func NewCompact(id string) *Compact

func (*Compact) Buffer

func (row *Compact) Buffer() ui.Buffer

func (*Compact) GetHeight

func (row *Compact) GetHeight() int

func (*Compact) Reset

func (row *Compact) Reset()

Set gauges, counters to default unread values

func (*Compact) SetCPU

func (row *Compact) SetCPU(val int)

func (*Compact) SetIO added in v0.5.1

func (row *Compact) SetIO(read int64, write int64)

func (*Compact) SetMem

func (row *Compact) SetMem(val int64, limit int64, percent int)

func (*Compact) SetMeta

func (row *Compact) SetMeta(k, v string)

func (*Compact) SetMetrics

func (row *Compact) SetMetrics(m models.Metrics)

func (*Compact) SetNet

func (row *Compact) SetNet(rx int64, tx int64)

func (*Compact) SetPids added in v0.5.1

func (row *Compact) SetPids(val int)

func (*Compact) SetWidth

func (row *Compact) SetWidth(width int)

func (*Compact) SetX

func (row *Compact) SetX(x int)

func (*Compact) SetY

func (row *Compact) SetY(y int)

type CompactGrid

type CompactGrid struct {
	ui.GridBufferer
	Rows   []ui.GridBufferer
	X, Y   int
	Width  int
	Height int
	Offset int // starting row offset
}

func NewCompactGrid

func NewCompactGrid() *CompactGrid

func (*CompactGrid) AddRows

func (cg *CompactGrid) AddRows(rows ...ui.GridBufferer)

func (*CompactGrid) Align

func (cg *CompactGrid) Align()

func (*CompactGrid) Buffer

func (cg *CompactGrid) Buffer() ui.Buffer

func (*CompactGrid) Clear

func (cg *CompactGrid) Clear()

func (*CompactGrid) GetHeight

func (cg *CompactGrid) GetHeight() int

func (*CompactGrid) MaxRows

func (cg *CompactGrid) MaxRows() int

func (*CompactGrid) SetWidth

func (cg *CompactGrid) SetWidth(w int)

func (*CompactGrid) SetX

func (cg *CompactGrid) SetX(x int)

func (*CompactGrid) SetY

func (cg *CompactGrid) SetY(y int)

type CompactHeader

type CompactHeader struct {
	X, Y   int
	Width  int
	Height int
	// contains filtered or unexported fields
}

func NewCompactHeader

func NewCompactHeader() *CompactHeader

func (*CompactHeader) Buffer

func (ch *CompactHeader) Buffer() ui.Buffer

func (*CompactHeader) GetHeight

func (ch *CompactHeader) GetHeight() int

func (*CompactHeader) SetWidth

func (ch *CompactHeader) SetWidth(w int)

func (*CompactHeader) SetX

func (ch *CompactHeader) SetX(x int)

func (*CompactHeader) SetY

func (ch *CompactHeader) SetY(y int)

type GaugeCol

type GaugeCol struct {
	*ui.Gauge
}

func NewGaugeCol

func NewGaugeCol() *GaugeCol

func (*GaugeCol) Reset

func (w *GaugeCol) Reset()

type Status

type Status struct {
	*ui.Block
	// contains filtered or unexported fields
}

Status indicator

func NewStatus

func NewStatus() *Status

func (*Status) Buffer added in v0.7.1

func (s *Status) Buffer() ui.Buffer

func (*Status) Set

func (s *Status) Set(val string)

func (*Status) SetHealth added in v0.7.1

func (s *Status) SetHealth(val string)

type TextCol

type TextCol struct {
	*ui.Par
}

func NewTextCol

func NewTextCol(s string) *TextCol

func (*TextCol) Highlight

func (w *TextCol) Highlight()

func (*TextCol) Reset

func (w *TextCol) Reset()

func (*TextCol) Set

func (w *TextCol) Set(s string)

func (*TextCol) UnHighlight

func (w *TextCol) UnHighlight()

Jump to

Keyboard shortcuts

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