package
1.9.29
Repository: https://github.com/infraboard/mcube.git
Documentation: pkg.go.dev

# Functions

IsConflictError 判断是否是Conflict.
IsNotFoundError 判断是否是NotFoundError.
NewAccessTokenExpired 访问token过期.
NewAccessTokenIllegal 访问token过期.
NewAPIException 创建一个API异常 用于其他模块自定义异常.
{"namespace":"","http_code":404,"error_code":404,"reason":"资源未找到","message":"test","meta":null,"data":null}.
No description provided by the author
NewBadRequest todo.
NewConflict todo.
NewInternalServerError 500.
NewNotFound todo.
NewOtherClientsLoggedIn 其他端登录.
NewOtherIPLoggedIn 异常IP登录.
NewOtherPlaceLoggedIn 异地登录.
NewPasswordExired 50019.
NewPermissionDeny 没有权限访问.
NewRefreshTokenExpired 刷新token过期.
NewRefreshTokenIllegal 访问token过期.
NewSessionTerminated 会话结束.
NewUnauthorized 未认证.
NewVerifyCodeRequiredError 50018.

# Constants

AccessTokenExpired token过期.
AccessTokenIllegal 访问token不合法.
BadRequest 请求不合法.
Conflict 资源冲突, 已经存在.
Forbidden 无权限.
InternalServerError 服务端内部错误.
NotFound 接口未找到.
OtherClientsLoggedIn 用户已经通过其他端登录.
OtherIPLoggedIn 异常IP登录.
OtherPlaceLoggedIn 登录登录.
PasswordExired 用户密码过期.
RefreshTokenExpired token过期.
RefreshTokenIllegal 刷新token不合法.
SessionTerminated 会话中断.
GRPC Trailer 异常转换时定义的key名称.
Unauthorized 未认证.
UnKnownException 未知异常.
VerifyCodeRequired 需要验证码.

# Interfaces

APIException API异常.