util

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Jun 27, 2019 License: GPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Map

func Map(src interface{}, dst interface{}) error

func MapAll

func MapAll(srcSlice interface{}, dstSlice interface{}) error

func ParseIPAddr

func ParseIPAddr(withPort string) string

func RestRequest

func RestRequest(method server.RequestMethod, url string, reqBody interface{}, respBody interface{}) (bool, error)

Types

type SystemLoad

type SystemLoad struct {
	CPUUTotal   uint8 `json:"cpu_total"`
	CPUUsed     uint8 `json:"cpu_use"`
	MemoryTotal uint  `json:"memory_total"`
	MemoryUsed  uint  `json:"memory_used"`
}

func AcquireSystemLoad

func AcquireSystemLoad() SystemLoad

Jump to

Keyboard shortcuts

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