v1

package
v1.0.7 Latest Latest
Warning

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

Go to latest
Published: Jun 23, 2026 License: MIT Imports: 23 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Auth_CheckUser_FullMethodName              = "/api.auth.v1.Auth/CheckUser"
	Auth_CheckUserTelephone_FullMethodName     = "/api.auth.v1.Auth/CheckUserTelephone"
	Auth_UserLogin_FullMethodName              = "/api.auth.v1.Auth/UserLogin"
	Auth_UserRegister_FullMethodName           = "/api.auth.v1.Auth/UserRegister"
	Auth_TelephoneUserRegister_FullMethodName  = "/api.auth.v1.Auth/TelephoneUserRegister"
	Auth_TelephoneLogin_FullMethodName         = "/api.auth.v1.Auth/TelephoneLogin"
	Auth_ResetPassword_FullMethodName          = "/api.auth.v1.Auth/ResetPassword"
	Auth_TelephoneResetPassword_FullMethodName = "/api.auth.v1.Auth/TelephoneResetPassword"
)
View Source
const OperationAuthCheckUser = "/api.auth.v1.Auth/CheckUser"
View Source
const OperationAuthCheckUserTelephone = "/api.auth.v1.Auth/CheckUserTelephone"
View Source
const OperationAuthResetPassword = "/api.auth.v1.Auth/ResetPassword"
View Source
const OperationAuthTelephoneLogin = "/api.auth.v1.Auth/TelephoneLogin"
View Source
const OperationAuthTelephoneResetPassword = "/api.auth.v1.Auth/TelephoneResetPassword"
View Source
const OperationAuthTelephoneUserRegister = "/api.auth.v1.Auth/TelephoneUserRegister"
View Source
const OperationAuthUserLogin = "/api.auth.v1.Auth/UserLogin"
View Source
const OperationAuthUserRegister = "/api.auth.v1.Auth/UserRegister"

Variables

View Source
var Auth_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "api.auth.v1.Auth",
	HandlerType: (*AuthServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "CheckUser",
			Handler:    _Auth_CheckUser_Handler,
		},
		{
			MethodName: "CheckUserTelephone",
			Handler:    _Auth_CheckUserTelephone_Handler,
		},
		{
			MethodName: "UserLogin",
			Handler:    _Auth_UserLogin_Handler,
		},
		{
			MethodName: "UserRegister",
			Handler:    _Auth_UserRegister_Handler,
		},
		{
			MethodName: "TelephoneUserRegister",
			Handler:    _Auth_TelephoneUserRegister_Handler,
		},
		{
			MethodName: "TelephoneLogin",
			Handler:    _Auth_TelephoneLogin_Handler,
		},
		{
			MethodName: "ResetPassword",
			Handler:    _Auth_ResetPassword_Handler,
		},
		{
			MethodName: "TelephoneResetPassword",
			Handler:    _Auth_TelephoneResetPassword_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "auth/v1/auth.proto",
}

Auth_ServiceDesc is the grpc.ServiceDesc for Auth service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

View Source
var File_auth_v1_auth_proto protoreflect.FileDescriptor

Functions

func RegisterAuthHTTPServer

func RegisterAuthHTTPServer(s *http.Server, srv AuthHTTPServer)

func RegisterAuthServer

func RegisterAuthServer(s grpc.ServiceRegistrar, srv AuthServer)

Types

type AuthClient

type AuthClient interface {
	// Check if user exists by email
	CheckUser(ctx context.Context, in *CheckUserRequest, opts ...grpc.CallOption) (*CheckUserReply, error)
	// Check if user exists by telephone
	CheckUserTelephone(ctx context.Context, in *CheckUserTelephoneRequest, opts ...grpc.CallOption) (*CheckUserTelephoneReply, error)
	// User login with email and password
	UserLogin(ctx context.Context, in *UserLoginRequest, opts ...grpc.CallOption) (*UserLoginReply, error)
	// User register with email and password
	UserRegister(ctx context.Context, in *UserRegisterRequest, opts ...grpc.CallOption) (*UserRegisterReply, error)
	// User register with telephone and password
	TelephoneUserRegister(ctx context.Context, in *TelephoneUserRegisterRequest, opts ...grpc.CallOption) (*TelephoneUserRegisterReply, error)
	// User login with telephone and password
	TelephoneLogin(ctx context.Context, in *TelephoneLoginRequest, opts ...grpc.CallOption) (*TelephoneLoginReply, error)
	// Reset password with email
	ResetPassword(ctx context.Context, in *ResetPasswordRequest, opts ...grpc.CallOption) (*ResetPasswordReply, error)
	// Reset password with telephone
	TelephoneResetPassword(ctx context.Context, in *TelephoneResetPasswordRequest, opts ...grpc.CallOption) (*TelephoneResetPasswordReply, error)
}

AuthClient is the client API for Auth service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.

Auth service for user authentication

func NewAuthClient

func NewAuthClient(cc grpc.ClientConnInterface) AuthClient

type AuthHTTPClient

type AuthHTTPClient interface {
	// CheckUser Check if user exists by email
	CheckUser(ctx context.Context, req *CheckUserRequest, opts ...http.CallOption) (rsp *CheckUserReply, err error)
	// CheckUserTelephone Check if user exists by telephone
	CheckUserTelephone(ctx context.Context, req *CheckUserTelephoneRequest, opts ...http.CallOption) (rsp *CheckUserTelephoneReply, err error)
	// ResetPassword Reset password with email
	ResetPassword(ctx context.Context, req *ResetPasswordRequest, opts ...http.CallOption) (rsp *ResetPasswordReply, err error)
	// TelephoneLogin User login with telephone and password
	TelephoneLogin(ctx context.Context, req *TelephoneLoginRequest, opts ...http.CallOption) (rsp *TelephoneLoginReply, err error)
	// TelephoneResetPassword Reset password with telephone
	TelephoneResetPassword(ctx context.Context, req *TelephoneResetPasswordRequest, opts ...http.CallOption) (rsp *TelephoneResetPasswordReply, err error)
	// TelephoneUserRegister User register with telephone and password
	TelephoneUserRegister(ctx context.Context, req *TelephoneUserRegisterRequest, opts ...http.CallOption) (rsp *TelephoneUserRegisterReply, err error)
	// UserLogin User login with email and password
	UserLogin(ctx context.Context, req *UserLoginRequest, opts ...http.CallOption) (rsp *UserLoginReply, err error)
	// UserRegister User register with email and password
	UserRegister(ctx context.Context, req *UserRegisterRequest, opts ...http.CallOption) (rsp *UserRegisterReply, err error)
}

func NewAuthHTTPClient

func NewAuthHTTPClient(client *http.Client) AuthHTTPClient

type AuthHTTPClientImpl

type AuthHTTPClientImpl struct {
	// contains filtered or unexported fields
}

func (*AuthHTTPClientImpl) CheckUser

