rkos

package
v2.0.8 Latest Latest
Warning

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

Go to latest
Published: Mar 14, 2022 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"`
}

CpuInfo defines CPU information read from system

func NewCpuInfo

func NewCpuInfo() *CpuInfo

type GoEnvInfo

type GoEnvInfo struct {
	GOOS          string `json:"goos" yaml:"goos"`
	GOArch        string `json:"goArch" yaml:"goArch"`
	RoutinesCount int    `json:"routinesCount" yaml:"routinesCount"`
	Version       string `json:"version" yaml:"version"`
}

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"`
	MemUsedMb         uint64  `json:"memUsedMb" yaml:"memUsedMb"`
	MemAllocByte      uint64  `json:"memAllocByte" yaml:"memAllocByte"`
	SysAllocByte      uint64  `json:"sysAllocByte" yaml:"sysAllocByte"`
	LastGcTimestamp   string  `json:"lastGcTimestamp" yaml:"lastGcTimestamp"`
	GcCount           uint32  `json:"gcCountTotal" yaml:"gcCountTotal"`
	ForceGcCount      uint32  `json:"forceGcCount" yaml:"forceGcCount"`
}

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"`
	Arch     string `json:"arch" yaml:"arch"`
	Hostname string `json:"hostname" yaml:"hostname"`
}

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