Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CpuInfo ¶
type CpuInfo struct {
Count int `json:"count" yaml:"count" example:"8"`
}
CpuInfo defines CPU information read from system
func NewCpuInfo ¶
func NewCpuInfo() *CpuInfo
type GoEnvInfo ¶
type GoEnvInfo struct { GOOS string `json:"goos" yaml:"goos" example:"darwin"` GOArch string `json:"goArch" yaml:"goArch" example:"amd64"` RoutinesCount int `json:"routinesCount" yaml:"routinesCount" example:"9"` Version string `json:"version" yaml:"version" example:"go1.17.6"` }
GoEnvInfo defines go processor information
type MemInfo ¶
type MemInfo struct { MemUsedPercentage float64 `json:"memUsedPercentage" yaml:"memUsedPercentage" example:"0.21"` MemUsedMb uint64 `json:"memUsedMb" yaml:"memUsedMb" example:"3"` MemAllocByte uint64 `json:"memAllocByte" yaml:"memAllocByte" example:"4182336"` SysAllocByte uint64 `json:"sysAllocByte" yaml:"sysAllocByte" example:"19876624"` LastGcTimestamp string `json:"lastGcTimestamp" yaml:"lastGcTimestamp" example:"2022-03-15T20:43:06+08:00"` GcCount uint32 `json:"gcCountTotal" yaml:"gcCountTotal" example:"1"` ForceGcCount uint32 `json:"forceGcCount" yaml:"forceGcCount" example:"0"` }
MemInfo memory stats of current running process
type NetInfo ¶
type NetInfo struct {
NetInterface []*netInterface `json:"netInterface" yaml:"netInterface"`
}
NetInfo defines network interface information about local machine
func NewNetInfo ¶
func NewNetInfo() *NetInfo
Click to show internal directories.
Click to hide internal directories.