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) AdminGenerateCaptcha(ctx context.Context, in *emptypb.Empty, opts ...http.CallOption) (*GenerateCaptchaReply, error)
- func (c *AuthHTTPClientImpl) AdminLogin(ctx context.Context, in *UserLoginRequest, opts ...http.CallOption) (*LoginReply, error)
- func (c *AuthHTTPClientImpl) AdminResetPassword(ctx context.Context, in *ResetPasswordRequest, opts ...http.CallOption) (*LoginReply, error)
- func (c *AuthHTTPClientImpl) AdminVerifySliderCaptcha(ctx context.Context, in *VerifySliderCaptchaRequest, opts ...http.CallOption) (*VerifySliderCaptchaReply, error)
- 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) DeviceLogin(ctx context.Context, in *DeviceLoginRequest, opts ...http.CallOption) (*LoginReply, error)
- func (c *AuthHTTPClientImpl) GenerateCaptcha(ctx context.Context, in *emptypb.Empty, opts ...http.CallOption) (*GenerateCaptchaReply, error)
- func (c *AuthHTTPClientImpl) ResetPassword(ctx context.Context, in *ResetPasswordRequest, opts ...http.CallOption) (*LoginReply, error)
- func (c *AuthHTTPClientImpl) TelephoneLogin(ctx context.Context, in *TelephoneLoginRequest, opts ...http.CallOption) (*LoginReply, error)
- func (c *AuthHTTPClientImpl) TelephoneRegister(ctx context.Context, in *TelephoneRegisterRequest, opts ...http.CallOption) (*LoginReply, error)
- func (c *AuthHTTPClientImpl) TelephoneResetPassword(ctx context.Context, in *TelephoneResetPasswordRequest, ...) (*LoginReply, error)
- func (c *AuthHTTPClientImpl) UserLogin(ctx context.Context, in *UserLoginRequest, opts ...http.CallOption) (*LoginReply, error)
- func (c *AuthHTTPClientImpl) UserRegister(ctx context.Context, in *UserRegisterRequest, opts ...http.CallOption) (*LoginReply, error)
- func (c *AuthHTTPClientImpl) VerifySliderCaptcha(ctx context.Context, in *VerifySliderCaptchaRequest, opts ...http.CallOption) (*VerifySliderCaptchaReply, 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 (x *CheckUserTelephoneRequest) GetTelephoneAreaCode() 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 DeviceLoginRequest
- func (*DeviceLoginRequest) Descriptor() ([]byte, []int)deprecated
- func (x *DeviceLoginRequest) GetCfToken() string
- func (x *DeviceLoginRequest) GetIdentifier() string
- func (x *DeviceLoginRequest) GetIp() string
- func (x *DeviceLoginRequest) GetShortCode() string
- func (x *DeviceLoginRequest) GetUserAgent() string
- func (*DeviceLoginRequest) ProtoMessage()
- func (x *DeviceLoginRequest) ProtoReflect() protoreflect.Message
- func (x *DeviceLoginRequest) Reset()
- func (x *DeviceLoginRequest) String() string
- func (m *DeviceLoginRequest) Validate() error
- func (m *DeviceLoginRequest) ValidateAll() error
- type DeviceLoginRequestMultiError
- type DeviceLoginRequestValidationError
- func (e DeviceLoginRequestValidationError) Cause() error
- func (e DeviceLoginRequestValidationError) Error() string
- func (e DeviceLoginRequestValidationError) ErrorName() string
- func (e DeviceLoginRequestValidationError) Field() string
- func (e DeviceLoginRequestValidationError) Key() bool
- func (e DeviceLoginRequestValidationError) Reason() string
- type GenerateCaptchaReply
- func (*GenerateCaptchaReply) Descriptor() ([]byte, []int)deprecated
- func (x *GenerateCaptchaReply) GetBlockImage() string
- func (x *GenerateCaptchaReply) GetId() string
- func (x *GenerateCaptchaReply) GetImage() string
- func (x *GenerateCaptchaReply) GetType() string
- func (*GenerateCaptchaReply) ProtoMessage()
- func (x *GenerateCaptchaReply) ProtoReflect() protoreflect.Message
- func (x *GenerateCaptchaReply) Reset()
- func (x *GenerateCaptchaReply) String() string
- func (m *GenerateCaptchaReply) Validate() error
- func (m *GenerateCaptchaReply) ValidateAll() error
- type GenerateCaptchaReplyMultiError
- type GenerateCaptchaReplyValidationError
- func (e GenerateCaptchaReplyValidationError) Cause() error
- func (e GenerateCaptchaReplyValidationError) Error() string
- func (e GenerateCaptchaReplyValidationError) ErrorName() string
- func (e GenerateCaptchaReplyValidationError) Field() string
- func (e GenerateCaptchaReplyValidationError) Key() bool
- func (e GenerateCaptchaReplyValidationError) Reason() string
- type LoginReply
- func (*LoginReply) Descriptor() ([]byte, []int)deprecated
- func (x *LoginReply) GetToken() string
- func (*LoginReply) ProtoMessage()
- func (x *LoginReply) ProtoReflect() protoreflect.Message
- func (x *LoginReply) Reset()
- func (x *LoginReply) String() string
- func (m *LoginReply) Validate() error
- func (m *LoginReply) ValidateAll() error
- type LoginReplyMultiError
- type LoginReplyValidationError
- type ResetPasswordRequest
- func (*ResetPasswordRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ResetPasswordRequest) GetCaptchaCode() string
- func (x *ResetPasswordRequest) GetCaptchaId() string
- func (x *ResetPasswordRequest) GetCfToken() string
- func (x *ResetPasswordRequest) GetCode() string
- func (x *ResetPasswordRequest) GetEmail() string
- func (x *ResetPasswordRequest) GetIdentifier() string
- func (x *ResetPasswordRequest) GetIp() string
- func (x *ResetPasswordRequest) GetLoginType() string
- func (x *ResetPasswordRequest) GetPassword() string
- func (x *ResetPasswordRequest) GetSliderToken() string
- func (x *ResetPasswordRequest) GetUserAgent() 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 TelephoneLoginRequest
- func (*TelephoneLoginRequest) Descriptor() ([]byte, []int)deprecated
- func (x *TelephoneLoginRequest) GetCaptchaCode() string
- func (x *TelephoneLoginRequest) GetCaptchaId() string
- func (x *TelephoneLoginRequest) GetCfToken() string
- func (x *TelephoneLoginRequest) GetIdentifier() string
- func (x *TelephoneLoginRequest) GetIp() string
- func (x *TelephoneLoginRequest) GetLoginType() string
- func (x *TelephoneLoginRequest) GetPassword() string
- func (x *TelephoneLoginRequest) GetSliderToken() string
- func (x *TelephoneLoginRequest) GetTelephone() string
- func (x *TelephoneLoginRequest) GetTelephoneAreaCode() string
- func (x *TelephoneLoginRequest) GetTelephoneCode() string
- func (x *TelephoneLoginRequest) GetUserAgent() 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 TelephoneRegisterRequest
- func (*TelephoneRegisterRequest) Descriptor() ([]byte, []int)deprecated
- func (x *TelephoneRegisterRequest) GetCaptchaCode() string
- func (x *TelephoneRegisterRequest) GetCaptchaId() string
- func (x *TelephoneRegisterRequest) GetCfToken() string
- func (x *TelephoneRegisterRequest) GetCode() string
- func (x *TelephoneRegisterRequest) GetIdentifier() string
- func (x *TelephoneRegisterRequest) GetInvite() string
- func (x *TelephoneRegisterRequest) GetIp() string
- func (x *TelephoneRegisterRequest) GetLoginType() string
- func (x *TelephoneRegisterRequest) GetPassword() string
- func (x *TelephoneRegisterRequest) GetSliderToken() string
- func (x *TelephoneRegisterRequest) GetTelephone() string
- func (x *TelephoneRegisterRequest) GetTelephoneAreaCode() string
- func (x *TelephoneRegisterRequest) GetUserAgent() string
- func (*TelephoneRegisterRequest) ProtoMessage()
- func (x *TelephoneRegisterRequest) ProtoReflect() protoreflect.Message
- func (x *TelephoneRegisterRequest) Reset()
- func (x *TelephoneRegisterRequest) String() string
- func (m *TelephoneRegisterRequest) Validate() error
- func (m *TelephoneRegisterRequest) ValidateAll() error
- type TelephoneRegisterRequestMultiError
- type TelephoneRegisterRequestValidationError
- func (e TelephoneRegisterRequestValidationError) Cause() error
- func (e TelephoneRegisterRequestValidationError) Error() string
- func (e TelephoneRegisterRequestValidationError) ErrorName() string
- func (e TelephoneRegisterRequestValidationError) Field() string
- func (e TelephoneRegisterRequestValidationError) Key() bool
- func (e TelephoneRegisterRequestValidationError) Reason() string
- type TelephoneResetPasswordRequest
- func (*TelephoneResetPasswordRequest) Descriptor() ([]byte, []int)deprecated
- func (x *TelephoneResetPasswordRequest) GetCaptchaCode() string
- func (x *TelephoneResetPasswordRequest) GetCaptchaId() string
- func (x *TelephoneResetPasswordRequest) GetCfToken() string
- func (x *TelephoneResetPasswordRequest) GetCode() string
- func (x *TelephoneResetPasswordRequest) GetIdentifier() string
- func (x *TelephoneResetPasswordRequest) GetIp() string
- func (x *TelephoneResetPasswordRequest) GetLoginType() string
- func (x *TelephoneResetPasswordRequest) GetPassword() string
- func (x *TelephoneResetPasswordRequest) GetSliderToken() string
- func (x *TelephoneResetPasswordRequest) GetTelephone() string
- func (x *TelephoneResetPasswordRequest) GetTelephoneAreaCode() string
- func (x *TelephoneResetPasswordRequest) GetUserAgent() 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 UnimplementedAuthServer
- func (UnimplementedAuthServer) AdminGenerateCaptcha(context.Context, *emptypb.Empty) (*GenerateCaptchaReply, error)
- func (UnimplementedAuthServer) AdminLogin(context.Context, *UserLoginRequest) (*LoginReply, error)
- func (UnimplementedAuthServer) AdminResetPassword(context.Context, *ResetPasswordRequest) (*LoginReply, error)
- func (UnimplementedAuthServer) AdminVerifySliderCaptcha(context.Context, *VerifySliderCaptchaRequest) (*VerifySliderCaptchaReply, error)
- func (UnimplementedAuthServer) CheckUser(context.Context, *CheckUserRequest) (*CheckUserReply, error)
- func (UnimplementedAuthServer) CheckUserTelephone(context.Context, *CheckUserTelephoneRequest) (*CheckUserTelephoneReply, error)
- func (UnimplementedAuthServer) DeviceLogin(context.Context, *DeviceLoginRequest) (*LoginReply, error)
- func (UnimplementedAuthServer) GenerateCaptcha(context.Context, *emptypb.Empty) (*GenerateCaptchaReply, error)
- func (UnimplementedAuthServer) ResetPassword(context.Context, *ResetPasswordRequest) (*LoginReply, error)
- func (UnimplementedAuthServer) TelephoneLogin(context.Context, *TelephoneLoginRequest) (*LoginReply, error)
- func (UnimplementedAuthServer) TelephoneRegister(context.Context, *TelephoneRegisterRequest) (*LoginReply, error)
- func (UnimplementedAuthServer) TelephoneResetPassword(context.Context, *TelephoneResetPasswordRequest) (*LoginReply, error)
- func (UnimplementedAuthServer) UserLogin(context.Context, *UserLoginRequest) (*LoginReply, error)
- func (UnimplementedAuthServer) UserRegister(context.Context, *UserRegisterRequest) (*LoginReply, error)
- func (UnimplementedAuthServer) VerifySliderCaptcha(context.Context, *VerifySliderCaptchaRequest) (*VerifySliderCaptchaReply, error)
- type UnsafeAuthServer
- type UserLoginRequest
- func (*UserLoginRequest) Descriptor() ([]byte, []int)deprecated
- func (x *UserLoginRequest) GetCaptchaCode() string
- func (x *UserLoginRequest) GetCaptchaId() string
- func (x *UserLoginRequest) GetCfToken() string
- func (x *UserLoginRequest) GetEmail() string
- func (x *UserLoginRequest) GetIdentifier() string
- func (x *UserLoginRequest) GetIp() string
- func (x *UserLoginRequest) GetLoginType() string
- func (x *UserLoginRequest) GetPassword() string
- func (x *UserLoginRequest) GetSliderToken() string
- func (x *UserLoginRequest) GetUserAgent() 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 UserRegisterRequest
- func (*UserRegisterRequest) Descriptor() ([]byte, []int)deprecated
- func (x *UserRegisterRequest) GetCaptchaCode() string
- func (x *UserRegisterRequest) GetCaptchaId() string
- func (x *UserRegisterRequest) GetCfToken() string
- func (x *UserRegisterRequest) GetCode() string
- func (x *UserRegisterRequest) GetEmail() string
- func (x *UserRegisterRequest) GetIdentifier() string
- func (x *UserRegisterRequest) GetInvite() string
- func (x *UserRegisterRequest) GetIp() string
- func (x *UserRegisterRequest) GetLoginType() string
- func (x *UserRegisterRequest) GetPassword() string
- func (x *UserRegisterRequest) GetSliderToken() string
- func (x *UserRegisterRequest) GetUserAgent() 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
- type VerifySliderCaptchaReply
- func (*VerifySliderCaptchaReply) Descriptor() ([]byte, []int)deprecated
- func (x *VerifySliderCaptchaReply) GetToken() string
- func (*VerifySliderCaptchaReply) ProtoMessage()
- func (x *VerifySliderCaptchaReply) ProtoReflect() protoreflect.Message
- func (x *VerifySliderCaptchaReply) Reset()
- func (x *VerifySliderCaptchaReply) String() string
- func (m *VerifySliderCaptchaReply) Validate() error
- func (m *VerifySliderCaptchaReply) ValidateAll() error
- type VerifySliderCaptchaReplyMultiError
- type VerifySliderCaptchaReplyValidationError
- func (e VerifySliderCaptchaReplyValidationError) Cause() error
- func (e VerifySliderCaptchaReplyValidationError) Error() string
- func (e VerifySliderCaptchaReplyValidationError) ErrorName() string
- func (e VerifySliderCaptchaReplyValidationError) Field() string
- func (e VerifySliderCaptchaReplyValidationError) Key() bool
- func (e VerifySliderCaptchaReplyValidationError) Reason() string
- type VerifySliderCaptchaRequest
- func (*VerifySliderCaptchaRequest) Descriptor() ([]byte, []int)deprecated
- func (x *VerifySliderCaptchaRequest) GetId() string
- func (x *VerifySliderCaptchaRequest) GetTrail() string
- func (x *VerifySliderCaptchaRequest) GetX() int32
- func (x *VerifySliderCaptchaRequest) GetY() int32
- func (*VerifySliderCaptchaRequest) ProtoMessage()
- func (x *VerifySliderCaptchaRequest) ProtoReflect() protoreflect.Message
- func (x *VerifySliderCaptchaRequest) Reset()
- func (x *VerifySliderCaptchaRequest) String() string
- func (m *VerifySliderCaptchaRequest) Validate() error
- func (m *VerifySliderCaptchaRequest) ValidateAll() error
- type VerifySliderCaptchaRequestMultiError
- type VerifySliderCaptchaRequestValidationError
- func (e VerifySliderCaptchaRequestValidationError) Cause() error
- func (e VerifySliderCaptchaRequestValidationError) Error() string
- func (e VerifySliderCaptchaRequestValidationError) ErrorName() string
- func (e VerifySliderCaptchaRequestValidationError) Field() string
- func (e VerifySliderCaptchaRequestValidationError) Key() bool
- func (e VerifySliderCaptchaRequestValidationError) Reason() string
Constants ¶
const ( Auth_CheckUser_FullMethodName = "/api.public.auth.v1.Auth/CheckUser" Auth_CheckUserTelephone_FullMethodName = "/api.public.auth.v1.Auth/CheckUserTelephone" Auth_UserLogin_FullMethodName = "/api.public.auth.v1.Auth/UserLogin" Auth_TelephoneLogin_FullMethodName = "/api.public.auth.v1.Auth/TelephoneLogin" Auth_UserRegister_FullMethodName = "/api.public.auth.v1.Auth/UserRegister" Auth_TelephoneRegister_FullMethodName = "/api.public.auth.v1.Auth/TelephoneRegister" Auth_ResetPassword_FullMethodName = "/api.public.auth.v1.Auth/ResetPassword" Auth_TelephoneResetPassword_FullMethodName = "/api.public.auth.v1.Auth/TelephoneResetPassword" Auth_GenerateCaptcha_FullMethodName = "/api.public.auth.v1.Auth/GenerateCaptcha" Auth_VerifySliderCaptcha_FullMethodName = "/api.public.auth.v1.Auth/VerifySliderCaptcha" Auth_AdminGenerateCaptcha_FullMethodName = "/api.public.auth.v1.Auth/AdminGenerateCaptcha" Auth_AdminVerifySliderCaptcha_FullMethodName = "/api.public.auth.v1.Auth/AdminVerifySliderCaptcha" Auth_AdminLogin_FullMethodName = "/api.public.auth.v1.Auth/AdminLogin" Auth_AdminResetPassword_FullMethodName = "/api.public.auth.v1.Auth/AdminResetPassword" Auth_DeviceLogin_FullMethodName = "/api.public.auth.v1.Auth/DeviceLogin" )
const OperationAuthAdminGenerateCaptcha = "/api.public.auth.v1.Auth/AdminGenerateCaptcha"
const OperationAuthAdminLogin = "/api.public.auth.v1.Auth/AdminLogin"
const OperationAuthAdminResetPassword = "/api.public.auth.v1.Auth/AdminResetPassword"
const OperationAuthAdminVerifySliderCaptcha = "/api.public.auth.v1.Auth/AdminVerifySliderCaptcha"
const OperationAuthCheckUser = "/api.public.auth.v1.Auth/CheckUser"
const OperationAuthCheckUserTelephone = "/api.public.auth.v1.Auth/CheckUserTelephone"
const OperationAuthDeviceLogin = "/api.public.auth.v1.Auth/DeviceLogin"
const OperationAuthGenerateCaptcha = "/api.public.auth.v1.Auth/GenerateCaptcha"
const OperationAuthResetPassword = "/api.public.auth.v1.Auth/ResetPassword"
const OperationAuthTelephoneLogin = "/api.public.auth.v1.Auth/TelephoneLogin"
const OperationAuthTelephoneRegister = "/api.public.auth.v1.Auth/TelephoneRegister"
const OperationAuthTelephoneResetPassword = "/api.public.auth.v1.Auth/TelephoneResetPassword"
const OperationAuthUserLogin = "/api.public.auth.v1.Auth/UserLogin"
const OperationAuthUserRegister = "/api.public.auth.v1.Auth/UserRegister"
const OperationAuthVerifySliderCaptcha = "/api.public.auth.v1.Auth/VerifySliderCaptcha"
Variables ¶
var Auth_ServiceDesc = grpc.ServiceDesc{ ServiceName: "api.public.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: "TelephoneLogin", Handler: _Auth_TelephoneLogin_Handler, }, { MethodName: "UserRegister", Handler: _Auth_UserRegister_Handler, }, { MethodName: "TelephoneRegister", Handler: _Auth_TelephoneRegister_Handler, }, { MethodName: "ResetPassword", Handler: _Auth_ResetPassword_Handler, }, { MethodName: "TelephoneResetPassword", Handler: _Auth_TelephoneResetPassword_Handler, }, { MethodName: "GenerateCaptcha", Handler: _Auth_GenerateCaptcha_Handler, }, { MethodName: "VerifySliderCaptcha", Handler: _Auth_VerifySliderCaptcha_Handler, }, { MethodName: "AdminGenerateCaptcha", Handler: _Auth_AdminGenerateCaptcha_Handler, }, { MethodName: "AdminVerifySliderCaptcha", Handler: _Auth_AdminVerifySliderCaptcha_Handler, }, { MethodName: "AdminLogin", Handler: _Auth_AdminLogin_Handler, }, { MethodName: "AdminResetPassword", Handler: _Auth_AdminResetPassword_Handler, }, { MethodName: "DeviceLogin", Handler: _Auth_DeviceLogin_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "public/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_public_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 {
// CheckUser checks if user email exists
CheckUser(ctx context.Context, in *CheckUserRequest, opts ...grpc.CallOption) (*CheckUserReply, error)
// CheckUserTelephone checks if user telephone exists
CheckUserTelephone(ctx context.Context, in *CheckUserTelephoneRequest, opts ...grpc.CallOption) (*CheckUserTelephoneReply, error)
// UserLogin logs in user with email and password
UserLogin(ctx context.Context, in *UserLoginRequest, opts ...grpc.CallOption) (*LoginReply, error)
// TelephoneLogin logs in user with telephone and password or code
TelephoneLogin(ctx context.Context, in *TelephoneLoginRequest, opts ...grpc.CallOption) (*LoginReply, error)
// UserRegister registers a new user with email
UserRegister(ctx context.Context, in *UserRegisterRequest, opts ...grpc.CallOption) (*LoginReply, error)
// TelephoneRegister registers a new user with telephone
TelephoneRegister(ctx context.Context, in *TelephoneRegisterRequest, opts ...grpc.CallOption) (*LoginReply, error)
// ResetPassword resets user password with email
ResetPassword(ctx context.Context, in *ResetPasswordRequest, opts ...grpc.CallOption) (*LoginReply, error)
// TelephoneResetPassword resets user password with telephone
TelephoneResetPassword(ctx context.Context, in *TelephoneResetPasswordRequest, opts ...grpc.CallOption) (*LoginReply, error)
// GenerateCaptcha generates captcha data
GenerateCaptcha(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*GenerateCaptchaReply, error)
// VerifySliderCaptcha verifies slider captcha
VerifySliderCaptcha(ctx context.Context, in *VerifySliderCaptchaRequest, opts ...grpc.CallOption) (*VerifySliderCaptchaReply, error)
// AdminGenerateCaptcha generates admin captcha data
AdminGenerateCaptcha(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*GenerateCaptchaReply, error)
// AdminVerifySliderCaptcha verifies admin slider captcha
AdminVerifySliderCaptcha(ctx context.Context, in *VerifySliderCaptchaRequest, opts ...grpc.CallOption) (*VerifySliderCaptchaReply, error)
// AdminLogin logs in admin with email and password
AdminLogin(ctx context.Context, in *UserLoginRequest, opts ...grpc.CallOption) (*LoginReply, error)
// AdminResetPassword resets admin password with email
AdminResetPassword(ctx context.Context, in *ResetPasswordRequest, opts ...grpc.CallOption) (*LoginReply, error)
// DeviceLogin logs in user with device identifier
DeviceLogin(ctx context.Context, in *DeviceLoginRequest, opts ...grpc.CallOption) (*LoginReply, 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.
func NewAuthClient ¶
func NewAuthClient(cc grpc.ClientConnInterface) AuthClient
type AuthHTTPClient ¶
type AuthHTTPClient interface {
// AdminGenerateCaptcha AdminGenerateCaptcha generates admin captcha data
AdminGenerateCaptcha(ctx context.Context, req *emptypb.Empty, opts ...http.CallOption) (rsp *GenerateCaptchaReply, err error)
// AdminLogin AdminLogin logs in admin with email and password
AdminLogin(ctx context.Context, req *UserLoginRequest, opts ...http.CallOption) (rsp *LoginReply, err error)
// AdminResetPassword AdminResetPassword resets admin password with email
AdminResetPassword(ctx context.Context, req *ResetPasswordRequest, opts ...http.CallOption) (rsp *LoginReply, err error)
// AdminVerifySliderCaptcha AdminVerifySliderCaptcha verifies admin slider captcha
AdminVerifySliderCaptcha(ctx context.Context, req *VerifySliderCaptchaRequest, opts ...http.CallOption) (rsp *VerifySliderCaptchaReply, err error)
// CheckUser CheckUser checks if user email exists
CheckUser(ctx context.Context, req *CheckUserRequest, opts ...http.CallOption) (rsp *CheckUserReply, err error)
// CheckUserTelephone CheckUserTelephone checks if user telephone exists
CheckUserTelephone(ctx context.Context, req *CheckUserTelephoneRequest, opts ...http.CallOption) (rsp *CheckUserTelephoneReply, err error)
// DeviceLogin DeviceLogin logs in user with device identifier
DeviceLogin(ctx context.Context, req *DeviceLoginRequest, opts ...http.CallOption) (rsp *LoginReply, err error)
// GenerateCaptcha GenerateCaptcha generates captcha data
GenerateCaptcha(ctx context.Context, req *emptypb.Empty, opts ...http.CallOption) (rsp *GenerateCaptchaReply, err error)
// ResetPassword ResetPassword resets user password with email
ResetPassword(ctx context.Context, req *ResetPasswordRequest, opts ...http.CallOption) (rsp *LoginReply, err error)
// TelephoneLogin TelephoneLogin logs in user with telephone and password or code
TelephoneLogin(ctx context.Context, req *TelephoneLoginRequest, opts ...http.CallOption) (rsp *LoginReply, err error)
// TelephoneRegister TelephoneRegister registers a new user with telephone
TelephoneRegister(ctx context.Context, req *TelephoneRegisterRequest, opts ...http.CallOption) (rsp *LoginReply, err error)
// TelephoneResetPassword TelephoneResetPassword resets user password with telephone
TelephoneResetPassword(ctx context.Context, req *TelephoneResetPasswordRequest, opts ...http.CallOption) (rsp *LoginReply, err error)
// UserLogin UserLogin logs in user with email and password
UserLogin(ctx context.Context, req *UserLoginRequest, opts ...http.CallOption) (rsp *LoginReply, err error)
// UserRegister UserRegister registers a new user with email
UserRegister(ctx context.Context, req *UserRegisterRequest, opts ...http.CallOption) (rsp *LoginReply, err error)
// VerifySliderCaptcha VerifySliderCaptcha verifies slider captcha
VerifySliderCaptcha(ctx context.Context, req *VerifySliderCaptchaRequest, opts ...http.CallOption) (rsp *VerifySliderCaptchaReply, err error)
}
func NewAuthHTTPClient ¶
func NewAuthHTTPClient(client *http.Client) AuthHTTPClient
type AuthHTTPClientImpl ¶
type AuthHTTPClientImpl struct {
// contains filtered or unexported fields
}
func (*AuthHTTPClientImpl) AdminGenerateCaptcha ¶
func (c *AuthHTTPClientImpl) AdminGenerateCaptcha(ctx context.Context, in *emptypb.Empty, opts ...http.CallOption) (*GenerateCaptchaReply, error)
AdminGenerateCaptcha AdminGenerateCaptcha generates admin captcha data
func (*AuthHTTPClientImpl) AdminLogin ¶
func (c *AuthHTTPClientImpl) AdminLogin(ctx context.Context, in *UserLoginRequest, opts ...http.CallOption) (*LoginReply, error)
AdminLogin AdminLogin logs in admin with email and password
func (*AuthHTTPClientImpl) AdminResetPassword ¶
func (c *AuthHTTPClientImpl) AdminResetPassword(ctx context.Context, in *ResetPasswordRequest, opts ...http.CallOption) (*LoginReply, error)
AdminResetPassword AdminResetPassword resets admin password with email
func (*AuthHTTPClientImpl) AdminVerifySliderCaptcha ¶
func (c *AuthHTTPClientImpl) AdminVerifySliderCaptcha(ctx context.Context, in *VerifySliderCaptchaRequest, opts ...http.CallOption) (*VerifySliderCaptchaReply, error)
AdminVerifySliderCaptcha AdminVerifySliderCaptcha verifies admin slider captcha
func (*AuthHTTPClientImpl) CheckUser ¶
func (c *AuthHTTPClientImpl) CheckUser(ctx context.Context, in *CheckUserRequest, opts ...http.CallOption) (*CheckUserReply, error)
CheckUser CheckUser checks if user email exists
func (*AuthHTTPClientImpl) CheckUserTelephone ¶
func (c *AuthHTTPClientImpl) CheckUserTelephone(ctx context.Context, in *CheckUserTelephoneRequest, opts ...http.CallOption) (*CheckUserTelephoneReply, error)
CheckUserTelephone CheckUserTelephone checks if user telephone exists
func (*AuthHTTPClientImpl) DeviceLogin ¶
func (c *AuthHTTPClientImpl) DeviceLogin(ctx context.Context, in *DeviceLoginRequest, opts ...http.CallOption) (*LoginReply, error)
DeviceLogin DeviceLogin logs in user with device identifier
func (*AuthHTTPClientImpl) GenerateCaptcha ¶
func (c *AuthHTTPClientImpl) GenerateCaptcha(ctx context.Context, in *emptypb.Empty, opts ...http.CallOption) (*GenerateCaptchaReply, error)
GenerateCaptcha GenerateCaptcha generates captcha data
func (*AuthHTTPClientImpl) ResetPassword ¶
func (c *AuthHTTPClientImpl) ResetPassword(ctx context.Context, in *ResetPasswordRequest, opts ...http.CallOption) (*LoginReply, error)
ResetPassword ResetPassword resets user password with email
func (*AuthHTTPClientImpl) TelephoneLogin ¶
func (c *AuthHTTPClientImpl) TelephoneLogin(ctx context.Context, in *TelephoneLoginRequest, opts ...http.CallOption) (*LoginReply, error)
TelephoneLogin TelephoneLogin logs in user with telephone and password or code
func (*AuthHTTPClientImpl) TelephoneRegister ¶
func (c *AuthHTTPClientImpl) TelephoneRegister(ctx context.Context, in *TelephoneRegisterRequest, opts ...http.CallOption) (*LoginReply, error)
TelephoneRegister TelephoneRegister registers a new user with telephone
func (*AuthHTTPClientImpl) TelephoneResetPassword ¶
func (c *AuthHTTPClientImpl) TelephoneResetPassword(ctx context.Context, in *TelephoneResetPasswordRequest, opts ...http.CallOption) (*LoginReply, error)
TelephoneResetPassword TelephoneResetPassword resets user password with telephone
func (*AuthHTTPClientImpl) UserLogin ¶
func (c *AuthHTTPClientImpl) UserLogin(ctx context.Context, in *UserLoginRequest, opts ...http.CallOption) (*LoginReply, error)
UserLogin UserLogin logs in user with email and password
func (*AuthHTTPClientImpl) UserRegister ¶
func (c *AuthHTTPClientImpl) UserRegister(ctx context.Context, in *UserRegisterRequest, opts ...http.CallOption) (*LoginReply, error)
UserRegister UserRegister registers a new user with email
func (*AuthHTTPClientImpl) VerifySliderCaptcha ¶
func (c *AuthHTTPClientImpl) VerifySliderCaptcha(ctx context.Context, in *VerifySliderCaptchaRequest, opts ...http.CallOption) (*VerifySliderCaptchaReply, error)
VerifySliderCaptcha VerifySliderCaptcha verifies slider captcha
type AuthHTTPServer ¶
type AuthHTTPServer interface {
// AdminGenerateCaptcha AdminGenerateCaptcha generates admin captcha data
AdminGenerateCaptcha(context.Context, *emptypb.Empty) (*GenerateCaptchaReply, error)
// AdminLogin AdminLogin logs in admin with email and password
AdminLogin(context.Context, *UserLoginRequest) (*LoginReply, error)
// AdminResetPassword AdminResetPassword resets admin password with email
AdminResetPassword(context.Context, *ResetPasswordRequest) (*LoginReply, error)
// AdminVerifySliderCaptcha AdminVerifySliderCaptcha verifies admin slider captcha
AdminVerifySliderCaptcha(context.Context, *VerifySliderCaptchaRequest) (*VerifySliderCaptchaReply, error)
// CheckUser CheckUser checks if user email exists
CheckUser(context.Context, *CheckUserRequest) (*CheckUserReply, error)
// CheckUserTelephone CheckUserTelephone checks if user telephone exists
CheckUserTelephone(context.Context, *CheckUserTelephoneRequest) (*CheckUserTelephoneReply, error)
// DeviceLogin DeviceLogin logs in user with device identifier
DeviceLogin(context.Context, *DeviceLoginRequest) (*LoginReply, error)
// GenerateCaptcha GenerateCaptcha generates captcha data
GenerateCaptcha(context.Context, *emptypb.Empty) (*GenerateCaptchaReply, error)
// ResetPassword ResetPassword resets user password with email
ResetPassword(context.Context, *ResetPasswordRequest) (*LoginReply, error)
// TelephoneLogin TelephoneLogin logs in user with telephone and password or code
TelephoneLogin(context.Context, *TelephoneLoginRequest) (*LoginReply, error)
// TelephoneRegister TelephoneRegister registers a new user with telephone
TelephoneRegister(context.Context, *TelephoneRegisterRequest) (*LoginReply, error)
// TelephoneResetPassword TelephoneResetPassword resets user password with telephone
TelephoneResetPassword(context.Context, *TelephoneResetPasswordRequest) (*LoginReply, error)
// UserLogin UserLogin logs in user with email and password
UserLogin(context.Context, *UserLoginRequest) (*LoginReply, error)
// UserRegister UserRegister registers a new user with email
UserRegister(context.Context, *UserRegisterRequest) (*LoginReply, error)
// VerifySliderCaptcha VerifySliderCaptcha verifies slider captcha
VerifySliderCaptcha(context.Context, *VerifySliderCaptchaRequest) (*VerifySliderCaptchaReply, error)
}
type AuthServer ¶
type AuthServer interface {
// CheckUser checks if user email exists
CheckUser(context.Context, *CheckUserRequest) (*CheckUserReply, error)
// CheckUserTelephone checks if user telephone exists
CheckUserTelephone(context.Context, *CheckUserTelephoneRequest) (*CheckUserTelephoneReply, error)
// UserLogin logs in user with email and password
UserLogin(context.Context, *UserLoginRequest) (*LoginReply, error)
// TelephoneLogin logs in user with telephone and password or code
TelephoneLogin(context.Context, *TelephoneLoginRequest) (*LoginReply, error)
// UserRegister registers a new user with email
UserRegister(context.Context, *UserRegisterRequest) (*LoginReply, error)
// TelephoneRegister registers a new user with telephone
TelephoneRegister(context.Context, *TelephoneRegisterRequest) (*LoginReply, error)
// ResetPassword resets user password with email
ResetPassword(context.Context, *ResetPasswordRequest) (*LoginReply, error)
// TelephoneResetPassword resets user password with telephone
TelephoneResetPassword(context.Context, *TelephoneResetPasswordRequest) (*LoginReply, error)
// GenerateCaptcha generates captcha data
GenerateCaptcha(context.Context, *emptypb.Empty) (*GenerateCaptchaReply, error)
// VerifySliderCaptcha verifies slider captcha
VerifySliderCaptcha(context.Context, *VerifySliderCaptchaRequest) (*VerifySliderCaptchaReply, error)
// AdminGenerateCaptcha generates admin captcha data
AdminGenerateCaptcha(context.Context, *emptypb.Empty) (*GenerateCaptchaReply, error)
// AdminVerifySliderCaptcha verifies admin slider captcha
AdminVerifySliderCaptcha(context.Context, *VerifySliderCaptchaRequest) (*VerifySliderCaptchaReply, error)
// AdminLogin logs in admin with email and password
AdminLogin(context.Context, *UserLoginRequest) (*LoginReply, error)
// AdminResetPassword resets admin password with email
AdminResetPassword(context.Context, *ResetPasswordRequest) (*LoginReply, error)
// DeviceLogin logs in user with device identifier
DeviceLogin(context.Context, *DeviceLoginRequest) (*LoginReply, error)
// contains filtered or unexported methods
}
AuthServer is the server API for Auth service. All implementations must embed UnimplementedAuthServer for forward compatibility.
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"`
TelephoneAreaCode string `protobuf:"bytes,2,opt,name=telephone_area_code,json=telephoneAreaCode,proto3" json:"telephone_area_code,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) GetTelephoneAreaCode ¶
func (x *CheckUserTelephoneRequest) GetTelephoneAreaCode() 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 DeviceLoginRequest ¶
type DeviceLoginRequest struct {
Identifier string `protobuf:"bytes,1,opt,name=identifier,proto3" json:"identifier,omitempty"`
Ip string `protobuf:"bytes,2,opt,name=ip,proto3" json:"ip,omitempty"`
UserAgent string `protobuf:"bytes,3,opt,name=user_agent,json=userAgent,proto3" json:"user_agent,omitempty"`
CfToken string `protobuf:"bytes,4,opt,name=cf_token,json=cfToken,proto3" json:"cf_token,omitempty"`
ShortCode string `protobuf:"bytes,5,opt,name=short_code,json=shortCode,proto3" json:"short_code,omitempty"`
// contains filtered or unexported fields
}
func (*DeviceLoginRequest) Descriptor
deprecated
func (*DeviceLoginRequest) Descriptor() ([]byte, []int)
Deprecated: Use DeviceLoginRequest.ProtoReflect.Descriptor instead.
func (*DeviceLoginRequest) GetCfToken ¶
func (x *DeviceLoginRequest) GetCfToken() string
func (*DeviceLoginRequest) GetIdentifier ¶
func (x *DeviceLoginRequest) GetIdentifier() string
func (*DeviceLoginRequest) GetIp ¶
func (x *DeviceLoginRequest) GetIp() string
func (*DeviceLoginRequest) GetShortCode ¶
func (x *DeviceLoginRequest) GetShortCode() string
func (*DeviceLoginRequest) GetUserAgent ¶
func (x *DeviceLoginRequest) GetUserAgent() string
func (*DeviceLoginRequest) ProtoMessage ¶
func (*DeviceLoginRequest) ProtoMessage()
func (*DeviceLoginRequest) ProtoReflect ¶
func (x *DeviceLoginRequest) ProtoReflect() protoreflect.Message
func (*DeviceLoginRequest) Reset ¶
func (x *DeviceLoginRequest) Reset()
func (*DeviceLoginRequest) String ¶
func (x *DeviceLoginRequest) String() string
func (*DeviceLoginRequest) Validate ¶
func (m *DeviceLoginRequest) Validate() error
Validate checks the field values on DeviceLoginRequest 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 (*DeviceLoginRequest) ValidateAll ¶
func (m *DeviceLoginRequest) ValidateAll() error
ValidateAll checks the field values on DeviceLoginRequest 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 DeviceLoginRequestMultiError, or nil if none found.
type DeviceLoginRequestMultiError ¶
type DeviceLoginRequestMultiError []error
DeviceLoginRequestMultiError is an error wrapping multiple validation errors returned by DeviceLoginRequest.ValidateAll() if the designated constraints aren't met.
func (DeviceLoginRequestMultiError) AllErrors ¶
func (m DeviceLoginRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (DeviceLoginRequestMultiError) Error ¶
func (m DeviceLoginRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type DeviceLoginRequestValidationError ¶
type DeviceLoginRequestValidationError struct {
// contains filtered or unexported fields
}
DeviceLoginRequestValidationError is the validation error returned by DeviceLoginRequest.Validate if the designated constraints aren't met.
func (DeviceLoginRequestValidationError) Cause ¶
func (e DeviceLoginRequestValidationError) Cause() error
Cause function returns cause value.
func (DeviceLoginRequestValidationError) Error ¶
func (e DeviceLoginRequestValidationError) Error() string
Error satisfies the builtin error interface
func (DeviceLoginRequestValidationError) ErrorName ¶
func (e DeviceLoginRequestValidationError) ErrorName() string
ErrorName returns error name.
func (DeviceLoginRequestValidationError) Field ¶
func (e DeviceLoginRequestValidationError) Field() string
Field function returns field value.
func (DeviceLoginRequestValidationError) Key ¶
func (e DeviceLoginRequestValidationError) Key() bool
Key function returns key value.
func (DeviceLoginRequestValidationError) Reason ¶
func (e DeviceLoginRequestValidationError) Reason() string
Reason function returns reason value.
type GenerateCaptchaReply ¶
type GenerateCaptchaReply struct {
Type string `protobuf:"bytes,1,opt,name=type,proto3" json:"type,omitempty"`
Id string `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"`
Image string `protobuf:"bytes,3,opt,name=image,proto3" json:"image,omitempty"`
BlockImage string `protobuf:"bytes,4,opt,name=block_image,json=blockImage,proto3" json:"block_image,omitempty"`
// contains filtered or unexported fields
}
func (*GenerateCaptchaReply) Descriptor
deprecated
func (*GenerateCaptchaReply) Descriptor() ([]byte, []int)
Deprecated: Use GenerateCaptchaReply.ProtoReflect.Descriptor instead.
func (*GenerateCaptchaReply) GetBlockImage ¶
func (x *GenerateCaptchaReply) GetBlockImage() string
func (*GenerateCaptchaReply) GetId ¶
func (x *GenerateCaptchaReply) GetId() string
func (*GenerateCaptchaReply) GetImage ¶
func (x *GenerateCaptchaReply) GetImage() string
func (*GenerateCaptchaReply) GetType ¶
func (x *GenerateCaptchaReply) GetType() string
func (*GenerateCaptchaReply) ProtoMessage ¶
func (*GenerateCaptchaReply) ProtoMessage()
func (*GenerateCaptchaReply) ProtoReflect ¶
func (x *GenerateCaptchaReply) ProtoReflect() protoreflect.Message
func (*GenerateCaptchaReply) Reset ¶
func (x *GenerateCaptchaReply) Reset()
func (*GenerateCaptchaReply) String ¶
func (x *GenerateCaptchaReply) String() string
func (*GenerateCaptchaReply) Validate ¶
func (m *GenerateCaptchaReply) Validate() error
Validate checks the field values on GenerateCaptchaReply 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 (*GenerateCaptchaReply) ValidateAll ¶
func (m *GenerateCaptchaReply) ValidateAll() error
ValidateAll checks the field values on GenerateCaptchaReply 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 GenerateCaptchaReplyMultiError, or nil if none found.
type GenerateCaptchaReplyMultiError ¶
type GenerateCaptchaReplyMultiError []error
GenerateCaptchaReplyMultiError is an error wrapping multiple validation errors returned by GenerateCaptchaReply.ValidateAll() if the designated constraints aren't met.
func (GenerateCaptchaReplyMultiError) AllErrors ¶
func (m GenerateCaptchaReplyMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (GenerateCaptchaReplyMultiError) Error ¶
func (m GenerateCaptchaReplyMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type GenerateCaptchaReplyValidationError ¶
type GenerateCaptchaReplyValidationError struct {
// contains filtered or unexported fields
}
GenerateCaptchaReplyValidationError is the validation error returned by GenerateCaptchaReply.Validate if the designated constraints aren't met.
func (GenerateCaptchaReplyValidationError) Cause ¶
func (e GenerateCaptchaReplyValidationError) Cause() error
Cause function returns cause value.
func (GenerateCaptchaReplyValidationError) Error ¶
func (e GenerateCaptchaReplyValidationError) Error() string
Error satisfies the builtin error interface
func (GenerateCaptchaReplyValidationError) ErrorName ¶
func (e GenerateCaptchaReplyValidationError) ErrorName() string
ErrorName returns error name.
func (GenerateCaptchaReplyValidationError) Field ¶
func (e GenerateCaptchaReplyValidationError) Field() string
Field function returns field value.
func (GenerateCaptchaReplyValidationError) Key ¶
func (e GenerateCaptchaReplyValidationError) Key() bool
Key function returns key value.
func (GenerateCaptchaReplyValidationError) Reason ¶
func (e GenerateCaptchaReplyValidationError) Reason() string
Reason function returns reason value.
type LoginReply ¶
type LoginReply struct {
Token string `protobuf:"bytes,1,opt,name=token,proto3" json:"token,omitempty"`
// contains filtered or unexported fields
}
LoginReply 登录响应
func (*LoginReply) Descriptor
deprecated
func (*LoginReply) Descriptor() ([]byte, []int)
Deprecated: Use LoginReply.ProtoReflect.Descriptor instead.
func (*LoginReply) GetToken ¶
func (x *LoginReply) GetToken() string
func (*LoginReply) ProtoMessage ¶
func (*LoginReply) ProtoMessage()
func (*LoginReply) ProtoReflect ¶
func (x *LoginReply) ProtoReflect() protoreflect.Message
func (*LoginReply) Reset ¶
func (x *LoginReply) Reset()
func (*LoginReply) String ¶
func (x *LoginReply) String() string
func (*LoginReply) Validate ¶
func (m *LoginReply) Validate() error
Validate checks the field values on LoginReply 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 (*LoginReply) ValidateAll ¶
func (m *LoginReply) ValidateAll() error
ValidateAll checks the field values on LoginReply 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 LoginReplyMultiError, or nil if none found.
type LoginReplyMultiError ¶
type LoginReplyMultiError []error
LoginReplyMultiError is an error wrapping multiple validation errors returned by LoginReply.ValidateAll() if the designated constraints aren't met.
func (LoginReplyMultiError) AllErrors ¶
func (m LoginReplyMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (LoginReplyMultiError) Error ¶
func (m LoginReplyMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type LoginReplyValidationError ¶
type LoginReplyValidationError struct {
// contains filtered or unexported fields
}
LoginReplyValidationError is the validation error returned by LoginReply.Validate if the designated constraints aren't met.
func (LoginReplyValidationError) Cause ¶
func (e LoginReplyValidationError) Cause() error
Cause function returns cause value.
func (LoginReplyValidationError) Error ¶
func (e LoginReplyValidationError) Error() string
Error satisfies the builtin error interface
func (LoginReplyValidationError) ErrorName ¶
func (e LoginReplyValidationError) ErrorName() string
ErrorName returns error name.
func (LoginReplyValidationError) Field ¶
func (e LoginReplyValidationError) Field() string
Field function returns field value.
func (LoginReplyValidationError) Key ¶
func (e LoginReplyValidationError) Key() bool
Key function returns key value.
func (LoginReplyValidationError) Reason ¶
func (e LoginReplyValidationError) Reason() string
Reason function returns reason value.
type ResetPasswordRequest ¶
type ResetPasswordRequest 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"`
Code string `protobuf:"bytes,3,opt,name=code,proto3" json:"code,omitempty"` // Email verification code (required)
CfToken string `protobuf:"bytes,4,opt,name=cf_token,json=cfToken,proto3" json:"cf_token,omitempty"` // Cloudflare turnstile token (optional)
Ip string `protobuf:"bytes,5,opt,name=ip,proto3" json:"ip,omitempty"` // X-Original-Forwarded-For header
UserAgent string `protobuf:"bytes,6,opt,name=user_agent,json=userAgent,proto3" json:"user_agent,omitempty"` // User-Agent header
Identifier string `protobuf:"bytes,7,opt,name=identifier,proto3" json:"identifier,omitempty"` // Device identifier
LoginType string `protobuf:"bytes,8,opt,name=login_type,json=loginType,proto3" json:"login_type,omitempty"` // Login-Type header fallback
CaptchaId string `protobuf:"bytes,9,opt,name=captcha_id,json=captchaId,proto3" json:"captcha_id,omitempty"` // Reserved for local captcha compatibility
CaptchaCode string `protobuf:"bytes,10,opt,name=captcha_code,json=captchaCode,proto3" json:"captcha_code,omitempty"`
SliderToken string `protobuf:"bytes,11,opt,name=slider_token,json=sliderToken,proto3" json:"slider_token,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) GetCaptchaCode ¶
func (x *ResetPasswordRequest) GetCaptchaCode() string
func (*ResetPasswordRequest) GetCaptchaId ¶
func (x *ResetPasswordRequest) GetCaptchaId() string
func (*ResetPasswordRequest) GetCfToken ¶
func (x *ResetPasswordRequest) GetCfToken() string
func (*ResetPasswordRequest) GetCode ¶
func (x *ResetPasswordRequest) GetCode() string
func (*ResetPasswordRequest) GetEmail ¶
func (x *ResetPasswordRequest) GetEmail() string
func (*ResetPasswordRequest) GetIdentifier ¶
func (x *ResetPasswordRequest) GetIdentifier() string
func (*ResetPasswordRequest) GetIp ¶
func (x *ResetPasswordRequest) GetIp() string
func (*ResetPasswordRequest) GetLoginType ¶
func (x *ResetPasswordRequest) GetLoginType() string
func (*ResetPasswordRequest) GetPassword ¶
func (x *ResetPasswordRequest) GetPassword() string
func (*ResetPasswordRequest) GetSliderToken ¶
func (x *ResetPasswordRequest) GetSliderToken() string
func (*ResetPasswordRequest) GetUserAgent ¶
func (x *ResetPasswordRequest) GetUserAgent() 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 TelephoneLoginRequest ¶
type TelephoneLoginRequest struct {
Telephone string `protobuf:"bytes,1,opt,name=telephone,proto3" json:"telephone,omitempty"`
TelephoneAreaCode string `protobuf:"bytes,2,opt,name=telephone_area_code,json=telephoneAreaCode,proto3" json:"telephone_area_code,omitempty"`
Password string `protobuf:"bytes,3,opt,name=password,proto3" json:"password,omitempty"` // Either password or telephone_code is required
TelephoneCode string `protobuf:"bytes,4,opt,name=telephone_code,json=telephoneCode,proto3" json:"telephone_code,omitempty"` // Either password or telephone_code is required
CfToken string `protobuf:"bytes,5,opt,name=cf_token,json=cfToken,proto3" json:"cf_token,omitempty"` // Cloudflare turnstile token (optional)
Ip string `protobuf:"bytes,6,opt,name=ip,proto3" json:"ip,omitempty"` // X-Original-Forwarded-For header
UserAgent string `protobuf:"bytes,7,opt,name=user_agent,json=userAgent,proto3" json:"user_agent,omitempty"` // User-Agent header
Identifier string `protobuf:"bytes,8,opt,name=identifier,proto3" json:"identifier,omitempty"` // Device identifier
LoginType string `protobuf:"bytes,9,opt,name=login_type,json=loginType,proto3" json:"login_type,omitempty"` // Login-Type header fallback
CaptchaId string `protobuf:"bytes,10,opt,name=captcha_id,json=captchaId,proto3" json:"captcha_id,omitempty"` // Reserved for local captcha compatibility
CaptchaCode string `protobuf:"bytes,11,opt,name=captcha_code,json=captchaCode,proto3" json:"captcha_code,omitempty"`
SliderToken string `protobuf:"bytes,12,opt,name=slider_token,json=sliderToken,proto3" json:"slider_token,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) GetCaptchaCode ¶
func (x *TelephoneLoginRequest) GetCaptchaCode() string
func (*TelephoneLoginRequest) GetCaptchaId ¶
func (x *TelephoneLoginRequest) GetCaptchaId() string
func (*TelephoneLoginRequest) GetCfToken ¶
func (x *TelephoneLoginRequest) GetCfToken() string
func (*TelephoneLoginRequest) GetIdentifier ¶
func (x *TelephoneLoginRequest) GetIdentifier() string
func (*TelephoneLoginRequest) GetIp ¶
func (x *TelephoneLoginRequest) GetIp() string
func (*TelephoneLoginRequest) GetLoginType ¶
func (x *TelephoneLoginRequest) GetLoginType() string
func (*TelephoneLoginRequest) GetPassword ¶
func (x *TelephoneLoginRequest) GetPassword() string
func (*TelephoneLoginRequest) GetSliderToken ¶
func (x *TelephoneLoginRequest) GetSliderToken() string
func (*TelephoneLoginRequest) GetTelephone ¶
func (x *TelephoneLoginRequest) GetTelephone() string
func (*TelephoneLoginRequest) GetTelephoneAreaCode ¶
func (x *TelephoneLoginRequest) GetTelephoneAreaCode() string
func (*TelephoneLoginRequest) GetTelephoneCode ¶
func (x *TelephoneLoginRequest) GetTelephoneCode() string
func (*TelephoneLoginRequest) GetUserAgent ¶
func (x *TelephoneLoginRequest) GetUserAgent() 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 TelephoneRegisterRequest ¶
type TelephoneRegisterRequest struct {
Telephone string `protobuf:"bytes,1,opt,name=telephone,proto3" json:"telephone,omitempty"`
TelephoneAreaCode string `protobuf:"bytes,2,opt,name=telephone_area_code,json=telephoneAreaCode,proto3" json:"telephone_area_code,omitempty"`
Password string `protobuf:"bytes,3,opt,name=password,proto3" json:"password,omitempty"`
Invite string `protobuf:"bytes,4,opt,name=invite,proto3" json:"invite,omitempty"` // Invite code (optional)
Code string `protobuf:"bytes,5,opt,name=code,proto3" json:"code,omitempty"` // SMS verification code (required)
CfToken string `protobuf:"bytes,6,opt,name=cf_token,json=cfToken,proto3" json:"cf_token,omitempty"` // Cloudflare turnstile token (optional)
Ip string `protobuf:"bytes,7,opt,name=ip,proto3" json:"ip,omitempty"` // X-Original-Forwarded-For header
UserAgent string `protobuf:"bytes,8,opt,name=user_agent,json=userAgent,proto3" json:"user_agent,omitempty"` // User-Agent header
Identifier string `protobuf:"bytes,9,opt,name=identifier,proto3" json:"identifier,omitempty"` // Device identifier
LoginType string `protobuf:"bytes,10,opt,name=login_type,json=loginType,proto3" json:"login_type,omitempty"` // Login-Type header fallback
CaptchaId string `protobuf:"bytes,11,opt,name=captcha_id,json=captchaId,proto3" json:"captcha_id,omitempty"` // Reserved for local captcha compatibility
CaptchaCode string `protobuf:"bytes,12,opt,name=captcha_code,json=captchaCode,proto3" json:"captcha_code,omitempty"`
SliderToken string `protobuf:"bytes,13,opt,name=slider_token,json=sliderToken,proto3" json:"slider_token,omitempty"`
// contains filtered or unexported fields
}
TelephoneRegister request
func (*TelephoneRegisterRequest) Descriptor
deprecated
func (*TelephoneRegisterRequest) Descriptor() ([]byte, []int)
Deprecated: Use TelephoneRegisterRequest.ProtoReflect.Descriptor instead.
func (*TelephoneRegisterRequest) GetCaptchaCode ¶
func (x *TelephoneRegisterRequest) GetCaptchaCode() string
func (*TelephoneRegisterRequest) GetCaptchaId ¶
func (x *TelephoneRegisterRequest) GetCaptchaId() string
func (*TelephoneRegisterRequest) GetCfToken ¶
func (x *TelephoneRegisterRequest) GetCfToken() string
func (*TelephoneRegisterRequest) GetCode ¶
func (x *TelephoneRegisterRequest) GetCode() string
func (*TelephoneRegisterRequest) GetIdentifier ¶
func (x *TelephoneRegisterRequest) GetIdentifier() string
func (*TelephoneRegisterRequest) GetInvite ¶
func (x *TelephoneRegisterRequest) GetInvite() string
func (*TelephoneRegisterRequest) GetIp ¶
func (x *TelephoneRegisterRequest) GetIp() string
func (*TelephoneRegisterRequest) GetLoginType ¶
func (x *TelephoneRegisterRequest) GetLoginType() string
func (*TelephoneRegisterRequest) GetPassword ¶
func (x *TelephoneRegisterRequest) GetPassword() string
func (*TelephoneRegisterRequest) GetSliderToken ¶
func (x *TelephoneRegisterRequest) GetSliderToken() string
func (*TelephoneRegisterRequest) GetTelephone ¶
func (x *TelephoneRegisterRequest) GetTelephone() string
func (*TelephoneRegisterRequest) GetTelephoneAreaCode ¶
func (x *TelephoneRegisterRequest) GetTelephoneAreaCode() string
func (*TelephoneRegisterRequest) GetUserAgent ¶
func (x *TelephoneRegisterRequest) GetUserAgent() string
func (*TelephoneRegisterRequest) ProtoMessage ¶
func (*TelephoneRegisterRequest) ProtoMessage()
func (*TelephoneRegisterRequest) ProtoReflect ¶
func (x *TelephoneRegisterRequest) ProtoReflect() protoreflect.Message
func (*TelephoneRegisterRequest) Reset ¶
func (x *TelephoneRegisterRequest) Reset()
func (*TelephoneRegisterRequest) String ¶
func (x *TelephoneRegisterRequest) String() string
func (*TelephoneRegisterRequest) Validate ¶
func (m *TelephoneRegisterRequest) Validate() error
Validate checks the field values on TelephoneRegisterRequest 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 (*TelephoneRegisterRequest) ValidateAll ¶
func (m *TelephoneRegisterRequest) ValidateAll() error
ValidateAll checks the field values on TelephoneRegisterRequest 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 TelephoneRegisterRequestMultiError, or nil if none found.
type TelephoneRegisterRequestMultiError ¶
type TelephoneRegisterRequestMultiError []error
TelephoneRegisterRequestMultiError is an error wrapping multiple validation errors returned by TelephoneRegisterRequest.ValidateAll() if the designated constraints aren't met.
func (TelephoneRegisterRequestMultiError) AllErrors ¶
func (m TelephoneRegisterRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (TelephoneRegisterRequestMultiError) Error ¶
func (m TelephoneRegisterRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type TelephoneRegisterRequestValidationError ¶
type TelephoneRegisterRequestValidationError struct {
// contains filtered or unexported fields
}
TelephoneRegisterRequestValidationError is the validation error returned by TelephoneRegisterRequest.Validate if the designated constraints aren't met.
func (TelephoneRegisterRequestValidationError) Cause ¶
func (e TelephoneRegisterRequestValidationError) Cause() error
Cause function returns cause value.
func (TelephoneRegisterRequestValidationError) Error ¶
func (e TelephoneRegisterRequestValidationError) Error() string
Error satisfies the builtin error interface
func (TelephoneRegisterRequestValidationError) ErrorName ¶
func (e TelephoneRegisterRequestValidationError) ErrorName() string
ErrorName returns error name.
func (TelephoneRegisterRequestValidationError) Field ¶
func (e TelephoneRegisterRequestValidationError) Field() string
Field function returns field value.
func (TelephoneRegisterRequestValidationError) Key ¶
func (e TelephoneRegisterRequestValidationError) Key() bool
Key function returns key value.
func (TelephoneRegisterRequestValidationError) Reason ¶
func (e TelephoneRegisterRequestValidationError) Reason() string
Reason function returns reason value.
type TelephoneResetPasswordRequest ¶
type TelephoneResetPasswordRequest struct {
Telephone string `protobuf:"bytes,1,opt,name=telephone,proto3" json:"telephone,omitempty"`
TelephoneAreaCode string `protobuf:"bytes,2,opt,name=telephone_area_code,json=telephoneAreaCode,proto3" json:"telephone_area_code,omitempty"`
Password string `protobuf:"bytes,3,opt,name=password,proto3" json:"password,omitempty"`
Code string `protobuf:"bytes,4,opt,name=code,proto3" json:"code,omitempty"` // SMS verification code (required)
CfToken string `protobuf:"bytes,5,opt,name=cf_token,json=cfToken,proto3" json:"cf_token,omitempty"` // Cloudflare turnstile token (optional)
Ip string `protobuf:"bytes,6,opt,name=ip,proto3" json:"ip,omitempty"` // X-Original-Forwarded-For header
UserAgent string `protobuf:"bytes,7,opt,name=user_agent,json=userAgent,proto3" json:"user_agent,omitempty"` // User-Agent header
Identifier string `protobuf:"bytes,8,opt,name=identifier,proto3" json:"identifier,omitempty"` // Device identifier
LoginType string `protobuf:"bytes,9,opt,name=login_type,json=loginType,proto3" json:"login_type,omitempty"` // Login-Type header fallback
CaptchaId string `protobuf:"bytes,10,opt,name=captcha_id,json=captchaId,proto3" json:"captcha_id,omitempty"` // Reserved for local captcha compatibility
CaptchaCode string `protobuf:"bytes,11,opt,name=captcha_code,json=captchaCode,proto3" json:"captcha_code,omitempty"`
SliderToken string `protobuf:"bytes,12,opt,name=slider_token,json=sliderToken,proto3" json:"slider_token,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) GetCaptchaCode ¶
func (x *TelephoneResetPasswordRequest) GetCaptchaCode() string
func (*TelephoneResetPasswordRequest) GetCaptchaId ¶
func (x *TelephoneResetPasswordRequest) GetCaptchaId() string
func (*TelephoneResetPasswordRequest) GetCfToken ¶
func (x *TelephoneResetPasswordRequest) GetCfToken() string
func (*TelephoneResetPasswordRequest) GetCode ¶
func (x *TelephoneResetPasswordRequest) GetCode() string
func (*TelephoneResetPasswordRequest) GetIdentifier ¶
func (x *TelephoneResetPasswordRequest) GetIdentifier() string
func (*TelephoneResetPasswordRequest) GetIp ¶
func (x *TelephoneResetPasswordRequest) GetIp() string
func (*TelephoneResetPasswordRequest) GetLoginType ¶
func (x *TelephoneResetPasswordRequest) GetLoginType() string
func (*TelephoneResetPasswordRequest) GetPassword ¶
func (x *TelephoneResetPasswordRequest) GetPassword() string
func (*TelephoneResetPasswordRequest) GetSliderToken ¶
func (x *TelephoneResetPasswordRequest) GetSliderToken() string
func (*TelephoneResetPasswordRequest) GetTelephone ¶
func (x *TelephoneResetPasswordRequest) GetTelephone() string
func (*TelephoneResetPasswordRequest) GetTelephoneAreaCode ¶
func (x *TelephoneResetPasswordRequest) GetTelephoneAreaCode() string
func (*TelephoneResetPasswordRequest) GetUserAgent ¶
func (x *TelephoneResetPasswordRequest) GetUserAgent() 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 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) AdminGenerateCaptcha ¶
func (UnimplementedAuthServer) AdminGenerateCaptcha(context.Context, *emptypb.Empty) (*GenerateCaptchaReply, error)
func (UnimplementedAuthServer) AdminLogin ¶
func (UnimplementedAuthServer) AdminLogin(context.Context, *UserLoginRequest) (*LoginReply, error)
func (UnimplementedAuthServer) AdminResetPassword ¶
func (UnimplementedAuthServer) AdminResetPassword(context.Context, *ResetPasswordRequest) (*LoginReply, error)
func (UnimplementedAuthServer) AdminVerifySliderCaptcha ¶
func (UnimplementedAuthServer) AdminVerifySliderCaptcha(context.Context, *VerifySliderCaptchaRequest) (*VerifySliderCaptchaReply, error)
func (UnimplementedAuthServer) CheckUser ¶
func (UnimplementedAuthServer) CheckUser(context.Context, *CheckUserRequest) (*CheckUserReply, error)
func (UnimplementedAuthServer) CheckUserTelephone ¶
func (UnimplementedAuthServer) CheckUserTelephone(context.Context, *CheckUserTelephoneRequest) (*CheckUserTelephoneReply, error)
func (UnimplementedAuthServer) DeviceLogin ¶
func (UnimplementedAuthServer) DeviceLogin(context.Context, *DeviceLoginRequest) (*LoginReply, error)
func (UnimplementedAuthServer) GenerateCaptcha ¶
func (UnimplementedAuthServer) GenerateCaptcha(context.Context, *emptypb.Empty) (*GenerateCaptchaReply, error)
func (UnimplementedAuthServer) ResetPassword ¶
func (UnimplementedAuthServer) ResetPassword(context.Context, *ResetPasswordRequest) (*LoginReply, error)
func (UnimplementedAuthServer) TelephoneLogin ¶
func (UnimplementedAuthServer) TelephoneLogin(context.Context, *TelephoneLoginRequest) (*LoginReply, error)
func (UnimplementedAuthServer) TelephoneRegister ¶
func (UnimplementedAuthServer) TelephoneRegister(context.Context, *TelephoneRegisterRequest) (*LoginReply, error)
func (UnimplementedAuthServer) TelephoneResetPassword ¶
func (UnimplementedAuthServer) TelephoneResetPassword(context.Context, *TelephoneResetPasswordRequest) (*LoginReply, error)
func (UnimplementedAuthServer) UserLogin ¶
func (UnimplementedAuthServer) UserLogin(context.Context, *UserLoginRequest) (*LoginReply, error)
func (UnimplementedAuthServer) UserRegister ¶
func (UnimplementedAuthServer) UserRegister(context.Context, *UserRegisterRequest) (*LoginReply, error)
func (UnimplementedAuthServer) VerifySliderCaptcha ¶
func (UnimplementedAuthServer) VerifySliderCaptcha(context.Context, *VerifySliderCaptchaRequest) (*VerifySliderCaptchaReply, 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 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"`
CfToken string `protobuf:"bytes,3,opt,name=cf_token,json=cfToken,proto3" json:"cf_token,omitempty"` // Cloudflare turnstile token (optional)
Ip string `protobuf:"bytes,4,opt,name=ip,proto3" json:"ip,omitempty"` // X-Original-Forwarded-For header
UserAgent string `protobuf:"bytes,5,opt,name=user_agent,json=userAgent,proto3" json:"user_agent,omitempty"` // User-Agent header
Identifier string `protobuf:"bytes,6,opt,name=identifier,proto3" json:"identifier,omitempty"` // Device identifier
LoginType string `protobuf:"bytes,7,opt,name=login_type,json=loginType,proto3" json:"login_type,omitempty"` // Login-Type header fallback
CaptchaId string `protobuf:"bytes,8,opt,name=captcha_id,json=captchaId,proto3" json:"captcha_id,omitempty"` // Reserved for local captcha compatibility
CaptchaCode string `protobuf:"bytes,9,opt,name=captcha_code,json=captchaCode,proto3" json:"captcha_code,omitempty"`
SliderToken string `protobuf:"bytes,10,opt,name=slider_token,json=sliderToken,proto3" json:"slider_token,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) GetCaptchaCode ¶
func (x *UserLoginRequest) GetCaptchaCode() string
func (*UserLoginRequest) GetCaptchaId ¶
func (x *UserLoginRequest) GetCaptchaId() string
func (*UserLoginRequest) GetCfToken ¶
func (x *UserLoginRequest) GetCfToken() string
func (*UserLoginRequest) GetEmail ¶
func (x *UserLoginRequest) GetEmail() string
func (*UserLoginRequest) GetIdentifier ¶
func (x *UserLoginRequest) GetIdentifier() string
func (*UserLoginRequest) GetIp ¶
func (x *UserLoginRequest) GetIp() string
func (*UserLoginRequest) GetLoginType ¶
func (x *UserLoginRequest) GetLoginType() string
func (*UserLoginRequest) GetPassword ¶
func (x *UserLoginRequest) GetPassword() string
func (*UserLoginRequest) GetSliderToken ¶
func (x *UserLoginRequest) GetSliderToken() string
func (*UserLoginRequest) GetUserAgent ¶
func (x *UserLoginRequest) GetUserAgent() 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 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"`
Invite string `protobuf:"bytes,3,opt,name=invite,proto3" json:"invite,omitempty"` // Invite code (optional)
Code string `protobuf:"bytes,4,opt,name=code,proto3" json:"code,omitempty"` // Email verification code (optional, required if email verification enabled)
CfToken string `protobuf:"bytes,5,opt,name=cf_token,json=cfToken,proto3" json:"cf_token,omitempty"` // Cloudflare turnstile token (optional)
Ip string `protobuf:"bytes,6,opt,name=ip,proto3" json:"ip,omitempty"` // X-Original-Forwarded-For header
UserAgent string `protobuf:"bytes,7,opt,name=user_agent,json=userAgent,proto3" json:"user_agent,omitempty"` // User-Agent header
Identifier string `protobuf:"bytes,8,opt,name=identifier,proto3" json:"identifier,omitempty"` // Device identifier
LoginType string `protobuf:"bytes,9,opt,name=login_type,json=loginType,proto3" json:"login_type,omitempty"` // Login-Type header fallback
CaptchaId string `protobuf:"bytes,10,opt,name=captcha_id,json=captchaId,proto3" json:"captcha_id,omitempty"` // Reserved for local captcha compatibility
CaptchaCode string `protobuf:"bytes,11,opt,name=captcha_code,json=captchaCode,proto3" json:"captcha_code,omitempty"`
SliderToken string `protobuf:"bytes,12,opt,name=slider_token,json=sliderToken,proto3" json:"slider_token,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) GetCaptchaCode ¶
func (x *UserRegisterRequest) GetCaptchaCode() string
func (*UserRegisterRequest) GetCaptchaId ¶
func (x *UserRegisterRequest) GetCaptchaId() string
func (*UserRegisterRequest) GetCfToken ¶
func (x *UserRegisterRequest) GetCfToken() string
func (*UserRegisterRequest) GetCode ¶
func (x *UserRegisterRequest) GetCode() string
func (*UserRegisterRequest) GetEmail ¶
func (x *UserRegisterRequest) GetEmail() string
func (*UserRegisterRequest) GetIdentifier ¶
func (x *UserRegisterRequest) GetIdentifier() string
func (*UserRegisterRequest) GetInvite ¶
func (x *UserRegisterRequest) GetInvite() string
func (*UserRegisterRequest) GetIp ¶
func (x *UserRegisterRequest) GetIp() string
func (*UserRegisterRequest) GetLoginType ¶
func (x *UserRegisterRequest) GetLoginType() string
func (*UserRegisterRequest) GetPassword ¶
func (x *UserRegisterRequest) GetPassword() string
func (*UserRegisterRequest) GetSliderToken ¶
func (x *UserRegisterRequest) GetSliderToken() string
func (*UserRegisterRequest) GetUserAgent ¶
func (x *UserRegisterRequest) GetUserAgent() 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.
type VerifySliderCaptchaReply ¶
type VerifySliderCaptchaReply struct {
Token string `protobuf:"bytes,1,opt,name=token,proto3" json:"token,omitempty"`
// contains filtered or unexported fields
}
func (*VerifySliderCaptchaReply) Descriptor
deprecated
func (*VerifySliderCaptchaReply) Descriptor() ([]byte, []int)
Deprecated: Use VerifySliderCaptchaReply.ProtoReflect.Descriptor instead.
func (*VerifySliderCaptchaReply) GetToken ¶
func (x *VerifySliderCaptchaReply) GetToken() string
func (*VerifySliderCaptchaReply) ProtoMessage ¶
func (*VerifySliderCaptchaReply) ProtoMessage()
func (*VerifySliderCaptchaReply) ProtoReflect ¶
func (x *VerifySliderCaptchaReply) ProtoReflect() protoreflect.Message
func (*VerifySliderCaptchaReply) Reset ¶
func (x *VerifySliderCaptchaReply) Reset()
func (*VerifySliderCaptchaReply) String ¶
func (x *VerifySliderCaptchaReply) String() string
func (*VerifySliderCaptchaReply) Validate ¶
func (m *VerifySliderCaptchaReply) Validate() error
Validate checks the field values on VerifySliderCaptchaReply 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 (*VerifySliderCaptchaReply) ValidateAll ¶
func (m *VerifySliderCaptchaReply) ValidateAll() error
ValidateAll checks the field values on VerifySliderCaptchaReply 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 VerifySliderCaptchaReplyMultiError, or nil if none found.
type VerifySliderCaptchaReplyMultiError ¶
type VerifySliderCaptchaReplyMultiError []error
VerifySliderCaptchaReplyMultiError is an error wrapping multiple validation errors returned by VerifySliderCaptchaReply.ValidateAll() if the designated constraints aren't met.
func (VerifySliderCaptchaReplyMultiError) AllErrors ¶
func (m VerifySliderCaptchaReplyMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (VerifySliderCaptchaReplyMultiError) Error ¶
func (m VerifySliderCaptchaReplyMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type VerifySliderCaptchaReplyValidationError ¶
type VerifySliderCaptchaReplyValidationError struct {
// contains filtered or unexported fields
}
VerifySliderCaptchaReplyValidationError is the validation error returned by VerifySliderCaptchaReply.Validate if the designated constraints aren't met.
func (VerifySliderCaptchaReplyValidationError) Cause ¶
func (e VerifySliderCaptchaReplyValidationError) Cause() error
Cause function returns cause value.
func (VerifySliderCaptchaReplyValidationError) Error ¶
func (e VerifySliderCaptchaReplyValidationError) Error() string
Error satisfies the builtin error interface
func (VerifySliderCaptchaReplyValidationError) ErrorName ¶
func (e VerifySliderCaptchaReplyValidationError) ErrorName() string
ErrorName returns error name.
func (VerifySliderCaptchaReplyValidationError) Field ¶
func (e VerifySliderCaptchaReplyValidationError) Field() string
Field function returns field value.
func (VerifySliderCaptchaReplyValidationError) Key ¶
func (e VerifySliderCaptchaReplyValidationError) Key() bool
Key function returns key value.
func (VerifySliderCaptchaReplyValidationError) Reason ¶
func (e VerifySliderCaptchaReplyValidationError) Reason() string
Reason function returns reason value.
type VerifySliderCaptchaRequest ¶
type VerifySliderCaptchaRequest struct {
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
X int32 `protobuf:"varint,2,opt,name=x,proto3" json:"x,omitempty"`
Y int32 `protobuf:"varint,3,opt,name=y,proto3" json:"y,omitempty"`
Trail string `protobuf:"bytes,4,opt,name=trail,proto3" json:"trail,omitempty"`
// contains filtered or unexported fields
}
func (*VerifySliderCaptchaRequest) Descriptor
deprecated
func (*VerifySliderCaptchaRequest) Descriptor() ([]byte, []int)
Deprecated: Use VerifySliderCaptchaRequest.ProtoReflect.Descriptor instead.
func (*VerifySliderCaptchaRequest) GetId ¶
func (x *VerifySliderCaptchaRequest) GetId() string
func (*VerifySliderCaptchaRequest) GetTrail ¶
func (x *VerifySliderCaptchaRequest) GetTrail() string
func (*VerifySliderCaptchaRequest) GetX ¶
func (x *VerifySliderCaptchaRequest) GetX() int32
func (*VerifySliderCaptchaRequest) GetY ¶
func (x *VerifySliderCaptchaRequest) GetY() int32
func (*VerifySliderCaptchaRequest) ProtoMessage ¶
func (*VerifySliderCaptchaRequest) ProtoMessage()
func (*VerifySliderCaptchaRequest) ProtoReflect ¶
func (x *VerifySliderCaptchaRequest) ProtoReflect() protoreflect.Message
func (*VerifySliderCaptchaRequest) Reset ¶
func (x *VerifySliderCaptchaRequest) Reset()
func (*VerifySliderCaptchaRequest) String ¶
func (x *VerifySliderCaptchaRequest) String() string
func (*VerifySliderCaptchaRequest) Validate ¶
func (m *VerifySliderCaptchaRequest) Validate() error
Validate checks the field values on VerifySliderCaptchaRequest 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 (*VerifySliderCaptchaRequest) ValidateAll ¶
func (m *VerifySliderCaptchaRequest) ValidateAll() error
ValidateAll checks the field values on VerifySliderCaptchaRequest 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 VerifySliderCaptchaRequestMultiError, or nil if none found.
type VerifySliderCaptchaRequestMultiError ¶
type VerifySliderCaptchaRequestMultiError []error
VerifySliderCaptchaRequestMultiError is an error wrapping multiple validation errors returned by VerifySliderCaptchaRequest.ValidateAll() if the designated constraints aren't met.
func (VerifySliderCaptchaRequestMultiError) AllErrors ¶
func (m VerifySliderCaptchaRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (VerifySliderCaptchaRequestMultiError) Error ¶
func (m VerifySliderCaptchaRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type VerifySliderCaptchaRequestValidationError ¶
type VerifySliderCaptchaRequestValidationError struct {
// contains filtered or unexported fields
}
VerifySliderCaptchaRequestValidationError is the validation error returned by VerifySliderCaptchaRequest.Validate if the designated constraints aren't met.
func (VerifySliderCaptchaRequestValidationError) Cause ¶
func (e VerifySliderCaptchaRequestValidationError) Cause() error
Cause function returns cause value.
func (VerifySliderCaptchaRequestValidationError) Error ¶
func (e VerifySliderCaptchaRequestValidationError) Error() string
Error satisfies the builtin error interface
func (VerifySliderCaptchaRequestValidationError) ErrorName ¶
func (e VerifySliderCaptchaRequestValidationError) ErrorName() string
ErrorName returns error name.
func (VerifySliderCaptchaRequestValidationError) Field ¶
func (e VerifySliderCaptchaRequestValidationError) Field() string
Field function returns field value.
func (VerifySliderCaptchaRequestValidationError) Key ¶
func (e VerifySliderCaptchaRequestValidationError) Key() bool
Key function returns key value.
func (VerifySliderCaptchaRequestValidationError) Reason ¶
func (e VerifySliderCaptchaRequestValidationError) Reason() string
Reason function returns reason value.