Documentation
¶
Index ¶
- type Compact
- func (row *Compact) Buffer() ui.Buffer
- func (row *Compact) GetHeight() int
- func (row *Compact) Reset()
- func (row *Compact) SetCPU(val int)
- func (row *Compact) SetIO(read int64, write int64)
- func (row *Compact) SetMem(val int64, limit int64, percent int)
- func (row *Compact) SetMeta(k, v string)
- func (row *Compact) SetMetrics(m models.Metrics)
- func (row *Compact) SetNet(rx int64, tx int64)
- func (row *Compact) SetPids(val int)
- func (row *Compact) SetWidth(width int)
- func (row *Compact) SetX(x int)
- func (row *Compact) SetY(y int)
- type CompactGrid
- func (cg *CompactGrid) AddRows(rows ...ui.GridBufferer)
- func (cg *CompactGrid) Align()
- func (cg *CompactGrid) Buffer() ui.Buffer
- func (cg *CompactGrid) Clear()
- func (cg *CompactGrid) GetHeight() int
- func (cg *CompactGrid) MaxRows() int
- func (cg *CompactGrid) SetWidth(w int)
- func (cg *CompactGrid) SetX(x int)
- func (cg *CompactGrid) SetY(y int)
- type CompactHeader
- type GaugeCol
- type Status
- type TextCol
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 (*Compact) SetMetrics ¶
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 ¶
func NewGaugeCol ¶
func NewGaugeCol() *GaugeCol
Source Files
¶
Click to show internal directories.
Click to hide internal directories.