utils

package
v1.2.13 Latest Latest
Warning

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

Go to latest
Published: Aug 24, 2020 License: LGPL-2.1 Imports: 21 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 ConvertGBKToUtf8 added in v1.2.12

func ConvertGBKToUtf8(bytes []byte) string

func Decode added in v1.1.7

func Decode(fingerprint string, encryptData string) ([]byte, error)

func DecodeSelf added in v1.1.7

func DecodeSelf(encryptData string) ([]byte, error)

func Encode added in v1.1.7

func Encode(fingerprint string, content []byte) (string, error)

func EncodeSelf added in v1.1.7

func EncodeSelf(content []byte) (string, error)

func GetBaseBoardUUID added in v1.1.7

func GetBaseBoardUUID() (string, error)

func GetCpuID added in v1.1.7

func GetCpuID() (string, error)

func GetCpuUseRate

func GetCpuUseRate() (int, error)

func GetDiskSerialNumber added in v1.1.7

func GetDiskSerialNumber() ([]string, error)

func GetMachineFingerprint added in v1.1.7

func GetMachineFingerprint() (string, 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