Documentation ¶
Index ¶
Constants ¶
View Source
const DefaultCode uint32 = 1
* 常用通用固定错误
View Source
const OK uint32 = 200
成功返回
View Source
const SERVER_COMMON_ERROR uint32 = 500
全局错误码
Variables ¶
This section is empty.
Functions ¶
func GetSpanID ¶
func GetSpanID(span trace.SpanContext) string
func GetTraceID ¶
func GetTraceID(span trace.SpanContext) string
Types ¶
type CodeError ¶
type CodeError struct {
// contains filtered or unexported fields
}
func NewErrCode ¶
func NewErrCodeMsg ¶
Click to show internal directories.
Click to hide internal directories.