Documentation ¶
Index ¶
- Constants
- type BatteryWidget
- type CpuWidget
- type DiskWidget
- type HelpMenu
- type MemWidget
- type MemoryInfo
- type NetInterface
- type NetWidget
- type Partition
- type Proc
- type ProcSortMethod
- type ProcWidget
- 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 = `` /* 459-byte string literal not displayed */
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BatteryWidget ¶
func NewBatteryWidget ¶
func NewBatteryWidget(horizontalScale int) *BatteryWidget
type CpuWidget ¶
type DiskWidget ¶
type DiskWidget struct { *ui.Table Partitions map[string]*Partition // contains filtered or unexported fields }
func NewDiskWidget ¶
func NewDiskWidget() *DiskWidget
type HelpMenu ¶
func NewHelpMenu ¶
func NewHelpMenu() *HelpMenu
type MemoryInfo ¶
type NetInterface ¶
type NetInterface string
type NetWidget ¶
type NetWidget struct { *ui.SparklineGroup NetInterface string // contains filtered or unexported fields }
func NewNetWidget ¶
type ProcSortMethod ¶
type ProcSortMethod string
type ProcWidget ¶
func NewProcWidget ¶
func NewProcWidget() *ProcWidget
func (*ProcWidget) ChangeProcSortMethod ¶
func (self *ProcWidget) ChangeProcSortMethod(method ProcSortMethod)
func (*ProcWidget) KillProc ¶
func (self *ProcWidget) KillProc()
KillProc kills a process or group of processes depending on if we're displaying the processes grouped or not.
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
func (*TempWidget) Draw ¶
func (self *TempWidget) Draw(buf *ui.Buffer)
Custom Draw method instead of inheriting from a generic Widget.
Click to show internal directories.
Click to hide internal directories.