Documentation ¶
Index ¶
- Variables
- func ErrorDataNotFound(format string, args ...interface{}) *errors.Error
- func ErrorPageNotFound(format string, args ...interface{}) *errors.Error
- func ErrorParamFormat(format string, args ...interface{}) *errors.Error
- func ErrorParamMissing(format string, args ...interface{}) *errors.Error
- func ErrorServerError(format string, args ...interface{}) *errors.Error
- func ErrorSuccess(format string, args ...interface{}) *errors.Error
- func ErrorTokenBindInvalid(format string, args ...interface{}) *errors.Error
- func ErrorTokenExpire(format string, args ...interface{}) *errors.Error
- func ErrorTokenInvalid(format string, args ...interface{}) *errors.Error
- func ErrorTokenMissing(format string, args ...interface{}) *errors.Error
- func ErrorTokenUnbind(format string, args ...interface{}) *errors.Error
- func IsDataNotFound(err error) bool
- func IsPageNotFound(err error) bool
- func IsParamFormat(err error) bool
- func IsParamMissing(err error) bool
- func IsServerError(err error) bool
- func IsSuccess(err error) bool
- func IsTokenBindInvalid(err error) bool
- func IsTokenExpire(err error) bool
- func IsTokenInvalid(err error) bool
- func IsTokenMissing(err error) bool
- func IsTokenUnbind(err error) bool
- type Error
Constants ¶
This section is empty.
Variables ¶
View Source
var ( Error_name = map[int32]string{ 0: "SUCCESS", 40000: "PARAM_MISSING", 40001: "PARAM_FORMAT", 40100: "TOKEN_MISSING", 40101: "TOKEN_INVALID", 40102: "TOKEN_EXPIRE", 40103: "TOKEN_BIND_INVALID", 40104: "TOKEN_UNBIND", 40401: "PAGE_NOT_FOUND", 40402: "DATA_NOT_FOUND", 50000: "SERVER_ERROR", } Error_value = map[string]int32{ "SUCCESS": 0, "PARAM_MISSING": 40000, "PARAM_FORMAT": 40001, "TOKEN_MISSING": 40100, "TOKEN_INVALID": 40101, "TOKEN_EXPIRE": 40102, "TOKEN_BIND_INVALID": 40103, "TOKEN_UNBIND": 40104, "PAGE_NOT_FOUND": 40401, "DATA_NOT_FOUND": 40402, "SERVER_ERROR": 50000, } )
Enum value maps for Error.
View Source
var File_errors_error_proto protoreflect.FileDescriptor
Functions ¶
func ErrorDataNotFound ¶
func ErrorPageNotFound ¶
func ErrorParamFormat ¶
func ErrorParamMissing ¶
func ErrorServerError ¶
func ErrorSuccess ¶
func ErrorTokenBindInvalid ¶
func ErrorTokenExpire ¶
func ErrorTokenInvalid ¶
func ErrorTokenMissing ¶
func ErrorTokenUnbind ¶
func IsDataNotFound ¶
func IsPageNotFound ¶
func IsParamFormat ¶
func IsParamMissing ¶
func IsServerError ¶
func IsTokenBindInvalid ¶
func IsTokenExpire ¶
func IsTokenInvalid ¶
func IsTokenMissing ¶
func IsTokenUnbind ¶
Types ¶
type Error ¶
type Error int32
const ( Error_SUCCESS Error = 0 Error_PARAM_MISSING Error = 40000 Error_PARAM_FORMAT Error = 40001 Error_TOKEN_MISSING Error = 40100 Error_TOKEN_INVALID Error = 40101 Error_TOKEN_EXPIRE Error = 40102 Error_TOKEN_BIND_INVALID Error = 40103 Error_TOKEN_UNBIND Error = 40104 Error_PAGE_NOT_FOUND Error = 40401 Error_DATA_NOT_FOUND Error = 40402 Error_SERVER_ERROR Error = 50000 )
func (Error) Descriptor ¶
func (Error) Descriptor() protoreflect.EnumDescriptor
func (Error) EnumDescriptor
deprecated
func (Error) Number ¶
func (x Error) Number() protoreflect.EnumNumber
func (Error) Type ¶
func (Error) Type() protoreflect.EnumType
Click to show internal directories.
Click to hide internal directories.