Documentation ¶
Index ¶
- Constants
- type BatteryGauge
- type BatteryWidget
- type CpuWidget
- type DiskWidget
- type HelpMenu
- type MemWidget
- type NetWidget
- type Partition
- type Proc
- type ProcSortMethod
- type ProcWidget
- func (self *ProcWidget) ChangeProcSortMethod(method ProcSortMethod)
- func (self *ProcWidget) Draw(buf *tui.Buffer)
- func (p *ProcWidget) EnableMetric()
- func (self *ProcWidget) HandleEvent(e tui.Event) bool
- func (self *ProcWidget) KillProc(sigName string)
- func (self *ProcWidget) SetEditingFilter(editing bool)
- func (self *ProcWidget) SetRect(x1, y1, x2, y2 int)
- func (self *ProcWidget) ToggleShowingGroupedProcs()
- type Scalable
- type SortProcsByCpu
- type SortProcsByMem
- type SortProcsByPid
- type StatusBar
- type TempScale
- type TempWidget
Constants ¶
View Source
const ( NET_INTERFACE_ALL = "all" NET_INTERFACE_VPN = "tun0" )
View Source
const ( UP_ARROW = "▲" DOWN_ARROW = "▼" )
View Source
const ( ProcSortCpu ProcSortMethod = "c" ProcSortMem = "m" ProcSortPid = "p" )
View Source
const KEYBINDS = `` /* 754-byte string literal not displayed */
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BatteryGauge ¶
type BatteryGauge struct { *Gauge // contains filtered or unexported fields }
func NewBatteryGauge ¶
func NewBatteryGauge() *BatteryGauge
func (*BatteryGauge) EnableMetric ¶
func (b *BatteryGauge) EnableMetric()
type BatteryWidget ¶
func NewBatteryWidget ¶
func NewBatteryWidget(horizontalScale int) *BatteryWidget
func (*BatteryWidget) EnableMetric ¶
func (b *BatteryWidget) EnableMetric()
func (*BatteryWidget) Scale ¶
func (b *BatteryWidget) Scale(i int)
type CpuWidget ¶
type CpuWidget struct { *ui.LineGraph CpuCount int ShowAverageLoad bool ShowPerCpuLoad bool // contains filtered or unexported fields }
func NewCpuWidget ¶
func (*CpuWidget) EnableMetric ¶
func (self *CpuWidget) EnableMetric()
type DiskWidget ¶
type DiskWidget struct { *ui.Table Partitions map[string]*Partition // contains filtered or unexported fields }
func NewDiskWidget ¶
func NewDiskWidget() *DiskWidget
func (*DiskWidget) EnableMetric ¶
func (self *DiskWidget) EnableMetric()
type HelpMenu ¶
func NewHelpMenu ¶
func NewHelpMenu() *HelpMenu
type MemWidget ¶
func (*MemWidget) EnableMetric ¶
func (b *MemWidget) EnableMetric()
type NetWidget ¶
type NetWidget struct { *ui.SparklineGroup NetInterface []string // contains filtered or unexported fields }
func NewNetWidget ¶
TODO: state:merge #169 % option for network use (jrswab/networkPercentage)
func (*NetWidget) EnableMetric ¶
func (b *NetWidget) EnableMetric()
type ProcSortMethod ¶
type ProcSortMethod string
type ProcWidget ¶
func NewProcWidget ¶
func NewProcWidget() *ProcWidget
func (*ProcWidget) ChangeProcSortMethod ¶
func (self *ProcWidget) ChangeProcSortMethod(method ProcSortMethod)
func (*ProcWidget) Draw ¶
func (self *ProcWidget) Draw(buf *tui.Buffer)
func (*ProcWidget) EnableMetric ¶
func (p *ProcWidget) EnableMetric()
func (*ProcWidget) HandleEvent ¶
func (self *ProcWidget) HandleEvent(e tui.Event) bool
func (*ProcWidget) KillProc ¶
func (self *ProcWidget) KillProc(sigName string)
KillProc kills a process or group of processes depending on if we're displaying the processes grouped or not.
func (*ProcWidget) SetEditingFilter ¶
func (self *ProcWidget) SetEditingFilter(editing bool)
func (*ProcWidget) SetRect ¶
func (self *ProcWidget) SetRect(x1, y1, x2, y2 int)
func (*ProcWidget) ToggleShowingGroupedProcs ¶
func (self *ProcWidget) ToggleShowingGroupedProcs()
type SortProcsByCpu ¶
type SortProcsByCpu []Proc
func (SortProcsByCpu) Less ¶
func (self SortProcsByCpu) Less(i, j int) bool
Less implements Sort interface
func (SortProcsByCpu) Swap ¶
func (self SortProcsByCpu) Swap(i, j int)
Swap implements Sort interface
type SortProcsByMem ¶
type SortProcsByMem []Proc
func (SortProcsByMem) Less ¶
func (self SortProcsByMem) Less(i, j int) bool
Less implements Sort interface
func (SortProcsByMem) Swap ¶
func (self SortProcsByMem) Swap(i, j int)
Swap implements Sort interface
type SortProcsByPid ¶
type SortProcsByPid []Proc
func (SortProcsByPid) Less ¶
func (self SortProcsByPid) Less(i, j int) bool
Less implements Sort interface
func (SortProcsByPid) Swap ¶
func (self SortProcsByPid) Swap(i, j int)
Swap implements Sort interface
type StatusBar ¶
func NewStatusBar ¶
func NewStatusBar() *StatusBar
type TempWidget ¶
type TempWidget struct { *ui.Block // inherits from Block instead of a premade Widget Data map[string]int TempThreshold int TempLowColor ui.Color TempHighColor ui.Color TempScale TempScale // contains filtered or unexported fields }
func NewTempWidget ¶
func NewTempWidget(tempScale TempScale) *TempWidget
TODO: state:deferred 156 Added temperatures for NVidia GPUs (azak-azkaran/master). Crashes on non-nvidia machines.
func (*TempWidget) Draw ¶
func (self *TempWidget) Draw(buf *ui.Buffer)
Custom Draw method instead of inheriting from a generic Widget.
func (*TempWidget) EnableMetric ¶
func (self *TempWidget) EnableMetric()
Click to show internal directories.
Click to hide internal directories.