Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( Error_name = map[int32]string{ 0: "ERR_UNKNOWN", 1: "ERR_INVALID_ARGUMENT", 2: "ERR_NOT_FOUND", 3: "ERR_DB_ERROR", } Error_value = map[string]int32{ "ERR_UNKNOWN": 0, "ERR_INVALID_ARGUMENT": 1, "ERR_NOT_FOUND": 2, "ERR_DB_ERROR": 3, } )
Enum value maps for Error.
View Source
var File_errcode_v1_errors_proto protoreflect.FileDescriptor
Functions ¶
func ErrDbError ¶
func ErrInvalidArgument ¶
func ErrNotFound ¶
func ErrUnknown ¶
Types ¶
type Error ¶
type Error int32
错误
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.