CheckUser Check if user exists by email

func (*AuthHTTPClientImpl) CheckUserTelephone

CheckUserTelephone Check if user exists by telephone

func (*AuthHTTPClientImpl) ResetPassword

ResetPassword Reset password with email

func (*AuthHTTPClientImpl) TelephoneLogin

TelephoneLogin User login with telephone and password

func (*AuthHTTPClientImpl) TelephoneResetPassword

TelephoneResetPassword Reset password with telephone

func (*AuthHTTPClientImpl) TelephoneUserRegister

TelephoneUserRegister User register with telephone and password

func (*AuthHTTPClientImpl) UserLogin

UserLogin User login with email and password

func (*AuthHTTPClientImpl) UserRegister

UserRegister User register with email and password

type AuthHTTPServer

type AuthHTTPServer interface {
	// CheckUser Check if user exists by email
	CheckUser(context.Context, *CheckUserRequest) (*CheckUserReply, error)
	// CheckUserTelephone Check if user exists by telephone
	CheckUserTelephone(context.Context, *CheckUserTelephoneRequest) (*CheckUserTelephoneReply, error)
	// ResetPassword Reset password with email
	ResetPassword(context.Context, *ResetPasswordRequest) (*ResetPasswordReply, error)
	// TelephoneLogin User login with telephone and password
	TelephoneLogin(context.Context, *TelephoneLoginRequest) (*TelephoneLoginReply, error)
	// TelephoneResetPassword Reset password with telephone
	TelephoneResetPassword(context.Context, *TelephoneResetPasswordRequest) (*TelephoneResetPasswordReply, error)
	// TelephoneUserRegister User register with telephone and password
	TelephoneUserRegister(context.Context, *TelephoneUserRegisterRequest) (*TelephoneUserRegisterReply, error)
	// UserLogin User login with email and password
	UserLogin(context.Context, *UserLoginRequest) (*UserLoginReply, error)
	// UserRegister User register with email and password
	UserRegister(context.Context, *UserRegisterRequest) (*UserRegisterReply, error)
}

type AuthServer

type AuthServer interface {
	// Check if user exists by email
	CheckUser(context.Context, *CheckUserRequest) (*CheckUserReply, error)
	// Check if user exists by telephone
	CheckUserTelephone(context.Context, *CheckUserTelephoneRequest) (*CheckUserTelephoneReply, error)
	// User login with email and password
	UserLogin(context.Context, *UserLoginRequest) (*UserLoginReply, error)
	// User register with email and password
	UserRegister(context.Context, *UserRegisterRequest) (*UserRegisterReply, error)
	// User register with telephone and password
	TelephoneUserRegister(context.Context, *TelephoneUserRegisterRequest) (*TelephoneUserRegisterReply, error)
	// User login with telephone and password
	TelephoneLogin(context.Context, *TelephoneLoginRequest) (*TelephoneLoginReply, error)
	// Reset password with email
	ResetPassword(context.Context, *ResetPasswordRequest) (*ResetPasswordReply, error)
	// Reset password with telephone
	TelephoneResetPassword(context.Context, *TelephoneResetPasswordRequest) (*TelephoneResetPasswordReply, error)
	// contains filtered or unexported methods
}

AuthServer is the server API for Auth service. All implementations must embed UnimplementedAuthServer for forward compatibility.

Auth service for user authentication

type CheckUserReply

type CheckUserReply struct {
	Exist bool `protobuf:"varint,1,opt,name=exist,proto3" json:"exist,omitempty"`
	// contains filtered or unexported fields
}

CheckUser Reply

func (*CheckUserReply) Descriptor deprecated

func (*CheckUserReply) Descriptor() ([]byte, []int)

Deprecated: Use CheckUserReply.ProtoReflect.Descriptor instead.

func (*CheckUserReply) GetExist

func (x *CheckUserReply) GetExist() bool

func (*CheckUserReply) ProtoMessage

func (*CheckUserReply) ProtoMessage()

func (*CheckUserReply) ProtoReflect

func (x *CheckUserReply) ProtoReflect() protoreflect.Message

func (*CheckUserReply) Reset

func (x *CheckUserReply) Reset()

func (*CheckUserReply) String

func (x *CheckUserReply) String() string

func (*CheckUserReply) Validate

func (m *CheckUserReply) Validate() error

Validate checks the field values on CheckUserReply with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*CheckUserReply) ValidateAll

func (m *CheckUserReply) ValidateAll() error

ValidateAll checks the field values on CheckUserReply with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in CheckUserReplyMultiError, or nil if none found.

type CheckUserReplyMultiError

type CheckUserReplyMultiError []error

CheckUserReplyMultiError is an error wrapping multiple validation errors returned by CheckUserReply.ValidateAll() if the designated constraints aren't met.

func (CheckUserReplyMultiError) AllErrors

func (m CheckUserReplyMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (CheckUserReplyMultiError) Error

func (m CheckUserReplyMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type CheckUserReplyValidationError

type CheckUserReplyValidationError struct {
	// contains filtered or unexported fields
}

CheckUserReplyValidationError is the validation error returned by CheckUserReply.Validate if the designated constraints aren't met.

func (CheckUserReplyValidationError) Cause

Cause function returns cause value.

func (CheckUserReplyValidationError) Error

Error satisfies the builtin error interface

func (CheckUserReplyValidationError) ErrorName

func (e CheckUserReplyValidationError) ErrorName() string

ErrorName returns error name.

func (CheckUserReplyValidationError) Field

Field function returns field value.

func (CheckUserReplyValidationError) Key

Key function returns key value.

func (CheckUserReplyValidationError) Reason

Reason function returns reason value.

type CheckUserRequest

type CheckUserRequest struct {
	Email string `protobuf:"bytes,1,opt,name=email,proto3" json:"email,omitempty"`
	// contains filtered or unexported fields
}

CheckUser Request

func (*CheckUserRequest) Descriptor deprecated

func (*CheckUserRequest) Descriptor() ([]byte, []int)

Deprecated: Use CheckUserRequest.ProtoReflect.Descriptor instead.

func (*CheckUserRequest) GetEmail

func (x *CheckUserRequest) GetEmail() string

func (*CheckUserRequest) ProtoMessage

func (*CheckUserRequest) ProtoMessage()

func (*CheckUserRequest) ProtoReflect

func (x *CheckUserRequest) ProtoReflect() protoreflect.Message

func (*CheckUserRequest) Reset

func (x *CheckUserRequest) Reset()

func (*CheckUserRequest) String

func (x *CheckUserRequest) String() string

func (*CheckUserRequest) Validate

func (m *CheckUserRequest) Validate() error

Validate checks the field values on CheckUserRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*CheckUserRequest) ValidateAll

func (m *CheckUserRequest) ValidateAll() error

ValidateAll checks the field values on CheckUserRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in CheckUserRequestMultiError, or nil if none found.

type CheckUserRequestMultiError

type CheckUserRequestMultiError []error

CheckUserRequestMultiError is an error wrapping multiple validation errors returned by CheckUserRequest.ValidateAll() if the designated constraints aren't met.

func (CheckUserRequestMultiError) AllErrors

func (m CheckUserRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (CheckUserRequestMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type CheckUserRequestValidationError

type CheckUserRequestValidationError struct {
	// contains filtered or unexported fields
}

CheckUserRequestValidationError is the validation error returned by CheckUserRequest.Validate if the designated constraints aren't met.

func (CheckUserRequestValidationError) Cause

Cause function returns cause value.

func (CheckUserRequestValidationError) Error

Error satisfies the builtin error interface

func (CheckUserRequestValidationError) ErrorName

ErrorName returns error name.

func (CheckUserRequestValidationError) Field

Field function returns field value.

func (CheckUserRequestValidationError) Key

Key function returns key value.

func (CheckUserRequestValidationError) Reason

Reason function returns reason value.

type CheckUserTelephoneReply

type CheckUserTelephoneReply struct {
	Exist bool `protobuf:"varint,1,opt,name=exist,proto3" json:"exist,omitempty"`
	// contains filtered or unexported fields
}

CheckUserTelephone Reply

func (*CheckUserTelephoneReply) Descriptor deprecated

func (*CheckUserTelephoneReply) Descriptor() ([]byte, []int)

Deprecated: Use CheckUserTelephoneReply.ProtoReflect.Descriptor instead.

func (*CheckUserTelephoneReply) GetExist

func (x *CheckUserTelephoneReply) GetExist() bool

func (*CheckUserTelephoneReply) ProtoMessage

func (*CheckUserTelephoneReply) ProtoMessage()

func (*CheckUserTelephoneReply) ProtoReflect

func (x *CheckUserTelephoneReply) ProtoReflect() protoreflect.Message

func (*CheckUserTelephoneReply) Reset

func (x *CheckUserTelephoneReply) Reset()

func (*CheckUserTelephoneReply) String

func (x *CheckUserTelephoneReply) String() string

func (*CheckUserTelephoneReply) Validate

func (m *CheckUserTelephoneReply) Validate() error

Validate checks the field values on CheckUserTelephoneReply with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*CheckUserTelephoneReply) ValidateAll

func (m *CheckUserTelephoneReply) ValidateAll() error

ValidateAll checks the field values on CheckUserTelephoneReply with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in CheckUserTelephoneReplyMultiError, or nil if none found.

type CheckUserTelephoneReplyMultiError

type CheckUserTelephoneReplyMultiError []error

CheckUserTelephoneReplyMultiError is an error wrapping multiple validation errors returned by CheckUserTelephoneReply.ValidateAll() if the designated constraints aren't met.

func (CheckUserTelephoneReplyMultiError) AllErrors

func (m CheckUserTelephoneReplyMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (CheckUserTelephoneReplyMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type CheckUserTelephoneReplyValidationError

type CheckUserTelephoneReplyValidationError struct {
	// contains filtered or unexported fields
}

CheckUserTelephoneReplyValidationError is the validation error returned by CheckUserTelephoneReply.Validate if the designated constraints aren't met.

func (CheckUserTelephoneReplyValidationError) Cause

Cause function returns cause value.

func (CheckUserTelephoneReplyValidationError) Error

Error satisfies the builtin error interface

func (CheckUserTelephoneReplyValidationError) ErrorName

ErrorName returns error name.

func (CheckUserTelephoneReplyValidationError) Field

Field function returns field value.

func (CheckUserTelephoneReplyValidationError) Key

Key function returns key value.

func (CheckUserTelephoneReplyValidationError) Reason

Reason function returns reason value.

type CheckUserTelephoneRequest

type CheckUserTelephoneRequest struct {
	Telephone string `protobuf:"bytes,1,opt,name=telephone,proto3" json:"telephone,omitempty"`
	// contains filtered or unexported fields
}

CheckUserTelephone Request

func (*CheckUserTelephoneRequest) Descriptor deprecated

func (*CheckUserTelephoneRequest) Descriptor() ([]byte, []int)

Deprecated: Use CheckUserTelephoneRequest.ProtoReflect.Descriptor instead.

func (*CheckUserTelephoneRequest) GetTelephone

func (x *CheckUserTelephoneRequest) GetTelephone() string

func (*CheckUserTelephoneRequest) ProtoMessage

func (*CheckUserTelephoneRequest) ProtoMessage()

func (*CheckUserTelephoneRequest) ProtoReflect

func (*CheckUserTelephoneRequest) Reset

func (x *CheckUserTelephoneRequest) Reset()

func (*CheckUserTelephoneRequest) String

func (x *CheckUserTelephoneRequest) String() string

func (*CheckUserTelephoneRequest) Validate

func (m *CheckUserTelephoneRequest) Validate() error

Validate checks the field values on CheckUserTelephoneRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*CheckUserTelephoneRequest) ValidateAll

func (m *CheckUserTelephoneRequest) ValidateAll() error

ValidateAll checks the field values on CheckUserTelephoneRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in CheckUserTelephoneRequestMultiError, or nil if none found.

type CheckUserTelephoneRequestMultiError

type CheckUserTelephoneRequestMultiError []error

CheckUserTelephoneRequestMultiError is an error wrapping multiple validation errors returned by CheckUserTelephoneRequest.ValidateAll() if the designated constraints aren't met.

func (CheckUserTelephoneRequestMultiError) AllErrors

AllErrors returns a list of validation violation errors.

func (CheckUserTelephoneRequestMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type CheckUserTelephoneRequestValidationError

type CheckUserTelephoneRequestValidationError struct {
	// contains filtered or unexported fields
}

CheckUserTelephoneRequestValidationError is the validation error returned by CheckUserTelephoneRequest.Validate if the designated constraints aren't met.

func (CheckUserTelephoneRequestValidationError) Cause

Cause function returns cause value.

func (CheckUserTelephoneRequestValidationError) Error

Error satisfies the builtin error interface

func (CheckUserTelephoneRequestValidationError) ErrorName

ErrorName returns error name.

func (CheckUserTelephoneRequestValidationError) Field

Field function returns field value.

func (CheckUserTelephoneRequestValidationError) Key

Key function returns key value.

func (CheckUserTelephoneRequestValidationError) Reason

Reason function returns reason value.

type ResetPasswordReply

type ResetPasswordReply struct {
	UserId string `protobuf:"bytes,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
	Token  string `protobuf:"bytes,2,opt,name=token,proto3" json:"token,omitempty"`
	Email  string `protobuf:"bytes,3,opt,name=email,proto3" json:"email,omitempty"`
	// contains filtered or unexported fields
}

ResetPassword Reply

func (*ResetPasswordReply) Descriptor deprecated

func (*ResetPasswordReply) Descriptor() ([]byte, []int)

Deprecated: Use ResetPasswordReply.ProtoReflect.Descriptor instead.

func (*ResetPasswordReply) GetEmail

func (x *ResetPasswordReply) GetEmail() string

func (*ResetPasswordReply) GetToken

func (x *ResetPasswordReply) GetToken() string

func (*ResetPasswordReply) GetUserId

func (x *ResetPasswordReply) GetUserId() string

func (*ResetPasswordReply) ProtoMessage

func (*ResetPasswordReply) ProtoMessage()

func (*ResetPasswordReply) ProtoReflect

func (x *ResetPasswordReply) ProtoReflect() protoreflect.Message

func (*ResetPasswordReply) Reset

func (x *ResetPasswordReply) Reset()

func (*ResetPasswordReply) String

func (x *ResetPasswordReply) String() string

func (*ResetPasswordReply) Validate

func (m *ResetPasswordReply) Validate() error

Validate checks the field values on ResetPasswordReply with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*ResetPasswordReply) ValidateAll

func (m *ResetPasswordReply) ValidateAll() error

ValidateAll checks the field values on ResetPasswordReply with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in ResetPasswordReplyMultiError, or nil if none found.

type ResetPasswordReplyMultiError

type ResetPasswordReplyMultiError []error

ResetPasswordReplyMultiError is an error wrapping multiple validation errors returned by ResetPasswordReply.ValidateAll() if the designated constraints aren't met.

func (ResetPasswordReplyMultiError) AllErrors

func (m ResetPasswordReplyMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (ResetPasswordReplyMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type ResetPasswordReplyValidationError

type ResetPasswordReplyValidationError struct {
	// contains filtered or unexported fields
}

ResetPasswordReplyValidationError is the validation error returned by ResetPasswordReply.Validate if the designated constraints aren't met.

func (ResetPasswordReplyValidationError) Cause

Cause function returns cause value.

func (ResetPasswordReplyValidationError) Error

Error satisfies the builtin error interface

func (ResetPasswordReplyValidationError) ErrorName

ErrorName returns error name.

func (ResetPasswordReplyValidationError) Field

Field function returns field value.

func (ResetPasswordReplyValidationError) Key

Key function returns key value.

func (ResetPasswordReplyValidationError) Reason

Reason function returns reason value.

type ResetPasswordRequest

type ResetPasswordRequest struct {
	Email            string `protobuf:"bytes,2,opt,name=email,proto3" json:"email,omitempty"`
	VerificationCode string `protobuf:"bytes,3,opt,name=verification_code,json=verificationCode,proto3" json:"verification_code,omitempty"`
	NewPassword      string `protobuf:"bytes,4,opt,name=new_password,json=newPassword,proto3" json:"new_password,omitempty"`
	// contains filtered or unexported fields
}

ResetPassword Request

func (*ResetPasswordRequest) Descriptor deprecated

func (*ResetPasswordRequest) Descriptor() ([]byte, []int)

Deprecated: Use ResetPasswordRequest.ProtoReflect.Descriptor instead.

func (*ResetPasswordRequest) GetEmail

func (x *ResetPasswordRequest) GetEmail() string

func (*ResetPasswordRequest) GetNewPassword

func (x *ResetPasswordRequest) GetNewPassword() string

func (*ResetPasswordRequest) GetVerificationCode

func (x *ResetPasswordRequest) GetVerificationCode() string

func (*ResetPasswordRequest) ProtoMessage

func (*ResetPasswordRequest) ProtoMessage()

func (*ResetPasswordRequest) ProtoReflect

func (x *ResetPasswordRequest) ProtoReflect() protoreflect.Message

func (*ResetPasswordRequest) Reset

func (x *ResetPasswordRequest) Reset()

func (*ResetPasswordRequest) String

func (x *ResetPasswordRequest) String() string

func (*ResetPasswordRequest) Validate

func (m *ResetPasswordRequest) Validate() error

Validate checks the field values on ResetPasswordRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*ResetPasswordRequest) ValidateAll

func (m *ResetPasswordRequest) ValidateAll() error

ValidateAll checks the field values on ResetPasswordRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in ResetPasswordRequestMultiError, or nil if none found.

type ResetPasswordRequestMultiError

type ResetPasswordRequestMultiError []error

ResetPasswordRequestMultiError is an error wrapping multiple validation errors returned by ResetPasswordRequest.ValidateAll() if the designated constraints aren't met.

func (ResetPasswordRequestMultiError) AllErrors

func (m ResetPasswordRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (ResetPasswordRequestMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type ResetPasswordRequestValidationError

type ResetPasswordRequestValidationError struct {
	// contains filtered or unexported fields
}

ResetPasswordRequestValidationError is the validation error returned by ResetPasswordRequest.Validate if the designated constraints aren't met.

func (ResetPasswordRequestValidationError) Cause

Cause function returns cause value.

func (ResetPasswordRequestValidationError) Error

Error satisfies the builtin error interface

func (ResetPasswordRequestValidationError) ErrorName

ErrorName returns error name.

func (ResetPasswordRequestValidationError) Field

Field function returns field value.

func (ResetPasswordRequestValidationError) Key

Key function returns key value.

func (ResetPasswordRequestValidationError) Reason

Reason function returns reason value.

type TelephoneLoginReply

type TelephoneLoginReply struct {
	UserId    string `protobuf:"bytes,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
	Token     string `protobuf:"bytes,2,opt,name=token,proto3" json:"token,omitempty"`
	Telephone string `protobuf:"bytes,3,opt,name=telephone,proto3" json:"telephone,omitempty"`
	// contains filtered or unexported fields
}

TelephoneLogin Reply

func (*TelephoneLoginReply) Descriptor deprecated

func (*TelephoneLoginReply) Descriptor() ([]byte, []int)

Deprecated: Use TelephoneLoginReply.ProtoReflect.Descriptor instead.

func (*TelephoneLoginReply) GetTelephone

func (x *TelephoneLoginReply) GetTelephone() string

func (*TelephoneLoginReply) GetToken

func (x *TelephoneLoginReply) GetToken() string

func (*TelephoneLoginReply) GetUserId

func (x *TelephoneLoginReply) GetUserId() string

func (*TelephoneLoginReply) ProtoMessage

func (*TelephoneLoginReply) ProtoMessage()

func (*TelephoneLoginReply) ProtoReflect

func (x *TelephoneLoginReply) ProtoReflect() protoreflect.Message

func (*TelephoneLoginReply) Reset

func (x *TelephoneLoginReply) Reset()

func (*TelephoneLoginReply) String

func (x *TelephoneLoginReply) String() string

func (*TelephoneLoginReply) Validate

func (m *TelephoneLoginReply) Validate() error

Validate checks the field values on TelephoneLoginReply with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*TelephoneLoginReply) ValidateAll

func (m *TelephoneLoginReply) ValidateAll() error

ValidateAll checks the field values on TelephoneLoginReply with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in TelephoneLoginReplyMultiError, or nil if none found.

type TelephoneLoginReplyMultiError

type TelephoneLoginReplyMultiError []error

TelephoneLoginReplyMultiError is an error wrapping multiple validation errors returned by TelephoneLoginReply.ValidateAll() if the designated constraints aren't met.

func (TelephoneLoginReplyMultiError) AllErrors

func (m TelephoneLoginReplyMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (TelephoneLoginReplyMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type TelephoneLoginReplyValidationError

type TelephoneLoginReplyValidationError struct {
	// contains filtered or unexported fields
}

TelephoneLoginReplyValidationError is the validation error returned by TelephoneLoginReply.Validate if the designated constraints aren't met.

func (TelephoneLoginReplyValidationError) Cause

Cause function returns cause value.

func (TelephoneLoginReplyValidationError) Error

Error satisfies the builtin error interface

func (TelephoneLoginReplyValidationError) ErrorName

ErrorName returns error name.

func (TelephoneLoginReplyValidationError) Field

Field function returns field value.

func (TelephoneLoginReplyValidationError) Key

Key function returns key value.

func (TelephoneLoginReplyValidationError) Reason

Reason function returns reason value.

type TelephoneLoginRequest

type TelephoneLoginRequest struct {
	Telephone string `protobuf:"bytes,2,opt,name=telephone,proto3" json:"telephone,omitempty"`
	Password  string `protobuf:"bytes,3,opt,name=password,proto3" json:"password,omitempty"`
	// contains filtered or unexported fields
}

TelephoneLogin Request

func (*TelephoneLoginRequest) Descriptor deprecated

func (*TelephoneLoginRequest) Descriptor() ([]byte, []int)

Deprecated: Use TelephoneLoginRequest.ProtoReflect.Descriptor instead.

func (*TelephoneLoginRequest) GetPassword

func (x *TelephoneLoginRequest) GetPassword() string

func (*TelephoneLoginRequest) GetTelephone

func (x *TelephoneLoginRequest) GetTelephone() string

func (*TelephoneLoginRequest) ProtoMessage

func (*TelephoneLoginRequest) ProtoMessage()

func (*TelephoneLoginRequest) ProtoReflect

func (x *TelephoneLoginRequest) ProtoReflect() protoreflect.Message

func (*TelephoneLoginRequest) Reset

func (x *TelephoneLoginRequest) Reset()

func (*TelephoneLoginRequest) String

func (x *TelephoneLoginRequest) String() string

func (*TelephoneLoginRequest) Validate

func (m *TelephoneLoginRequest) Validate() error

Validate checks the field values on TelephoneLoginRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*TelephoneLoginRequest) ValidateAll

func (m *TelephoneLoginRequest) ValidateAll() error

ValidateAll checks the field values on TelephoneLoginRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in TelephoneLoginRequestMultiError, or nil if none found.

type TelephoneLoginRequestMultiError

type TelephoneLoginRequestMultiError []error

TelephoneLoginRequestMultiError is an error wrapping multiple validation errors returned by TelephoneLoginRequest.ValidateAll() if the designated constraints aren't met.

func (TelephoneLoginRequestMultiError) AllErrors

func (m TelephoneLoginRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (TelephoneLoginRequestMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type TelephoneLoginRequestValidationError

type TelephoneLoginRequestValidationError struct {
	// contains filtered or unexported fields
}

TelephoneLoginRequestValidationError is the validation error returned by TelephoneLoginRequest.Validate if the designated constraints aren't met.

func (TelephoneLoginRequestValidationError) Cause

Cause function returns cause value.

func (TelephoneLoginRequestValidationError) Error

Error satisfies the builtin error interface

func (TelephoneLoginRequestValidationError) ErrorName

ErrorName returns error name.

func (TelephoneLoginRequestValidationError) Field

Field function returns field value.

func (TelephoneLoginRequestValidationError) Key

Key function returns key value.

func (TelephoneLoginRequestValidationError) Reason

Reason function returns reason value.

type TelephoneResetPasswordReply

type TelephoneResetPasswordReply struct {
	UserId    string `protobuf:"bytes,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
	Token     string `protobuf:"bytes,2,opt,name=token,proto3" json:"token,omitempty"`
	Telephone string `protobuf:"bytes,3,opt,name=telephone,proto3" json:"telephone,omitempty"`
	// contains filtered or unexported fields
}

TelephoneResetPassword Reply

func (*TelephoneResetPasswordReply) Descriptor deprecated

func (*TelephoneResetPasswordReply) Descriptor() ([]byte, []int)

Deprecated: Use TelephoneResetPasswordReply.ProtoReflect.Descriptor instead.

func (*TelephoneResetPasswordReply) GetTelephone

func (x *TelephoneResetPasswordReply) GetTelephone() string

func (*TelephoneResetPasswordReply) GetToken

func (x *TelephoneResetPasswordReply) GetToken() string

func (*TelephoneResetPasswordReply) GetUserId

func (x *TelephoneResetPasswordReply) GetUserId() string

func (*TelephoneResetPasswordReply) ProtoMessage

func (*TelephoneResetPasswordReply) ProtoMessage()

func (*TelephoneResetPasswordReply) ProtoReflect

func (*TelephoneResetPasswordReply) Reset

func (x *TelephoneResetPasswordReply) Reset()

func (*TelephoneResetPasswordReply) String

func (x *TelephoneResetPasswordReply) String() string

func (*TelephoneResetPasswordReply) Validate

func (m *TelephoneResetPasswordReply) Validate() error

Validate checks the field values on TelephoneResetPasswordReply with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*TelephoneResetPasswordReply) ValidateAll

func (m *TelephoneResetPasswordReply) ValidateAll() error

ValidateAll checks the field values on TelephoneResetPasswordReply with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in TelephoneResetPasswordReplyMultiError, or nil if none found.

type TelephoneResetPasswordReplyMultiError

type TelephoneResetPasswordReplyMultiError []error

TelephoneResetPasswordReplyMultiError is an error wrapping multiple validation errors returned by TelephoneResetPasswordReply.ValidateAll() if the designated constraints aren't met.

func (TelephoneResetPasswordReplyMultiError) AllErrors

AllErrors returns a list of validation violation errors.

func (TelephoneResetPasswordReplyMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type TelephoneResetPasswordReplyValidationError

type TelephoneResetPasswordReplyValidationError struct {
	// contains filtered or unexported fields
}

TelephoneResetPasswordReplyValidationError is the validation error returned by TelephoneResetPasswordReply.Validate if the designated constraints aren't met.

func (TelephoneResetPasswordReplyValidationError) Cause

Cause function returns cause value.

func (TelephoneResetPasswordReplyValidationError) Error

Error satisfies the builtin error interface

func (TelephoneResetPasswordReplyValidationError) ErrorName

ErrorName returns error name.

func (TelephoneResetPasswordReplyValidationError) Field

Field function returns field value.

func (TelephoneResetPasswordReplyValidationError) Key

Key function returns key value.

func (TelephoneResetPasswordReplyValidationError) Reason

Reason function returns reason value.

type TelephoneResetPasswordRequest

type TelephoneResetPasswordRequest struct {
	Telephone        string `protobuf:"bytes,2,opt,name=telephone,proto3" json:"telephone,omitempty"`
	VerificationCode string `protobuf:"bytes,3,opt,name=verification_code,json=verificationCode,proto3" json:"verification_code,omitempty"`
	NewPassword      string `protobuf:"bytes,4,opt,name=new_password,json=newPassword,proto3" json:"new_password,omitempty"`
	// contains filtered or unexported fields
}

TelephoneResetPassword Request

func (*TelephoneResetPasswordRequest) Descriptor deprecated

func (*TelephoneResetPasswordRequest) Descriptor() ([]byte, []int)

Deprecated: Use TelephoneResetPasswordRequest.ProtoReflect.Descriptor instead.

func (*TelephoneResetPasswordRequest) GetNewPassword

func (x *TelephoneResetPasswordRequest) GetNewPassword() string

func (*TelephoneResetPasswordRequest) GetTelephone

func (x *TelephoneResetPasswordRequest) GetTelephone() string

func (*TelephoneResetPasswordRequest) GetVerificationCode

func (x *TelephoneResetPasswordRequest) GetVerificationCode() string

func (*TelephoneResetPasswordRequest) ProtoMessage

func (*TelephoneResetPasswordRequest) ProtoMessage()

func (*TelephoneResetPasswordRequest) ProtoReflect

func (*TelephoneResetPasswordRequest) Reset

func (x *TelephoneResetPasswordRequest) Reset()

func (*TelephoneResetPasswordRequest) String

func (*TelephoneResetPasswordRequest) Validate

func (m *TelephoneResetPasswordRequest) Validate() error

Validate checks the field values on TelephoneResetPasswordRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*TelephoneResetPasswordRequest) ValidateAll

func (m *TelephoneResetPasswordRequest) ValidateAll() error

ValidateAll checks the field values on TelephoneResetPasswordRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in TelephoneResetPasswordRequestMultiError, or nil if none found.

type TelephoneResetPasswordRequestMultiError

type TelephoneResetPasswordRequestMultiError []error

TelephoneResetPasswordRequestMultiError is an error wrapping multiple validation errors returned by TelephoneResetPasswordRequest.ValidateAll() if the designated constraints aren't met.

func (TelephoneResetPasswordRequestMultiError) AllErrors

AllErrors returns a list of validation violation errors.

func (TelephoneResetPasswordRequestMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type TelephoneResetPasswordRequestValidationError

type TelephoneResetPasswordRequestValidationError struct {
	// contains filtered or unexported fields
}

TelephoneResetPasswordRequestValidationError is the validation error returned by TelephoneResetPasswordRequest.Validate if the designated constraints aren't met.

func (TelephoneResetPasswordRequestValidationError) Cause

Cause function returns cause value.

func (TelephoneResetPasswordRequestValidationError) Error

Error satisfies the builtin error interface

func (TelephoneResetPasswordRequestValidationError) ErrorName

ErrorName returns error name.

func (TelephoneResetPasswordRequestValidationError) Field

Field function returns field value.

func (TelephoneResetPasswordRequestValidationError) Key

Key function returns key value.

func (TelephoneResetPasswordRequestValidationError) Reason

Reason function returns reason value.

type TelephoneUserRegisterReply

type TelephoneUserRegisterReply struct {
	UserId    string `protobuf:"bytes,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
	Token     string `protobuf:"bytes,2,opt,name=token,proto3" json:"token,omitempty"`
	Telephone string `protobuf:"bytes,3,opt,name=telephone,proto3" json:"telephone,omitempty"`
	// contains filtered or unexported fields
}

TelephoneUserRegister Reply

func (*TelephoneUserRegisterReply) Descriptor deprecated

func (*TelephoneUserRegisterReply) Descriptor() ([]byte, []int)

Deprecated: Use TelephoneUserRegisterReply.ProtoReflect.Descriptor instead.

func (*TelephoneUserRegisterReply) GetTelephone

func (x *TelephoneUserRegisterReply) GetTelephone() string

func (*TelephoneUserRegisterReply) GetToken

func (x *TelephoneUserRegisterReply) GetToken() string

func (*TelephoneUserRegisterReply) GetUserId

func (x *TelephoneUserRegisterReply) GetUserId() string

func (*TelephoneUserRegisterReply) ProtoMessage

func (*TelephoneUserRegisterReply) ProtoMessage()

func (*TelephoneUserRegisterReply) ProtoReflect

func (*TelephoneUserRegisterReply) Reset

func (x *TelephoneUserRegisterReply) Reset()

func (*TelephoneUserRegisterReply) String

func (x *TelephoneUserRegisterReply) String() string

func (*TelephoneUserRegisterReply) Validate

func (m *TelephoneUserRegisterReply) Validate() error

Validate checks the field values on TelephoneUserRegisterReply with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*TelephoneUserRegisterReply) ValidateAll

func (m *TelephoneUserRegisterReply) ValidateAll() error

ValidateAll checks the field values on TelephoneUserRegisterReply with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in TelephoneUserRegisterReplyMultiError, or nil if none found.

type TelephoneUserRegisterReplyMultiError

type TelephoneUserRegisterReplyMultiError []error

TelephoneUserRegisterReplyMultiError is an error wrapping multiple validation errors returned by TelephoneUserRegisterReply.ValidateAll() if the designated constraints aren't met.

func (TelephoneUserRegisterReplyMultiError) AllErrors

AllErrors returns a list of validation violation errors.

func (TelephoneUserRegisterReplyMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type TelephoneUserRegisterReplyValidationError

type TelephoneUserRegisterReplyValidationError struct {
	// contains filtered or unexported fields
}

TelephoneUserRegisterReplyValidationError is the validation error returned by TelephoneUserRegisterReply.Validate if the designated constraints aren't met.

func (TelephoneUserRegisterReplyValidationError) Cause

Cause function returns cause value.

func (TelephoneUserRegisterReplyValidationError) Error

Error satisfies the builtin error interface

func (TelephoneUserRegisterReplyValidationError) ErrorName

ErrorName returns error name.

func (TelephoneUserRegisterReplyValidationError) Field

Field function returns field value.

func (TelephoneUserRegisterReplyValidationError) Key

Key function returns key value.

func (TelephoneUserRegisterReplyValidationError) Reason

Reason function returns reason value.

type TelephoneUserRegisterRequest

type TelephoneUserRegisterRequest struct {
	Telephone string `protobuf:"bytes,2,opt,name=telephone,proto3" json:"telephone,omitempty"`
	Password  string `protobuf:"bytes,3,opt,name=password,proto3" json:"password,omitempty"`
	// contains filtered or unexported fields
}

TelephoneUserRegister Request

func (*TelephoneUserRegisterRequest) Descriptor deprecated

func (*TelephoneUserRegisterRequest) Descriptor() ([]byte, []int)

Deprecated: Use TelephoneUserRegisterRequest.ProtoReflect.Descriptor instead.

func (*TelephoneUserRegisterRequest) GetPassword

func (x *TelephoneUserRegisterRequest) GetPassword() string

func (*TelephoneUserRegisterRequest) GetTelephone

func (x *TelephoneUserRegisterRequest) GetTelephone() string

func (*TelephoneUserRegisterRequest) ProtoMessage

func (*TelephoneUserRegisterRequest) ProtoMessage()

func (*TelephoneUserRegisterRequest) ProtoReflect

func (*TelephoneUserRegisterRequest) Reset

func (x *TelephoneUserRegisterRequest) Reset()

func (*TelephoneUserRegisterRequest) String

func (*TelephoneUserRegisterRequest) Validate

func (m *TelephoneUserRegisterRequest) Validate() error

Validate checks the field values on TelephoneUserRegisterRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*TelephoneUserRegisterRequest) ValidateAll

func (m *TelephoneUserRegisterRequest) ValidateAll() error

ValidateAll checks the field values on TelephoneUserRegisterRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in TelephoneUserRegisterRequestMultiError, or nil if none found.

type TelephoneUserRegisterRequestMultiError

type TelephoneUserRegisterRequestMultiError []error

TelephoneUserRegisterRequestMultiError is an error wrapping multiple validation errors returned by TelephoneUserRegisterRequest.ValidateAll() if the designated constraints aren't met.

func (TelephoneUserRegisterRequestMultiError) AllErrors

AllErrors returns a list of validation violation errors.

func (TelephoneUserRegisterRequestMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type TelephoneUserRegisterRequestValidationError

type TelephoneUserRegisterRequestValidationError struct {
	// contains filtered or unexported fields
}

TelephoneUserRegisterRequestValidationError is the validation error returned by TelephoneUserRegisterRequest.Validate if the designated constraints aren't met.

func (TelephoneUserRegisterRequestValidationError) Cause

Cause function returns cause value.

func (TelephoneUserRegisterRequestValidationError) Error

Error satisfies the builtin error interface

func (TelephoneUserRegisterRequestValidationError) ErrorName

ErrorName returns error name.

func (TelephoneUserRegisterRequestValidationError) Field

Field function returns field value.

func (TelephoneUserRegisterRequestValidationError) Key

Key function returns key value.

func (TelephoneUserRegisterRequestValidationError) Reason

Reason function returns reason value.

type UnimplementedAuthServer

type UnimplementedAuthServer struct{}

UnimplementedAuthServer must be embedded to have forward compatible implementations.

NOTE: this should be embedded by value instead of pointer to avoid a nil pointer dereference when methods are called.

func (UnimplementedAuthServer) CheckUser

func (UnimplementedAuthServer) ResetPassword

func (UnimplementedAuthServer) TelephoneLogin

func (UnimplementedAuthServer) UserLogin

func (UnimplementedAuthServer) UserRegister

type UnsafeAuthServer

type UnsafeAuthServer interface {
	// contains filtered or unexported methods
}

UnsafeAuthServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to AuthServer will result in compilation errors.

type UserLoginReply

type UserLoginReply struct {
	UserId string `protobuf:"bytes,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
	Token  string `protobuf:"bytes,2,opt,name=token,proto3" json:"token,omitempty"`
	Email  string `protobuf:"bytes,3,opt,name=email,proto3" json:"email,omitempty"`
	// contains filtered or unexported fields
}

UserLogin Reply

func (*UserLoginReply) Descriptor deprecated

func (*UserLoginReply) Descriptor() ([]byte, []int)

Deprecated: Use UserLoginReply.ProtoReflect.Descriptor instead.

func (*UserLoginReply) GetEmail

func (x *UserLoginReply) GetEmail() string

func (*UserLoginReply) GetToken

func (x *UserLoginReply) GetToken() string

func (*UserLoginReply) GetUserId

func (x *UserLoginReply) GetUserId() string

func (*UserLoginReply) ProtoMessage

func (*UserLoginReply) ProtoMessage()

func (*UserLoginReply) ProtoReflect

func (x *UserLoginReply) ProtoReflect() protoreflect.Message

func (*UserLoginReply) Reset

func (x *UserLoginReply) Reset()

func (*UserLoginReply) String

func (x *UserLoginReply) String() string

func (*UserLoginReply) Validate

func (m *UserLoginReply) Validate() error

Validate checks the field values on UserLoginReply with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*UserLoginReply) ValidateAll

func (m *UserLoginReply) ValidateAll() error

ValidateAll checks the field values on UserLoginReply with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in UserLoginReplyMultiError, or nil if none found.

type UserLoginReplyMultiError

type UserLoginReplyMultiError []error

UserLoginReplyMultiError is an error wrapping multiple validation errors returned by UserLoginReply.ValidateAll() if the designated constraints aren't met.

func (UserLoginReplyMultiError) AllErrors

func (m UserLoginReplyMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (UserLoginReplyMultiError) Error

func (m UserLoginReplyMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type UserLoginReplyValidationError

type UserLoginReplyValidationError struct {
	// contains filtered or unexported fields
}

UserLoginReplyValidationError is the validation error returned by UserLoginReply.Validate if the designated constraints aren't met.

func (UserLoginReplyValidationError) Cause

Cause function returns cause value.

func (UserLoginReplyValidationError) Error

Error satisfies the builtin error interface

func (UserLoginReplyValidationError) ErrorName

func (e UserLoginReplyValidationError) ErrorName() string

ErrorName returns error name.

func (UserLoginReplyValidationError) Field

Field function returns field value.

func (UserLoginReplyValidationError) Key

Key function returns key value.

func (UserLoginReplyValidationError) Reason

Reason function returns reason value.

type UserLoginRequest

type UserLoginRequest struct {
	Email    string `protobuf:"bytes,1,opt,name=email,proto3" json:"email,omitempty"`
	Password string `protobuf:"bytes,2,opt,name=password,proto3" json:"password,omitempty"`
	// contains filtered or unexported fields
}

UserLogin Request

func (*UserLoginRequest) Descriptor deprecated

func (*UserLoginRequest) Descriptor() ([]byte, []int)

Deprecated: Use UserLoginRequest.ProtoReflect.Descriptor instead.

func (*UserLoginRequest) GetEmail

func (x *UserLoginRequest) GetEmail() string

func (*UserLoginRequest) GetPassword

func (x *UserLoginRequest) GetPassword() string

func (*UserLoginRequest) ProtoMessage

func (*UserLoginRequest) ProtoMessage()

func (*UserLoginRequest) ProtoReflect

func (x *UserLoginRequest) ProtoReflect() protoreflect.Message

func (*UserLoginRequest) Reset

func (x *UserLoginRequest) Reset()

func (*UserLoginRequest) String

func (x *UserLoginRequest) String() string

func (*UserLoginRequest) Validate

func (m *UserLoginRequest) Validate() error

Validate checks the field values on UserLoginRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*UserLoginRequest) ValidateAll

func (m *UserLoginRequest) ValidateAll() error

ValidateAll checks the field values on UserLoginRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in UserLoginRequestMultiError, or nil if none found.

type UserLoginRequestMultiError

type UserLoginRequestMultiError []error

UserLoginRequestMultiError is an error wrapping multiple validation errors returned by UserLoginRequest.ValidateAll() if the designated constraints aren't met.

func (UserLoginRequestMultiError) AllErrors

func (m UserLoginRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (UserLoginRequestMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type UserLoginRequestValidationError

type UserLoginRequestValidationError struct {
	// contains filtered or unexported fields
}

UserLoginRequestValidationError is the validation error returned by UserLoginRequest.Validate if the designated constraints aren't met.

func (UserLoginRequestValidationError) Cause

Cause function returns cause value.

func (UserLoginRequestValidationError) Error

Error satisfies the builtin error interface

func (UserLoginRequestValidationError) ErrorName

ErrorName returns error name.

func (UserLoginRequestValidationError) Field

Field function returns field value.

func (UserLoginRequestValidationError) Key

Key function returns key value.

func (UserLoginRequestValidationError) Reason

Reason function returns reason value.

type UserRegisterReply

type UserRegisterReply struct {
	UserId string `protobuf:"bytes,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
	Token  string `protobuf:"bytes,2,opt,name=token,proto3" json:"token,omitempty"`
	Email  string `protobuf:"bytes,3,opt,name=email,proto3" json:"email,omitempty"`
	// contains filtered or unexported fields
}

UserRegister Reply

func (*UserRegisterReply) Descriptor deprecated

func (*UserRegisterReply) Descriptor() ([]byte, []int)

Deprecated: Use UserRegisterReply.ProtoReflect.Descriptor instead.

func (*UserRegisterReply) GetEmail

func (x *UserRegisterReply) GetEmail() string

func (*UserRegisterReply) GetToken

func (x *UserRegisterReply) GetToken() string

func (*UserRegisterReply) GetUserId

func (x *UserRegisterReply) GetUserId() string

func (*UserRegisterReply) ProtoMessage

func (*UserRegisterReply) ProtoMessage()

func (*UserRegisterReply) ProtoReflect

func (x *UserRegisterReply) ProtoReflect() protoreflect.Message

func (*UserRegisterReply) Reset

func (x *UserRegisterReply) Reset()

func (*UserRegisterReply) String

func (x *UserRegisterReply) String() string

func (*UserRegisterReply) Validate

func (m *UserRegisterReply) Validate() error

Validate checks the field values on UserRegisterReply with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*UserRegisterReply) ValidateAll

func (m *UserRegisterReply) ValidateAll() error

ValidateAll checks the field values on UserRegisterReply with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in UserRegisterReplyMultiError, or nil if none found.

type UserRegisterReplyMultiError

type UserRegisterReplyMultiError []error

UserRegisterReplyMultiError is an error wrapping multiple validation errors returned by UserRegisterReply.ValidateAll() if the designated constraints aren't met.

func (UserRegisterReplyMultiError) AllErrors

func (m UserRegisterReplyMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (UserRegisterReplyMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type UserRegisterReplyValidationError

type UserRegisterReplyValidationError struct {
	// contains filtered or unexported fields
}

UserRegisterReplyValidationError is the validation error returned by UserRegisterReply.Validate if the designated constraints aren't met.

func (UserRegisterReplyValidationError) Cause

Cause function returns cause value.

func (UserRegisterReplyValidationError) Error

Error satisfies the builtin error interface

func (UserRegisterReplyValidationError) ErrorName

ErrorName returns error name.

func (UserRegisterReplyValidationError) Field

Field function returns field value.

func (UserRegisterReplyValidationError) Key

Key function returns key value.

func (UserRegisterReplyValidationError) Reason

Reason function returns reason value.

type UserRegisterRequest

type UserRegisterRequest struct {
	Email    string `protobuf:"bytes,1,opt,name=email,proto3" json:"email,omitempty"`
	Password string `protobuf:"bytes,2,opt,name=password,proto3" json:"password,omitempty"`
	// contains filtered or unexported fields
}

UserRegister Request

func (*UserRegisterRequest) Descriptor deprecated

func (*UserRegisterRequest) Descriptor() ([]byte, []int)

Deprecated: Use UserRegisterRequest.ProtoReflect.Descriptor instead.

func (*UserRegisterRequest) GetEmail

func (x *UserRegisterRequest) GetEmail() string

func (*UserRegisterRequest) GetPassword

func (x *UserRegisterRequest) GetPassword() string

func (*UserRegisterRequest) ProtoMessage

func (*UserRegisterRequest) ProtoMessage()

func (*UserRegisterRequest) ProtoReflect

func (x *UserRegisterRequest) ProtoReflect() protoreflect.Message

func (*UserRegisterRequest) Reset

func (x *UserRegisterRequest) Reset()

func (*UserRegisterRequest) String

func (x *UserRegisterRequest) String() string

func (*UserRegisterRequest) Validate

func (m *UserRegisterRequest) Validate() error

Validate checks the field values on UserRegisterRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*UserRegisterRequest) ValidateAll

func (m *UserRegisterRequest) ValidateAll() error

ValidateAll checks the field values on UserRegisterRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in UserRegisterRequestMultiError, or nil if none found.

type UserRegisterRequestMultiError

type UserRegisterRequestMultiError []error

UserRegisterRequestMultiError is an error wrapping multiple validation errors returned by UserRegisterRequest.ValidateAll() if the designated constraints aren't met.

func (UserRegisterRequestMultiError) AllErrors

func (m UserRegisterRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (UserRegisterRequestMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type UserRegisterRequestValidationError

type UserRegisterRequestValidationError struct {
	// contains filtered or unexported fields
}

UserRegisterRequestValidationError is the validation error returned by UserRegisterRequest.Validate if the designated constraints aren't met.

func (UserRegisterRequestValidationError) Cause

Cause function returns cause value.

func (UserRegisterRequestValidationError) Error

Error satisfies the builtin error interface

func (UserRegisterRequestValidationError) ErrorName

ErrorName returns error name.

func (UserRegisterRequestValidationError) Field

Field function returns field value.

func (UserRegisterRequestValidationError) Key

Key function returns key value.

func (UserRegisterRequestValidationError) Reason

Reason function returns reason value.

Jump to

Keyboard shortcuts

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