Documentation ¶
Index ¶
- Variables
- func GetError(errno ERROR) error
- func GetErrorWithMsg(errno ERROR, msg string) error
- func GetErrorf(ctx context.Context) func(format string, fields ...interface{})
- func GetInfof(ctx context.Context) func(format string, fields ...interface{})
- func GetLogFuns(ctx context.Context) (func(format string, fields ...interface{}), ...)
- func IsError(err error, errno ERROR) bool
- type DbType
- type ERROR
- type Error
- type ShortLinkType
Constants ¶
This section is empty.
Variables ¶
View Source
var ERROR_MSG_MAP = map[ERROR]string{ ERROR_OK: "ok", ERROR_EMPTY: "empty", INVALID_PARAMS: "invalid params", }
Functions ¶
func GetErrorWithMsg ¶
func GetLogFuns ¶
Types ¶
type ShortLinkType ¶
type ShortLinkType int
const ( TemporaryShortLink ShortLinkType = iota + 1 PermanentShortLink )
Click to show internal directories.
Click to hide internal directories.