Documentation ¶
Index ¶
- func BadRequest(reason, message string) error
- func Conflict(reason, message string) error
- func ErrNotExistMd(format string, a ...interface{}) error
- func ErrSignService(format string, a ...interface{}) error
- func Forbidden(reason, message string) error
- func GormErrRecordNotFound(err error) error
- func InternalServer(reason, message string) error
- func IsErrNotExistMd(err error) bool
- func IsErrSignService(err error) bool
- func IsGormErrRecordNotFound(err error) bool
- func IsJsonSyntaxError(err error) bool
- func IsRedisNil(err error) bool
- func IsSaramaErrClosedClient(err error) bool
- func JsonSyntaxError(err *json.SyntaxError) error
- func Newf(code int, reason, format string, a ...interface{}) *errors.Error
- func NotFound(reason, message string) error
- func ReadTimeout(domain, reason, format string, a ...interface{}) error
- func RedisNil() error
- func SaramaErrClosedClient(err error) error
- func SignCheckErr(domain, reason, format string, a ...interface{}) error
- func Unauthorized(reason, message string) error
- func Unknown(format string, a ...interface{}) error
- func Validate(format string, a ...interface{}) error
- func WrapError(err error) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BadRequest ¶
BadRequest new BadRequest error that is mapped to a 400 response.
func ErrNotExistMd ¶
func ErrSignService ¶
func GormErrRecordNotFound ¶
func InternalServer ¶
InternalServer new InternalServer error that is mapped to a 500 response.
func IsErrNotExistMd ¶
func IsErrSignService ¶
func IsGormErrRecordNotFound ¶
func IsJsonSyntaxError ¶
func IsRedisNil ¶
func IsSaramaErrClosedClient ¶
func JsonSyntaxError ¶
func JsonSyntaxError(err *json.SyntaxError) error
func SaramaErrClosedClient ¶
func SignCheckErr ¶
main ecode interval is [0,990000]
func Unauthorized ¶
Unauthorized new Unauthorized error that is mapped to a 401 response.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.