Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func OrderedBy ¶
func OrderedBy(less ...lessFunc) *multiSorter
OrderedBy returns a Sorter that sorts using the less functions, in order. Call its Sort method to sort the data.
func Top ¶
func Top(ps []*ProcessIOStat, res string) error
Top will return top result for RAM and CPU
Types ¶
type DiskStat ¶
type DiskStat struct { Device string Mountpoint string Fstype string Total uint64 Free uint64 Used uint64 UsedPercent float64 InodesTotal uint64 InodesUsed uint64 InodesFree uint64 InodesUsedPercent float64 }
DiskStat represents a physical disk and it's respective info
func GetDiskStats ¶
GetDiskStats returns slice of DiskStat with the partition and usage info
func GetPartitions ¶
GetPartitions returns slice of DiskStat with the partition info
func (*DiskStat) GetUsageStat ¶
GetUsageStat returns slice of DiskStat with the usage info
Click to show internal directories.
Click to hide internal directories.