system

package
v0.0.0-...-98a29f8 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 19, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetFloat64MB

func GetFloat64MB(size int64) float64

func GetPercent

func GetPercent(val float64) float64

func GetUint64GB

func GetUint64GB(size uint64) float64

Types

type CPUStatus

type CPUStatus struct {
	Cores       int     `json:"cores"`
	UsedPercent float64 `json:"usedPercent"`
	ModelName   string  `json:"modelName"`
}

func GetCPUStatus

func GetCPUStatus() CPUStatus

type DiskStatus

type DiskStatus struct {
	Total       float64 `json:"total"`
	Used        float64 `json:"used"`
	Free        float64 `json:"free"`
	FsType      string  `json:"fsType"`
	UsedPercent float64 `json:"usedPercent"`
	Path        string  `json:"path"`
}

func GetDiskStat

func GetDiskStat() DiskStatus

func (*DiskStatus) String

func (d *DiskStatus) String() string

type MemStatus

type MemStatus struct {
	Total       float64 `json:"total"`
	Used        float64 `json:"used"`
	Free        float64 `json:"free"`
	Self        float64 `json:"self"`
	UsedPercent float64 `json:"usedPercent"`
}

func GetMemStat

func GetMemStat() MemStatus

func (*MemStatus) String

func (m *MemStatus) String() string

Jump to

Keyboard shortcuts

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