utils

package
v1.1.6 Latest Latest
Warning

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

Go to latest
Published: May 26, 2020 License: LGPL-2.1 Imports: 12 Imported by: 7

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CArrayToGoString added in v1.1.6

func CArrayToGoString(cArray unsafe.Pointer, size int) string

func GetCpuUseRate

func GetCpuUseRate() (int, error)

func GetMemoryStatus

func GetMemoryStatus() (uint32, uint64, uint64, error)

func GoStringToCArray added in v1.1.6

func GoStringToCArray(str string, cArray unsafe.Pointer, size int)

func Request added in v1.1.3

func Request(method string, url string, header http.Header, body interface{}, token string) (int, []byte, http.Header, error)

func SetAdapter added in v1.1.6

func SetAdapter(adapter *Adapter) error

Types

type Adapter added in v1.1.6

type Adapter struct {
	Index       int    `json:"index"`
	Name        string `json:"name"`
	Description string `json:"description"`
	Mac         string `json:"mac"`
	Ip          string `json:"ip"`
	Mask        string `json:"mask"`
	Gateway     string `json:"gateway"`
}

func GetNetworkInfo added in v1.1.6

func GetNetworkInfo() ([]*Adapter, error)

Jump to

Keyboard shortcuts

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