package
0.0.12
Repository: https://github.com/go-ceres/ceres.git
Documentation: pkg.go.dev

# Functions

As errors.As.
BadRequest 错误请求.
ClientClosed 客户端关闭对应http的499错误.
Clone 深度克隆.
Code 获取错误码.
Conflict 409 冲突错误.
Errorf 带格式化的错误,并返回错误接口类型.
Forbidden new Forbidden error that is mapped to a 403 response.
FromError 从原始错误中转换到框架内部错误.
FromGRPCCode converts a gRPC error code into the corresponding HTTP response status.
GatewayTimeout 网关超时,对应到http的504.
InternalServer 内部服务器错误.
Is errors.Is.
IsBadRequest 判断是否时请求错误.
IsClientClosed 判断是否是客户端关闭.
IsConflict 是否是409冲突错误.
IsForbidden determines if err is an error which indicates a Forbidden error.
IsGatewayTimeout 判断是否是网关超时.
IsInternalServer 是否是客户端管理.
IsMethodNotAllowed 是否是请求超时.
IsNotFound determines if err is an error which indicates an NotFound error.
IsRequestEntityTooLarge 是否是请求体太大.
IsRequestHeaderFieldsTooLarge 是否是请求头字段太大.
IsRequestTimeout 是否是请求超时.
IsServiceUnavailable 判断错误码是否是503.
IsUnauthorized 判断是否是权限错误.
MethodNotAllowed 请求超时.
New 新建错误.
Newf 带格式化的新建.
NotFound new NotFound error that is mapped to a 404 response.
Reason 获取错误原因.
RequestEntityTooLarge 请求体太大.
RequestHeaderFieldsTooLarge 请求头字段太大.
RequestTimeout 请求超时.
ServiceUnavailable 没有找到服务,映射到http的503.
ToGRPCCode converts an HTTP error code into the corresponding gRPC response status.
Unauthorized 权限认证失败错误.
Unwrap errors.Unwrap.

# Constants

SuccessCode 正确错误码.
SupportPackageIsVersion1 protoc required constant.
UnknownCode 未知错误,服务器内部错误.
UnknownReason 未知的错误信息.

# Variables

DefaultConverter default converter.
optional int32 code = 1109;.
optional int32 default_code = 1108;.
No description provided by the author

# Structs

No description provided by the author
No description provided by the author

# Interfaces

Converter is a status converter.

# Type aliases

No description provided by the author