package
1.1.5-alpha.9
Repository: https://github.com/licat233/genzero.git
Documentation: pkg.go.dev

# Functions

* AccessError 外部错误 403 * traceErr error 调试信息 * alertErr error 提示信息 */.
Alert 错误提示, 400.
* AuthError 身份校验失败 401 * traceMsg string 调试信息 */.
将原生错误转化为errorx 400错误.
* ExternalError 外部错误 400 * traceErr error 调试信息 * alertErr error 提示信息 */.
将error转化成External RPC status.Status,主要用于rpc服务中.
将status.Status error转化为Errorx,主要用于api服务处理rpc返回的错误.
* InternalError 内部错误 500 * traceErr error 调试信息 * alertErr error 提示信息 */.
将error转化成Internal RPC status.Status,主要用于rpc服务中.
判断是否为*Errorx错误.
获取本地服务器的ip.
* New 新建基本的errorx错误 400 * alertErr string 提示信息 * traceErr string 调试信息 */.
* ResponseErrorHandler 对接go-zero的错误处理函数,将原生错误转化为 Errorx * err 传入的错误 */.
No description provided by the author
将error转化成Internal RPC status.Status,主要用于rpc服务中,外部错误,但错误信息保密.
status.Error转化为errorx.
将errorx转化为status.Status error.

# Variables

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
var mode = os.Getenv("SERVICE_MODE").
消息提示.

# Structs

* Errorx 对接前端antpro框架的接口格式规范,用于实现error接口 */.
* ResponseError 对接前端antpro框架的接口格式规范,用于实现展现错误 */.