Documentation ¶
Index ¶
- Variables
- func ErrorErrorFail(format string, args ...interface{}) *errors.Error
- func ErrorErrorPhoneIsUsed(format string, args ...interface{}) *errors.Error
- func ErrorErrorSuccess(format string, args ...interface{}) *errors.Error
- func ErrorErrorUnknown(format string, args ...interface{}) *errors.Error
- func IsErrorFail(err error) bool
- func IsErrorPhoneIsUsed(err error) bool
- func IsErrorSuccess(err error) bool
- func IsErrorUnknown(err error) bool
- type Error
Constants ¶
This section is empty.
Variables ¶
View Source
var ( Error_name = map[int32]string{ 0: "ERROR_UNKNOWN", 1: "ERROR_SUCCESS", 2: "ERROR_FAIL", 3: "ERROR_PHONE_IS_USED", } Error_value = map[string]int32{ "ERROR_UNKNOWN": 0, "ERROR_SUCCESS": 1, "ERROR_FAIL": 2, "ERROR_PHONE_IS_USED": 3, } )
Enum value maps for Error.
View Source
var File_v1_error_reason_proto protoreflect.FileDescriptor
Functions ¶
func ErrorErrorFail ¶
func ErrorErrorPhoneIsUsed ¶
func ErrorErrorSuccess ¶
func ErrorErrorUnknown ¶
func IsErrorFail ¶
func IsErrorPhoneIsUsed ¶
func IsErrorSuccess ¶
func IsErrorUnknown ¶
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.