machine

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: May 8, 2022 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Info

type Info struct {
	// contains filtered or unexported fields
}

func NewWareInfo

func NewWareInfo(option *WareInfoOption) *Info

func (*Info) Close

func (i *Info) Close()

type InfoView

type InfoView struct {
	Pid        int     `json:"pid"`
	CpuPercent float64 `json:"cpu_percent"`
	MemPercent float32 `json:"mem_percent"`
	MemAlloc   uint64  `json:"mem_alloc"`
	MemUsed    uint64  `json:"mem_used"`
	KeysTotal  int     `json:"keys_total"`
	TableType  string  `json:"table_type"`
}

func GetWareInfo

func GetWareInfo() *InfoView

type WareInfoOption

type WareInfoOption struct {
	FreshFrequency uint `yaml:"FreshFrequency"`
}

func DefaultWareInfoOption

func DefaultWareInfoOption() *WareInfoOption

Jump to

Keyboard shortcuts

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