rkos

package
v2.2.22 Latest Latest
Warning

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

Go to latest
Published: Apr 9, 2024 License: Apache-2.0 Imports: 6 Imported by: 1

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

func NewGoEnvInfo

func NewGoEnvInfo() *GoEnvInfo

NewGoEnvInfo creates a new instance of GoEnvInfo

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

func NewMemInfo

func NewMemInfo() *MemInfo

NewMemInfo creates a new MemInfo

type NetInfo

type NetInfo struct {
	NetInterface []*netInterface `json:"netInterface" yaml:"netInterface"`
}

NetInfo defines network interface information about local machine

func NewNetInfo

func NewNetInfo() *NetInfo

type OsInfo

type OsInfo struct {
	Os       string `json:"os" yaml:"os" example:"darwin"`
	Arch     string `json:"arch" yaml:"arch" example:"amd64"`
	Hostname string `json:"hostname" yaml:"hostname" example:"lark.local"`
}

OsInfo defines OS information

func NewOsInfo

func NewOsInfo() *OsInfo

Jump to

Keyboard shortcuts

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