myerrors

package
v0.0.0-...-11d93fa Latest Latest
Warning

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

Go to latest
Published: Jun 15, 2020 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// SUCCESS  成功
	SUCCESS = 200
	// FAIL 失败
	FAIL = 500

	// FAILCONNECTION 建立连接失败
	FAILCONNECTION = 10001

	// FAILGETUUID 获取UUID失败
	FAILGETUUID = 20001

	// FAILGETIPINFO IPINFO获取失败
	FAILGETIPINFO = 30001
	// FAILGETIPAREA 获取IP所在地失败
	FAILGETIPAREA = 30002
	// FAILGETIPISP 获取IP运营商失败
	FAILGETIPISP = 30003

	// FAILGETCPUCORE 获取CPU核数失败
	FAILGETCPUCORE = 40001
	// FAILGETMEMORYSIZE 获取内存大小失败
	FAILGETMEMORYSIZE = 40002
	// FAILGETDISKSIZE 获取磁盘大小失败
	FAILGETDISKSIZE = 40003

	// FAILGETNATTYPE 获取NAT类型失败
	FAILGETNATTYPE = 50001
)

Variables

This section is empty.

Functions

func GetMsg

func GetMsg(code int) string

GetMsg 通过code获取对应的msg

Types

This section is empty.

Jump to

Keyboard shortcuts

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