Documentation ¶
Index ¶
- Constants
- func Response(w http.ResponseWriter, resp interface{}, err error)
- type BaseError
- func MustBizError(msg string, err error) BaseError
- func MustDefaultError(err error) BaseError
- func MustError(code int, msg string, err error) BaseError
- func MustMysqlError(msg string, err error) BaseError
- func MustParseError(msg string, err error) BaseError
- func MustRedisError(msg string, err error) BaseError
- func MustTokenError(msg string, err error) BaseError
- type Body
Constants ¶
View Source
const ( BizError = iota + 10001 ParseError MysqlError RedisError TokenError )
Variables ¶
This section is empty.
Functions ¶
func Response ¶
func Response(w http.ResponseWriter, resp interface{}, err error)
Types ¶
type BaseError ¶
func MustBizError ¶
func MustDefaultError ¶
func MustMysqlError ¶ added in v0.1.4
func MustParseError ¶ added in v0.1.4
func MustRedisError ¶ added in v0.1.4
func MustTokenError ¶ added in v0.1.4
Click to show internal directories.
Click to hide internal directories.