machine

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Mar 30, 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
	CpuPercent float64
	MemPercent float32
	MemAlloc   uint64
	KeysTotal  int
	TableType  string
}

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