Documentation
¶
Index ¶
- Constants
- Variables
- func IsAlreadyExistsCode(err error) bool
- func IsAlreadyExistsMobile(err error) bool
- func IsContentMissing(err error) bool
- func IsFormatBirthday(err error) bool
- func IsLoginFail(err error) bool
- func IsMissingAddress(err error) bool
- func IsMissingMobile(err error) bool
- func IsMissingName(err error) bool
- func IsMissingPassword(err error) bool
- func IsMissingProfile(err error) bool
- func IsMissingSource(err error) bool
- func IsRegisterFail(err error) bool
- type Address
- type Auth
- type Profile
- type User
Constants ¶
View Source
const ( Errors_MissingName = "User_MissingName" Errors_ContentMissing = "User_ContentMissing" )
View Source
const ( Errors_MissingMobile = "Auth_MissingMobile" Errors_MissingPassword = "Auth_MissingPassword" Errors_AlreadyExistsMobile = "Auth_AlreadyExistsMobile" Errors_AlreadyExistsCode = "Auth_AlreadyExistsCode" Errors_MissingSource = "Auth_MissingSource" Errors_RegisterFail = "Auth_RegisterFail" Errors_LoginFail = "Auth_LoginFail" Errors_FormatBirthday = "Auth_FormatBirthday" )
View Source
const (
Errors_MissingAddress = "Address_MissingAddress"
)
View Source
const (
Errors_MissingProfile = "Profile_MissingProfile"
)
Variables ¶
View Source
var ( User_name = map[int32]string{ 0: "MissingName", 1: "ContentMissing", } User_value = map[string]int32{ "MissingName": 0, "ContentMissing": 1, } )
Enum value maps for User.
View Source
var ( Auth_name = map[int32]string{ 0: "MissingMobile", 1: "MissingPassword", 2: "AlreadyExistsMobile", 3: "AlreadyExistsCode", 4: "MissingSource", 5: "RegisterFail", 6: "LoginFail", 7: "FormatBirthday", } Auth_value = map[string]int32{ "MissingMobile": 0, "MissingPassword": 1, "AlreadyExistsMobile": 2, "AlreadyExistsCode": 3, "MissingSource": 4, "RegisterFail": 5, "LoginFail": 6, "FormatBirthday": 7, } )
Enum value maps for Auth.
View Source
var ( Profile_name = map[int32]string{ 0: "MissingProfile", } Profile_value = map[string]int32{ "MissingProfile": 0, } )
Enum value maps for Profile.
View Source
var ( Address_name = map[int32]string{ 0: "MissingAddress", } Address_value = map[string]int32{ "MissingAddress": 0, } )
Enum value maps for Address.
View Source
var File_api_user_v1_errors_errors_proto protoreflect.FileDescriptor
Functions ¶
func IsAlreadyExistsCode ¶
func IsAlreadyExistsMobile ¶
func IsContentMissing ¶
func IsFormatBirthday ¶
func IsLoginFail ¶
func IsMissingAddress ¶
func IsMissingMobile ¶
func IsMissingName ¶
func IsMissingPassword ¶
func IsMissingProfile ¶
func IsMissingSource ¶
func IsRegisterFail ¶
Types ¶
type Address ¶
type Address int32
const (
Address_MissingAddress Address = 0
)
func (Address) Descriptor ¶
func (Address) Descriptor() protoreflect.EnumDescriptor
func (Address) EnumDescriptor
deprecated
func (Address) Number ¶
func (x Address) Number() protoreflect.EnumNumber
func (Address) Type ¶
func (Address) Type() protoreflect.EnumType
type Auth ¶
type Auth int32
func (Auth) Descriptor ¶
func (Auth) Descriptor() protoreflect.EnumDescriptor
func (Auth) EnumDescriptor
deprecated
func (Auth) Number ¶
func (x Auth) Number() protoreflect.EnumNumber
func (Auth) Type ¶
func (Auth) Type() protoreflect.EnumType
type Profile ¶
type Profile int32
const (
Profile_MissingProfile Profile = 0
)
func (Profile) Descriptor ¶
func (Profile) Descriptor() protoreflect.EnumDescriptor
func (Profile) EnumDescriptor
deprecated
func (Profile) Number ¶
func (x Profile) Number() protoreflect.EnumNumber
func (Profile) Type ¶
func (Profile) Type() protoreflect.EnumType
type User ¶
type User int32
func (User) Descriptor ¶
func (User) Descriptor() protoreflect.EnumDescriptor
func (User) EnumDescriptor
deprecated
func (User) Number ¶
func (x User) Number() protoreflect.EnumNumber
func (User) Type ¶
func (User) Type() protoreflect.EnumType
Click to show internal directories.
Click to hide internal directories.