Documentation
¶
Index ¶
- Constants
- Variables
- func RegisterAuthHTTPServer(s *http.Server, srv AuthHTTPServer)
- func RegisterAuthServer(s grpc.ServiceRegistrar, srv AuthServer)
- type AuthClient
- type AuthHTTPClient
- type AuthHTTPClientImpl
- func (c *AuthHTTPClientImpl) CheckUser(ctx context.Context, in *CheckUserRequest, opts ...http.CallOption) (*CheckUserReply, error)
- func (c *AuthHTTPClientImpl) CheckUserTelephone(ctx context.Context, in *CheckUserTelephoneRequest, opts ...http.CallOption) (*CheckUserTelephoneReply, error)
- func (c *AuthHTTPClientImpl) ResetPassword(ctx context.Context, in *ResetPasswordRequest, opts ...http.CallOption) (*ResetPasswordReply, error)
- func (c *AuthHTTPClientImpl) TelephoneLogin(ctx context.Context, in *TelephoneLoginRequest, opts ...http.CallOption) (*TelephoneLoginReply, error)
- func (c *AuthHTTPClientImpl) TelephoneResetPassword(ctx context.Context, in *TelephoneResetPasswordRequest, ...) (*TelephoneResetPasswordReply, error)
- func (c *AuthHTTPClientImpl) TelephoneUserRegister(ctx context.Context, in *TelephoneUserRegisterRequest, opts ...http.CallOption) (*TelephoneUserRegisterReply, error)
- func (c *AuthHTTPClientImpl) UserLogin(ctx context.Context, in *UserLoginRequest, opts ...http.CallOption) (*UserLoginReply, error)
- func (c *AuthHTTPClientImpl) UserRegister(ctx context.Context, in *UserRegisterRequest, opts ...http.CallOption) (*UserRegisterReply, error)
- type AuthHTTPServer
- type AuthServer
- type CheckUserReply
- func (*CheckUserReply) Descriptor() ([]byte, []int)deprecated
- func (x *CheckUserReply) GetExist() bool
- func (*CheckUserReply) ProtoMessage()
- func (x *CheckUserReply) ProtoReflect() protoreflect.Message
- func (x *CheckUserReply) Reset()
- func (x *CheckUserReply) String() string
- func (m *CheckUserReply) Validate() error
- func (m *CheckUserReply) ValidateAll() error
- type CheckUserReplyMultiError
- type CheckUserReplyValidationError
- func (e CheckUserReplyValidationError) Cause() error
- func (e CheckUserReplyValidationError) Error() string
- func (e CheckUserReplyValidationError) ErrorName() string
- func (e CheckUserReplyValidationError) Field() string
- func (e CheckUserReplyValidationError) Key() bool
- func (e CheckUserReplyValidationError) Reason() string
- type CheckUserRequest
- func (*CheckUserRequest) Descriptor() ([]byte, []int)deprecated
- func (x *CheckUserRequest) GetEmail() string
- func (*CheckUserRequest) ProtoMessage()
- func (x *CheckUserRequest) ProtoReflect() protoreflect.Message
- func (x *CheckUserRequest) Reset()
- func (x *CheckUserRequest) String() string
- func (m *CheckUserRequest) Validate() error
- func (m *CheckUserRequest) ValidateAll() error
- type CheckUserRequestMultiError
- type CheckUserRequestValidationError
- func (e CheckUserRequestValidationError) Cause() error
- func (e CheckUserRequestValidationError) Error() string
- func (e CheckUserRequestValidationError) ErrorName() string
- func (e CheckUserRequestValidationError) Field() string
- func (e CheckUserRequestValidationError) Key() bool
- func (e CheckUserRequestValidationError) Reason() string
- type CheckUserTelephoneReply
- func (*CheckUserTelephoneReply) Descriptor() ([]byte, []int)deprecated
- func (x *CheckUserTelephoneReply) GetExist() bool
- func (*CheckUserTelephoneReply) ProtoMessage()
- func (x *CheckUserTelephoneReply) ProtoReflect() protoreflect.Message
- func (x *CheckUserTelephoneReply) Reset()
- func (x *CheckUserTelephoneReply) String() string
- func (m *CheckUserTelephoneReply) Validate() error
- func (m *CheckUserTelephoneReply) ValidateAll() error
- type CheckUserTelephoneReplyMultiError
- type CheckUserTelephoneReplyValidationError
- func (e CheckUserTelephoneReplyValidationError) Cause() error
- func (e CheckUserTelephoneReplyValidationError) Error() string
- func (e CheckUserTelephoneReplyValidationError) ErrorName() string
- func (e CheckUserTelephoneReplyValidationError) Field() string
- func (e CheckUserTelephoneReplyValidationError) Key() bool
- func (e CheckUserTelephoneReplyValidationError) Reason() string
- type CheckUserTelephoneRequest
- func (*CheckUserTelephoneRequest) Descriptor() ([]byte, []int)deprecated
- func (x *CheckUserTelephoneRequest) GetTelephone() string
- func (*CheckUserTelephoneRequest) ProtoMessage()
- func (x *CheckUserTelephoneRequest) ProtoReflect() protoreflect.Message
- func (x *CheckUserTelephoneRequest) Reset()
- func (x *CheckUserTelephoneRequest) String() string
- func (m *CheckUserTelephoneRequest) Validate() error
- func (m *CheckUserTelephoneRequest) ValidateAll() error
- type CheckUserTelephoneRequestMultiError
- type CheckUserTelephoneRequestValidationError
- func (e CheckUserTelephoneRequestValidationError) Cause() error
- func (e CheckUserTelephoneRequestValidationError) Error() string
- func (e CheckUserTelephoneRequestValidationError) ErrorName() string
- func (e CheckUserTelephoneRequestValidationError) Field() string
- func (e CheckUserTelephoneRequestValidationError) Key() bool
- func (e CheckUserTelephoneRequestValidationError) Reason() string
- type ResetPasswordReply
- func (*ResetPasswordReply) Descriptor() ([]byte, []int)deprecated
- func (x *ResetPasswordReply) GetEmail() string
- func (x *ResetPasswordReply) GetToken() string
- func (x *ResetPasswordReply) GetUserId() string
- func (*ResetPasswordReply) ProtoMessage()
- func (x *ResetPasswordReply) ProtoReflect() protoreflect.Message
- func (x *ResetPasswordReply) Reset()
- func (x *ResetPasswordReply) String() string
- func (m *ResetPasswordReply) Validate() error
- func (m *ResetPasswordReply) ValidateAll() error
- type ResetPasswordReplyMultiError
- type ResetPasswordReplyValidationError
- func (e ResetPasswordReplyValidationError) Cause() error
- func (e ResetPasswordReplyValidationError) Error() string
- func (e ResetPasswordReplyValidationError) ErrorName() string
- func (e ResetPasswordReplyValidationError) Field() string
- func (e ResetPasswordReplyValidationError) Key() bool
- func (e ResetPasswordReplyValidationError) Reason() string
- type ResetPasswordRequest
- func (*ResetPasswordRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ResetPasswordRequest) GetEmail() string
- func (x *ResetPasswordRequest) GetNewPassword() string
- func (x *ResetPasswordRequest) GetVerificationCode() string
- func (*ResetPasswordRequest) ProtoMessage()
- func (x *ResetPasswordRequest) ProtoReflect() protoreflect.Message
- func (x *ResetPasswordRequest) Reset()
- func (x *ResetPasswordRequest) String() string
- func (m *ResetPasswordRequest) Validate() error
- func (m *ResetPasswordRequest) ValidateAll() error
- type ResetPasswordRequestMultiError
- type ResetPasswordRequestValidationError
- func (e ResetPasswordRequestValidationError) Cause() error
- func (e ResetPasswordRequestValidationError) Error() string
- func (e ResetPasswordRequestValidationError) ErrorName() string
- func (e ResetPasswordRequestValidationError) Field() string
- func (e ResetPasswordRequestValidationError) Key() bool
- func (e ResetPasswordRequestValidationError) Reason() string
- type TelephoneLoginReply
- func (*TelephoneLoginReply) Descriptor() ([]byte, []int)deprecated
- func (x *TelephoneLoginReply) GetTelephone() string
- func (x *TelephoneLoginReply) GetToken() string
- func (x *TelephoneLoginReply) GetUserId() string
- func (*TelephoneLoginReply) ProtoMessage()
- func (x *TelephoneLoginReply) ProtoReflect() protoreflect.Message
- func (x *TelephoneLoginReply) Reset()
- func (x *TelephoneLoginReply) String() string
- func (m *TelephoneLoginReply) Validate() error
- func (m *TelephoneLoginReply) ValidateAll() error
- type TelephoneLoginReplyMultiError
- type TelephoneLoginReplyValidationError
- func (e TelephoneLoginReplyValidationError) Cause() error
- func (e TelephoneLoginReplyValidationError) Error() string
- func (e TelephoneLoginReplyValidationError) ErrorName() string
- func (e TelephoneLoginReplyValidationError) Field() string
- func (e TelephoneLoginReplyValidationError) Key() bool
- func (e TelephoneLoginReplyValidationError) Reason() string
- type TelephoneLoginRequest
- func (*TelephoneLoginRequest) Descriptor() ([]byte, []int)deprecated
- func (x *TelephoneLoginRequest) GetPassword() string
- func (x *TelephoneLoginRequest) GetTelephone() string
- func (*TelephoneLoginRequest) ProtoMessage()
- func (x *TelephoneLoginRequest) ProtoReflect() protoreflect.Message
- func (x *TelephoneLoginRequest) Reset()
- func (x *TelephoneLoginRequest) String() string
- func (m *TelephoneLoginRequest) Validate() error
- func (m *TelephoneLoginRequest) ValidateAll() error
- type TelephoneLoginRequestMultiError
- type TelephoneLoginRequestValidationError
- func (e TelephoneLoginRequestValidationError) Cause() error
- func (e TelephoneLoginRequestValidationError) Error() string
- func (e TelephoneLoginRequestValidationError) ErrorName() string
- func (e TelephoneLoginRequestValidationError) Field() string
- func (e TelephoneLoginRequestValidationError) Key() bool
- func (e TelephoneLoginRequestValidationError) Reason() string
- type TelephoneResetPasswordReply
- func (*TelephoneResetPasswordReply) Descriptor() ([]byte, []int)deprecated
- func (x *TelephoneResetPasswordReply) GetTelephone() string
- func (x *TelephoneResetPasswordReply) GetToken() string
- func (x *TelephoneResetPasswordReply) GetUserId() string
- func (*TelephoneResetPasswordReply) ProtoMessage()
- func (x *TelephoneResetPasswordReply) ProtoReflect() protoreflect.Message
- func (x *TelephoneResetPasswordReply) Reset()
- func (x *TelephoneResetPasswordReply) String() string
- func (m *TelephoneResetPasswordReply) Validate() error
- func (m *TelephoneResetPasswordReply) ValidateAll() error
- type TelephoneResetPasswordReplyMultiError
- type TelephoneResetPasswordReplyValidationError
- func (e TelephoneResetPasswordReplyValidationError) Cause() error
- func (e TelephoneResetPasswordReplyValidationError) Error() string
- func (e TelephoneResetPasswordReplyValidationError) ErrorName() string
- func (e TelephoneResetPasswordReplyValidationError) Field() string
- func (e TelephoneResetPasswordReplyValidationError) Key() bool
- func (e TelephoneResetPasswordReplyValidationError) Reason() string
- type TelephoneResetPasswordRequest
- func (*TelephoneResetPasswordRequest) Descriptor() ([]byte, []int)deprecated
- func (x *TelephoneResetPasswordRequest) GetNewPassword() string
- func (x *TelephoneResetPasswordRequest) GetTelephone() string
- func (x *TelephoneResetPasswordRequest) GetVerificationCode() string
- func (*TelephoneResetPasswordRequest) ProtoMessage()
- func (x *TelephoneResetPasswordRequest) ProtoReflect() protoreflect.Message
- func (x *TelephoneResetPasswordRequest) Reset()
- func (x *TelephoneResetPasswordRequest) String() string
- func (m *TelephoneResetPasswordRequest) Validate() error
- func (m *TelephoneResetPasswordRequest) ValidateAll() error
- type TelephoneResetPasswordRequestMultiError
- type TelephoneResetPasswordRequestValidationError
- func (e TelephoneResetPasswordRequestValidationError) Cause() error
- func (e TelephoneResetPasswordRequestValidationError) Error() string
- func (e TelephoneResetPasswordRequestValidationError) ErrorName() string
- func (e TelephoneResetPasswordRequestValidationError) Field() string
- func (e TelephoneResetPasswordRequestValidationError) Key() bool
- func (e TelephoneResetPasswordRequestValidationError) Reason() string
- type TelephoneUserRegisterReply
- func (*TelephoneUserRegisterReply) Descriptor() ([]byte, []int)deprecated
- func (x *TelephoneUserRegisterReply) GetTelephone() string
- func (x *TelephoneUserRegisterReply) GetToken() string
- func (x *TelephoneUserRegisterReply) GetUserId() string
- func (*TelephoneUserRegisterReply) ProtoMessage()
- func (x *TelephoneUserRegisterReply) ProtoReflect() protoreflect.Message
- func (x *TelephoneUserRegisterReply) Reset()
- func (x *TelephoneUserRegisterReply) String() string
- func (m *TelephoneUserRegisterReply) Validate() error
- func (m *TelephoneUserRegisterReply) ValidateAll() error
- type TelephoneUserRegisterReplyMultiError
- type TelephoneUserRegisterReplyValidationError
- func (e TelephoneUserRegisterReplyValidationError) Cause() error
- func (e TelephoneUserRegisterReplyValidationError) Error() string
- func (e TelephoneUserRegisterReplyValidationError) ErrorName() string
- func (e TelephoneUserRegisterReplyValidationError) Field() string
- func (e TelephoneUserRegisterReplyValidationError) Key() bool
- func (e TelephoneUserRegisterReplyValidationError) Reason() string
- type TelephoneUserRegisterRequest
- func (*TelephoneUserRegisterRequest) Descriptor() ([]byte, []int)deprecated
- func (x *TelephoneUserRegisterRequest) GetPassword() string
- func (x *TelephoneUserRegisterRequest) GetTelephone() string
- func (*TelephoneUserRegisterRequest) ProtoMessage()
- func (x *TelephoneUserRegisterRequest) ProtoReflect() protoreflect.Message
- func (x *TelephoneUserRegisterRequest) Reset()
- func (x *TelephoneUserRegisterRequest) String() string
- func (m *TelephoneUserRegisterRequest) Validate() error
- func (m *TelephoneUserRegisterRequest) ValidateAll() error
- type TelephoneUserRegisterRequestMultiError
- type TelephoneUserRegisterRequestValidationError
- func (e TelephoneUserRegisterRequestValidationError) Cause() error
- func (e TelephoneUserRegisterRequestValidationError) Error() string
- func (e TelephoneUserRegisterRequestValidationError) ErrorName() string
- func (e TelephoneUserRegisterRequestValidationError) Field() string
- func (e TelephoneUserRegisterRequestValidationError) Key() bool
- func (e TelephoneUserRegisterRequestValidationError) Reason() string
- type UnimplementedAuthServer
- func (UnimplementedAuthServer) CheckUser(context.Context, *CheckUserRequest) (*CheckUserReply, error)
- func (UnimplementedAuthServer) CheckUserTelephone(context.Context, *CheckUserTelephoneRequest) (*CheckUserTelephoneReply, error)
- func (UnimplementedAuthServer) ResetPassword(context.Context, *ResetPasswordRequest) (*ResetPasswordReply, error)
- func (UnimplementedAuthServer) TelephoneLogin(context.Context, *TelephoneLoginRequest) (*TelephoneLoginReply, error)
- func (UnimplementedAuthServer) TelephoneResetPassword(context.Context, *TelephoneResetPasswordRequest) (*TelephoneResetPasswordReply, error)
- func (UnimplementedAuthServer) TelephoneUserRegister(context.Context, *TelephoneUserRegisterRequest) (*TelephoneUserRegisterReply, error)
- func (UnimplementedAuthServer) UserLogin(context.Context, *UserLoginRequest) (*UserLoginReply, error)
- func (UnimplementedAuthServer) UserRegister(context.Context, *UserRegisterRequest) (*UserRegisterReply, error)
- type UnsafeAuthServer
- type UserLoginReply
- func (*UserLoginReply) Descriptor() ([]byte, []int)deprecated
- func (x *UserLoginReply) GetEmail() string
- func (x *UserLoginReply) GetToken() string
- func (x *UserLoginReply) GetUserId() string
- func (*UserLoginReply) ProtoMessage()
- func (x *UserLoginReply) ProtoReflect() protoreflect.Message
- func (x *UserLoginReply) Reset()
- func (x *UserLoginReply) String() string
- func (m *UserLoginReply) Validate() error
- func (m *UserLoginReply) ValidateAll() error
- type UserLoginReplyMultiError
- type UserLoginReplyValidationError
- func (e UserLoginReplyValidationError) Cause() error
- func (e UserLoginReplyValidationError) Error() string
- func (e UserLoginReplyValidationError) ErrorName() string
- func (e UserLoginReplyValidationError) Field() string
- func (e UserLoginReplyValidationError) Key() bool
- func (e UserLoginReplyValidationError) Reason() string
- type UserLoginRequest
- func (*UserLoginRequest) Descriptor() ([]byte, []int)deprecated
- func (x *UserLoginRequest) GetEmail() string
- func (x *UserLoginRequest) GetPassword() string
- func (*UserLoginRequest) ProtoMessage()
- func (x *UserLoginRequest) ProtoReflect() protoreflect.Message
- func (x *UserLoginRequest) Reset()
- func (x *UserLoginRequest) String() string
- func (m *UserLoginRequest) Validate() error
- func (m *UserLoginRequest) ValidateAll() error
- type UserLoginRequestMultiError
- type UserLoginRequestValidationError
- func (e UserLoginRequestValidationError) Cause() error
- func (e UserLoginRequestValidationError) Error() string
- func (e UserLoginRequestValidationError) ErrorName() string
- func (e UserLoginRequestValidationError) Field() string
- func (e UserLoginRequestValidationError) Key() bool
- func (e UserLoginRequestValidationError) Reason() string
- type UserRegisterReply
- func (*UserRegisterReply) Descriptor() ([]byte, []int)deprecated
- func (x *UserRegisterReply) GetEmail() string
- func (x *UserRegisterReply) GetToken() string
- func (x *UserRegisterReply) GetUserId() string
- func (*UserRegisterReply) ProtoMessage()
- func (x *UserRegisterReply) ProtoReflect() protoreflect.Message
- func (x *UserRegisterReply) Reset()
- func (x *UserRegisterReply) String() string
- func (m *UserRegisterReply) Validate() error
- func (m *UserRegisterReply) ValidateAll() error
- type UserRegisterReplyMultiError
- type UserRegisterReplyValidationError
- func (e UserRegisterReplyValidationError) Cause() error
- func (e UserRegisterReplyValidationError) Error() string
- func (e UserRegisterReplyValidationError) ErrorName() string
- func (e UserRegisterReplyValidationError) Field() string
- func (e UserRegisterReplyValidationError) Key() bool
- func (e UserRegisterReplyValidationError) Reason() string
- type UserRegisterRequest
- func (*UserRegisterRequest) Descriptor() ([]byte, []int)deprecated
- func (x *UserRegisterRequest) GetEmail() string
- func (x *UserRegisterRequest) GetPassword() string
- func (*UserRegisterRequest) ProtoMessage()
- func (x *UserRegisterRequest) ProtoReflect() protoreflect.Message
- func (x *UserRegisterRequest) Reset()
- func (x *UserRegisterRequest) String() string
- func (m *UserRegisterRequest) Validate() error
- func (m *UserRegisterRequest) ValidateAll() error
- type UserRegisterRequestMultiError
- type UserRegisterRequestValidationError
- func (e UserRegisterRequestValidationError) Cause() error
- func (e UserRegisterRequestValidationError) Error() string
- func (e UserRegisterRequestValidationError) ErrorName() string
- func (e UserRegisterRequestValidationError) Field() string
- func (e UserRegisterRequestValidationError) Key() bool
- func (e UserRegisterRequestValidationError) Reason() string
Constants ¶
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" )
const OperationAuthCheckUser = "/api.auth.v1.Auth/CheckUser"
const OperationAuthCheckUserTelephone = "/api.auth.v1.Auth/CheckUserTelephone"
const OperationAuthResetPassword = "/api.auth.v1.Auth/ResetPassword"
const OperationAuthTelephoneLogin = "/api.auth.v1.Auth/TelephoneLogin"
const OperationAuthTelephoneResetPassword = "/api.auth.v1.Auth/TelephoneResetPassword"
const OperationAuthTelephoneUserRegister = "/api.auth.v1.Auth/TelephoneUserRegister"
const OperationAuthUserLogin = "/api.auth.v1.Auth/UserLogin"
const OperationAuthUserRegister = "/api.auth.v1.Auth/UserRegister"
Variables ¶
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)
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 ¶
func (c *AuthHTTPClientImpl) CheckUser(ctx context.Context, in *CheckUserRequest, opts ...http.CallOption) (*CheckUserReply, error)
CheckUser Check if user exists by email
func (*AuthHTTPClientImpl) CheckUserTelephone ¶
func (c *AuthHTTPClientImpl) CheckUserTelephone(ctx context.Context, in *CheckUserTelephoneRequest, opts ...http.CallOption) (*CheckUserTelephoneReply, error)
CheckUserTelephone Check if user exists by telephone
func (*AuthHTTPClientImpl) ResetPassword ¶
func (c *AuthHTTPClientImpl) ResetPassword(ctx context.Context, in *ResetPasswordRequest, opts ...http.CallOption) (*ResetPasswordReply, error)
ResetPassword Reset password with email
func (*AuthHTTPClientImpl) TelephoneLogin ¶
func (c *AuthHTTPClientImpl) TelephoneLogin(ctx context.Context, in *TelephoneLoginRequest, opts ...http.CallOption) (*TelephoneLoginReply, error)
TelephoneLogin User login with telephone and password
func (*AuthHTTPClientImpl) TelephoneResetPassword ¶
func (c *AuthHTTPClientImpl) TelephoneResetPassword(ctx context.Context, in *TelephoneResetPasswordRequest, opts ...http.CallOption) (*TelephoneResetPasswordReply, error)
TelephoneResetPassword Reset password with telephone
func (*AuthHTTPClientImpl) TelephoneUserRegister ¶
func (c *AuthHTTPClientImpl) TelephoneUserRegister(ctx context.Context, in *TelephoneUserRegisterRequest, opts ...http.CallOption) (*TelephoneUserRegisterReply, error)
TelephoneUserRegister User register with telephone and password
func (*AuthHTTPClientImpl) UserLogin ¶
func (c *AuthHTTPClientImpl) UserLogin(ctx context.Context, in *UserLoginRequest, opts ...http.CallOption) (*UserLoginReply, error)
UserLogin User login with email and password
func (*AuthHTTPClientImpl) UserRegister ¶
func (c *AuthHTTPClientImpl) UserRegister(ctx context.Context, in *UserRegisterRequest, opts ...http.CallOption) (*UserRegisterReply, error)
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 ¶
func (e CheckUserReplyValidationError) Cause() error
Cause function returns cause value.
func (CheckUserReplyValidationError) Error ¶
func (e CheckUserReplyValidationError) Error() string
Error satisfies the builtin error interface
func (CheckUserReplyValidationError) ErrorName ¶
func (e CheckUserReplyValidationError) ErrorName() string
ErrorName returns error name.
func (CheckUserReplyValidationError) Field ¶
func (e CheckUserReplyValidationError) Field() string
Field function returns field value.
func (CheckUserReplyValidationError) Key ¶
func (e CheckUserReplyValidationError) Key() bool
Key function returns key value.
func (CheckUserReplyValidationError) Reason ¶
func (e CheckUserReplyValidationError) Reason() string
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 ¶
func (m CheckUserRequestMultiError) Error() string
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 ¶
func (e CheckUserRequestValidationError) Cause() error
Cause function returns cause value.
func (CheckUserRequestValidationError) Error ¶
func (e CheckUserRequestValidationError) Error() string
Error satisfies the builtin error interface
func (CheckUserRequestValidationError) ErrorName ¶
func (e CheckUserRequestValidationError) ErrorName() string
ErrorName returns error name.
func (CheckUserRequestValidationError) Field ¶
func (e CheckUserRequestValidationError) Field() string
Field function returns field value.
func (CheckUserRequestValidationError) Key ¶
func (e CheckUserRequestValidationError) Key() bool
Key function returns key value.
func (CheckUserRequestValidationError) Reason ¶
func (e CheckUserRequestValidationError) Reason() string
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 ¶
func (m CheckUserTelephoneReplyMultiError) Error() string
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 ¶
func (e CheckUserTelephoneReplyValidationError) Cause() error
Cause function returns cause value.
func (CheckUserTelephoneReplyValidationError) Error ¶
func (e CheckUserTelephoneReplyValidationError) Error() string
Error satisfies the builtin error interface
func (CheckUserTelephoneReplyValidationError) ErrorName ¶
func (e CheckUserTelephoneReplyValidationError) ErrorName() string
ErrorName returns error name.
func (CheckUserTelephoneReplyValidationError) Field ¶
func (e CheckUserTelephoneReplyValidationError) Field() string
Field function returns field value.
func (CheckUserTelephoneReplyValidationError) Key ¶
func (e CheckUserTelephoneReplyValidationError) Key() bool
Key function returns key value.
func (CheckUserTelephoneReplyValidationError) Reason ¶
func (e CheckUserTelephoneReplyValidationError) Reason() string
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 (x *CheckUserTelephoneRequest) ProtoReflect() protoreflect.Message
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 ¶
func (m CheckUserTelephoneRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (CheckUserTelephoneRequestMultiError) Error ¶
func (m CheckUserTelephoneRequestMultiError) Error() string
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 ¶
func (e CheckUserTelephoneRequestValidationError) Cause() error
Cause function returns cause value.
func (CheckUserTelephoneRequestValidationError) Error ¶
func (e CheckUserTelephoneRequestValidationError) Error() string
Error satisfies the builtin error interface
func (CheckUserTelephoneRequestValidationError) ErrorName ¶
func (e CheckUserTelephoneRequestValidationError) ErrorName() string
ErrorName returns error name.
func (CheckUserTelephoneRequestValidationError) Field ¶
func (e CheckUserTelephoneRequestValidationError) Field() string
Field function returns field value.
func (CheckUserTelephoneRequestValidationError) Key ¶
func (e CheckUserTelephoneRequestValidationError) Key() bool
Key function returns key value.
func (CheckUserTelephoneRequestValidationError) Reason ¶
func (e CheckUserTelephoneRequestValidationError) Reason() string
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 ¶
func (m ResetPasswordReplyMultiError) Error() string
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 ¶
func (e ResetPasswordReplyValidationError) Cause() error
Cause function returns cause value.
func (ResetPasswordReplyValidationError) Error ¶
func (e ResetPasswordReplyValidationError) Error() string
Error satisfies the builtin error interface
func (ResetPasswordReplyValidationError) ErrorName ¶
func (e ResetPasswordReplyValidationError) ErrorName() string
ErrorName returns error name.
func (ResetPasswordReplyValidationError) Field ¶
func (e ResetPasswordReplyValidationError) Field() string
Field function returns field value.
func (ResetPasswordReplyValidationError) Key ¶
func (e ResetPasswordReplyValidationError) Key() bool
Key function returns key value.
func (ResetPasswordReplyValidationError) Reason ¶
func (e ResetPasswordReplyValidationError) Reason() string
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 ¶
func (m ResetPasswordRequestMultiError) Error() string
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 ¶
func (e ResetPasswordRequestValidationError) Cause() error
Cause function returns cause value.
func (ResetPasswordRequestValidationError) Error ¶
func (e ResetPasswordRequestValidationError) Error() string
Error satisfies the builtin error interface
func (ResetPasswordRequestValidationError) ErrorName ¶
func (e ResetPasswordRequestValidationError) ErrorName() string
ErrorName returns error name.
func (ResetPasswordRequestValidationError) Field ¶
func (e ResetPasswordRequestValidationError) Field() string
Field function returns field value.
func (ResetPasswordRequestValidationError) Key ¶
func (e ResetPasswordRequestValidationError) Key() bool
Key function returns key value.
func (ResetPasswordRequestValidationError) Reason ¶
func (e ResetPasswordRequestValidationError) Reason() string
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 ¶
func (m TelephoneLoginReplyMultiError) Error() string
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 ¶
func (e TelephoneLoginReplyValidationError) Cause() error
Cause function returns cause value.
func (TelephoneLoginReplyValidationError) Error ¶
func (e TelephoneLoginReplyValidationError) Error() string
Error satisfies the builtin error interface
func (TelephoneLoginReplyValidationError) ErrorName ¶
func (e TelephoneLoginReplyValidationError) ErrorName() string
ErrorName returns error name.
func (TelephoneLoginReplyValidationError) Field ¶
func (e TelephoneLoginReplyValidationError) Field() string
Field function returns field value.
func (TelephoneLoginReplyValidationError) Key ¶
func (e TelephoneLoginReplyValidationError) Key() bool
Key function returns key value.
func (TelephoneLoginReplyValidationError) Reason ¶
func (e TelephoneLoginReplyValidationError) Reason() string
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 ¶
func (m TelephoneLoginRequestMultiError) Error() string
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 ¶
func (e TelephoneLoginRequestValidationError) Cause() error
Cause function returns cause value.
func (TelephoneLoginRequestValidationError) Error ¶
func (e TelephoneLoginRequestValidationError) Error() string
Error satisfies the builtin error interface
func (TelephoneLoginRequestValidationError) ErrorName ¶
func (e TelephoneLoginRequestValidationError) ErrorName() string
ErrorName returns error name.
func (TelephoneLoginRequestValidationError) Field ¶
func (e TelephoneLoginRequestValidationError) Field() string
Field function returns field value.
func (TelephoneLoginRequestValidationError) Key ¶
func (e TelephoneLoginRequestValidationError) Key() bool
Key function returns key value.
func (TelephoneLoginRequestValidationError) Reason ¶
func (e TelephoneLoginRequestValidationError) Reason() string
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 (x *TelephoneResetPasswordReply) ProtoReflect() protoreflect.Message
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 ¶
func (m TelephoneResetPasswordReplyMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (TelephoneResetPasswordReplyMultiError) Error ¶
func (m TelephoneResetPasswordReplyMultiError) Error() string
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 ¶
func (e TelephoneResetPasswordReplyValidationError) Cause() error
Cause function returns cause value.
func (TelephoneResetPasswordReplyValidationError) Error ¶
func (e TelephoneResetPasswordReplyValidationError) Error() string
Error satisfies the builtin error interface
func (TelephoneResetPasswordReplyValidationError) ErrorName ¶
func (e TelephoneResetPasswordReplyValidationError) ErrorName() string
ErrorName returns error name.
func (TelephoneResetPasswordReplyValidationError) Field ¶
func (e TelephoneResetPasswordReplyValidationError) Field() string
Field function returns field value.
func (TelephoneResetPasswordReplyValidationError) Key ¶
func (e TelephoneResetPasswordReplyValidationError) Key() bool
Key function returns key value.
func (TelephoneResetPasswordReplyValidationError) Reason ¶
func (e TelephoneResetPasswordReplyValidationError) Reason() string
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 (x *TelephoneResetPasswordRequest) ProtoReflect() protoreflect.Message
func (*TelephoneResetPasswordRequest) Reset ¶
func (x *TelephoneResetPasswordRequest) Reset()
func (*TelephoneResetPasswordRequest) String ¶
func (x *TelephoneResetPasswordRequest) String() 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 ¶
func (m TelephoneResetPasswordRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (TelephoneResetPasswordRequestMultiError) Error ¶
func (m TelephoneResetPasswordRequestMultiError) Error() string
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 ¶
func (e TelephoneResetPasswordRequestValidationError) Cause() error
Cause function returns cause value.
func (TelephoneResetPasswordRequestValidationError) Error ¶
func (e TelephoneResetPasswordRequestValidationError) Error() string
Error satisfies the builtin error interface
func (TelephoneResetPasswordRequestValidationError) ErrorName ¶
func (e TelephoneResetPasswordRequestValidationError) ErrorName() string
ErrorName returns error name.
func (TelephoneResetPasswordRequestValidationError) Field ¶
func (e TelephoneResetPasswordRequestValidationError) Field() string
Field function returns field value.
func (TelephoneResetPasswordRequestValidationError) Key ¶
func (e TelephoneResetPasswordRequestValidationError) Key() bool
Key function returns key value.
func (TelephoneResetPasswordRequestValidationError) Reason ¶
func (e TelephoneResetPasswordRequestValidationError) Reason() string
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 (x *TelephoneUserRegisterReply) ProtoReflect() protoreflect.Message
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 ¶
func (m TelephoneUserRegisterReplyMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (TelephoneUserRegisterReplyMultiError) Error ¶
func (m TelephoneUserRegisterReplyMultiError) Error() string
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 ¶
func (e TelephoneUserRegisterReplyValidationError) Cause() error
Cause function returns cause value.
func (TelephoneUserRegisterReplyValidationError) Error ¶
func (e TelephoneUserRegisterReplyValidationError) Error() string
Error satisfies the builtin error interface
func (TelephoneUserRegisterReplyValidationError) ErrorName ¶
func (e TelephoneUserRegisterReplyValidationError) ErrorName() string
ErrorName returns error name.
func (TelephoneUserRegisterReplyValidationError) Field ¶
func (e TelephoneUserRegisterReplyValidationError) Field() string
Field function returns field value.
func (TelephoneUserRegisterReplyValidationError) Key ¶
func (e TelephoneUserRegisterReplyValidationError) Key() bool
Key function returns key value.
func (TelephoneUserRegisterReplyValidationError) Reason ¶
func (e TelephoneUserRegisterReplyValidationError) Reason() string
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 (x *TelephoneUserRegisterRequest) ProtoReflect() protoreflect.Message
func (*TelephoneUserRegisterRequest) Reset ¶
func (x *TelephoneUserRegisterRequest) Reset()
func (*TelephoneUserRegisterRequest) String ¶
func (x *TelephoneUserRegisterRequest) String() 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 ¶
func (m TelephoneUserRegisterRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (TelephoneUserRegisterRequestMultiError) Error ¶
func (m TelephoneUserRegisterRequestMultiError) Error() string
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 ¶
func (e TelephoneUserRegisterRequestValidationError) Cause() error
Cause function returns cause value.
func (TelephoneUserRegisterRequestValidationError) Error ¶
func (e TelephoneUserRegisterRequestValidationError) Error() string
Error satisfies the builtin error interface
func (TelephoneUserRegisterRequestValidationError) ErrorName ¶
func (e TelephoneUserRegisterRequestValidationError) ErrorName() string
ErrorName returns error name.
func (TelephoneUserRegisterRequestValidationError) Field ¶
func (e TelephoneUserRegisterRequestValidationError) Field() string
Field function returns field value.
func (TelephoneUserRegisterRequestValidationError) Key ¶
func (e TelephoneUserRegisterRequestValidationError) Key() bool
Key function returns key value.
func (TelephoneUserRegisterRequestValidationError) Reason ¶
func (e TelephoneUserRegisterRequestValidationError) Reason() string
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) CheckUser(context.Context, *CheckUserRequest) (*CheckUserReply, error)
func (UnimplementedAuthServer) CheckUserTelephone ¶
func (UnimplementedAuthServer) CheckUserTelephone(context.Context, *CheckUserTelephoneRequest) (*CheckUserTelephoneReply, error)
func (UnimplementedAuthServer) ResetPassword ¶
func (UnimplementedAuthServer) ResetPassword(context.Context, *ResetPasswordRequest) (*ResetPasswordReply, error)
func (UnimplementedAuthServer) TelephoneLogin ¶
func (UnimplementedAuthServer) TelephoneLogin(context.Context, *TelephoneLoginRequest) (*TelephoneLoginReply, error)
func (UnimplementedAuthServer) TelephoneResetPassword ¶
func (UnimplementedAuthServer) TelephoneResetPassword(context.Context, *TelephoneResetPasswordRequest) (*TelephoneResetPasswordReply, error)
func (UnimplementedAuthServer) TelephoneUserRegister ¶
func (UnimplementedAuthServer) TelephoneUserRegister(context.Context, *TelephoneUserRegisterRequest) (*TelephoneUserRegisterReply, error)
func (UnimplementedAuthServer) UserLogin ¶
func (UnimplementedAuthServer) UserLogin(context.Context, *UserLoginRequest) (*UserLoginReply, error)
func (UnimplementedAuthServer) UserRegister ¶
func (UnimplementedAuthServer) UserRegister(context.Context, *UserRegisterRequest) (*UserRegisterReply, error)
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 ¶
func (e UserLoginReplyValidationError) Cause() error
Cause function returns cause value.
func (UserLoginReplyValidationError) Error ¶
func (e UserLoginReplyValidationError) Error() string
Error satisfies the builtin error interface
func (UserLoginReplyValidationError) ErrorName ¶
func (e UserLoginReplyValidationError) ErrorName() string
ErrorName returns error name.
func (UserLoginReplyValidationError) Field ¶
func (e UserLoginReplyValidationError) Field() string
Field function returns field value.
func (UserLoginReplyValidationError) Key ¶
func (e UserLoginReplyValidationError) Key() bool
Key function returns key value.
func (UserLoginReplyValidationError) Reason ¶
func (e UserLoginReplyValidationError) Reason() string
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 ¶
func (m UserLoginRequestMultiError) Error() string
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 ¶
func (e UserLoginRequestValidationError) Cause() error
Cause function returns cause value.
func (UserLoginRequestValidationError) Error ¶
func (e UserLoginRequestValidationError) Error() string
Error satisfies the builtin error interface
func (UserLoginRequestValidationError) ErrorName ¶
func (e UserLoginRequestValidationError) ErrorName() string
ErrorName returns error name.
func (UserLoginRequestValidationError) Field ¶
func (e UserLoginRequestValidationError) Field() string
Field function returns field value.
func (UserLoginRequestValidationError) Key ¶
func (e UserLoginRequestValidationError) Key() bool
Key function returns key value.
func (UserLoginRequestValidationError) Reason ¶
func (e UserLoginRequestValidationError) Reason() string
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 ¶
func (m UserRegisterReplyMultiError) Error() string
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 ¶
func (e UserRegisterReplyValidationError) Cause() error
Cause function returns cause value.
func (UserRegisterReplyValidationError) Error ¶
func (e UserRegisterReplyValidationError) Error() string
Error satisfies the builtin error interface
func (UserRegisterReplyValidationError) ErrorName ¶
func (e UserRegisterReplyValidationError) ErrorName() string
ErrorName returns error name.
func (UserRegisterReplyValidationError) Field ¶
func (e UserRegisterReplyValidationError) Field() string
Field function returns field value.
func (UserRegisterReplyValidationError) Key ¶
func (e UserRegisterReplyValidationError) Key() bool
Key function returns key value.
func (UserRegisterReplyValidationError) Reason ¶
func (e UserRegisterReplyValidationError) Reason() string
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 ¶
func (m UserRegisterRequestMultiError) Error() string
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 ¶
func (e UserRegisterRequestValidationError) Cause() error
Cause function returns cause value.
func (UserRegisterRequestValidationError) Error ¶
func (e UserRegisterRequestValidationError) Error() string
Error satisfies the builtin error interface
func (UserRegisterRequestValidationError) ErrorName ¶
func (e UserRegisterRequestValidationError) ErrorName() string
ErrorName returns error name.
func (UserRegisterRequestValidationError) Field ¶
func (e UserRegisterRequestValidationError) Field() string
Field function returns field value.
func (UserRegisterRequestValidationError) Key ¶
func (e UserRegisterRequestValidationError) Key() bool
Key function returns key value.
func (UserRegisterRequestValidationError) Reason ¶
func (e UserRegisterRequestValidationError) Reason() string
Reason function returns reason value.