errors

package
v0.0.0-...-47bb31f Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 17, 2021 License: MIT Imports: 7 Imported by: 0

Documentation

Index

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 IsAlreadyExistsCode(err error) bool

func IsAlreadyExistsMobile

func IsAlreadyExistsMobile(err error) bool

func IsContentMissing

func IsContentMissing(err error) bool

func IsFormatBirthday

func IsFormatBirthday(err error) bool

func IsLoginFail

func IsLoginFail(err error) bool

func IsMissingAddress

func IsMissingAddress(err error) bool

func IsMissingMobile

func IsMissingMobile(err error) bool

func IsMissingName

func IsMissingName(err error) bool

func IsMissingPassword

func IsMissingPassword(err error) bool

func IsMissingProfile

func IsMissingProfile(err error) bool

func IsMissingSource

func IsMissingSource(err error) bool

func IsRegisterFail

func IsRegisterFail(err error) bool

Types

type Address

type Address int32
const (
	Address_MissingAddress Address = 0
)

func (Address) Descriptor

func (Address) Descriptor() protoreflect.EnumDescriptor

func (Address) Enum

func (x Address) Enum() *Address

func (Address) EnumDescriptor deprecated

func (Address) EnumDescriptor() ([]byte, []int)

Deprecated: Use Address.Descriptor instead.

func (Address) Number

func (x Address) Number() protoreflect.EnumNumber

func (Address) String

func (x Address) String() string

func (Address) Type

func (Address) Type() protoreflect.EnumType

type Auth

type Auth int32
const (
	Auth_MissingMobile       Auth = 0
	Auth_MissingPassword     Auth = 1
	Auth_AlreadyExistsMobile Auth = 2
	Auth_AlreadyExistsCode   Auth = 3
	Auth_MissingSource       Auth = 4
	Auth_RegisterFail        Auth = 5
	Auth_LoginFail           Auth = 6
	Auth_FormatBirthday      Auth = 7
)

func (Auth) Descriptor

func (Auth) Descriptor() protoreflect.EnumDescriptor

func (Auth) Enum

func (x Auth) Enum() *Auth

func (Auth) EnumDescriptor deprecated

func (Auth) EnumDescriptor() ([]byte, []int)

Deprecated: Use Auth.Descriptor instead.

func (Auth) Number

func (x Auth) Number() protoreflect.EnumNumber

func (Auth) String

func (x Auth) String() string

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) Enum

func (x Profile) Enum() *Profile

func (Profile) EnumDescriptor deprecated

func (Profile) EnumDescriptor() ([]byte, []int)

Deprecated: Use Profile.Descriptor instead.

func (Profile) Number

func (x Profile) Number() protoreflect.EnumNumber

func (Profile) String

func (x Profile) String() string

func (Profile) Type

func (Profile) Type() protoreflect.EnumType

type User

type User int32
const (
	User_MissingName    User = 0
	User_ContentMissing User = 1
)

func (User) Descriptor

func (User) Descriptor() protoreflect.EnumDescriptor

func (User) Enum

func (x User) Enum() *User

func (User) EnumDescriptor deprecated

func (User) EnumDescriptor() ([]byte, []int)

Deprecated: Use User.Descriptor instead.

func (User) Number

func (x User) Number() protoreflect.EnumNumber

func (User) String

func (x User) String() string

func (User) Type

func (User) Type() protoreflect.EnumType

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL