codes

package
v0.0.0-...-2ebd195 Latest Latest
Warning

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

Go to latest
Published: Sep 29, 2022 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	GlobalAtreusCodesStore sync.Map //全局错误码数组
	//
	PB_SUCC = &pbstatus.Status{
		Code:    int32(rpcodes.OK),
		Message: "SUCC",
		Details: make([]*any.Any, 0),
	}

	PB_STAT_SUCC = &PbStatusWrapper{
		Status: PB_SUCC,
	}
)

Functions

func CheckErrorIsAcceptable

func CheckErrorIsAcceptable(err error) bool

Breaker:Acceptable checks if given error is acceptable

Types

type PbStatusWrapper

type PbStatusWrapper struct {
	*pbstatus.Status
}

func NewPbStatusWrapper

func NewPbStatusWrapper(code int, errmsg string) *PbStatusWrapper

func (*PbStatusWrapper) GetCode2Int

func (p *PbStatusWrapper) GetCode2Int() int

func (*PbStatusWrapper) GetCode2Uint32

func (p *PbStatusWrapper) GetCode2Uint32() uint32

Jump to

Keyboard shortcuts

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