package
0.0.0-20221026013913-f274578981d7
Repository: https://github.com/pandaychen/goes-wrapper.git
Documentation: pkg.go.dev
# README
pyerrors
提供项目中全局错误(错误码)的封装
- redis:错误码
-10000~-19999
- kafka:错误码
-20000~-29999
- go-workqueue组件:错误码
-30000~-39999
# Constants
Nil reply returned by Redis when key does not exist.
# Variables
访问权限不足.
客户端取消请求.
冲突.
服务调用超时.
ErrInvalidParams is returned when parameters is invalid.
ErrLockNotHeld is returned when trying to release an inactive Lock.
ErrNotObtained is returned when a Lock cannot be obtained.
业务全局错误码.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
超出限制 (服务端限流返回此错误).
不支持该方法.
啥都木有.
木有改动.
正确.
请求错误.
服务器错误.
过载保护,服务暂不可用(客户端熔断返回此错误).
302跳转.
未认证.
# Interfaces
Codes ecode error interface which has a code & message.
# Type aliases
Code 是 Codes实例化类型,本项目的错误码就是int,因为Codes实现了Error()方法,所以可以直接当做error返回 A Code is an int error code spec.