codes

package
v0.0.0-...-02b4230 Latest Latest
Warning

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

Go to latest
Published: Sep 10, 2020 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Overview

*

*
* @author liangjf
* @create on 2020/5/20
* @version 1.0

*

*
* @author liangjf
* @create on 2020/5/20
* @version 1.0

Index

Constants

View Source
const (
	CodeSuccess = 1

	//gateway
	CodeNetworkNotSupported = 1000
)

Variables

View Source
var (
	Success = NewErr(CodeSuccess, "ok")

	ErrNetworkNotSupported = NewErr(CodeNetworkNotSupported, "network type not supported")
)

Functions

func New

func New(e int32) int32

Types

type Errno

type Errno struct {
	Code int32       `json:"Code"`
	Msg  string      `json:"Msg"`
	Data interface{} `json:"Data,omitempty"`
}

func NewErr

func NewErr(code int32, msg string) *Errno

func (Errno) Error

func (e Errno) Error() string

Jump to

Keyboard shortcuts

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