Versions in this module Expand all Collapse all v0 v0.0.29 Jul 27, 2024 v0.0.28 Jul 20, 2024 v0.0.27 Jul 16, 2024 v0.0.26 Jul 4, 2024 v0.0.25 Jul 4, 2024 v0.0.24 May 7, 2024 v0.0.23 May 7, 2024 v0.0.22 Apr 29, 2024 v0.0.21 Apr 29, 2024 v0.0.20 Apr 29, 2024 v0.0.19 Apr 27, 2024 v0.0.18 Apr 27, 2024 v0.0.17 Apr 27, 2024 v0.0.16 Apr 27, 2024 v0.0.15 Apr 23, 2024 v0.0.14 Apr 23, 2024 v0.0.13 Apr 23, 2024 v0.0.12 Apr 17, 2024 v0.0.11 Apr 17, 2024 Changes in this version + const Auth_Captcha_FullMethodName + const Auth_Login_FullMethodName + const Auth_Logout_FullMethodName + const Auth_RefreshToken_FullMethodName + const OperationAuthCaptcha + const OperationAuthLogin + const OperationAuthLogout + const OperationAuthRefreshToken + var Auth_ServiceDesc = grpc.ServiceDesc + var File_server_auth_auth_proto protoreflect.FileDescriptor + func RegisterAuthHTTPServer(s *http.Server, srv AuthHTTPServer) + func RegisterAuthServer(s grpc.ServiceRegistrar, srv AuthServer) + type AuthClient interface + Captcha func(ctx context.Context, in *CaptchaRequest, opts ...grpc.CallOption) (*CaptchaReply, error) + Login func(ctx context.Context, in *LoginRequest, opts ...grpc.CallOption) (*LoginReply, error) + Logout func(ctx context.Context, in *LogoutRequest, opts ...grpc.CallOption) (*LogoutReply, error) + RefreshToken func(ctx context.Context, in *RefreshTokenRequest, opts ...grpc.CallOption) (*RefreshTokenReply, error) + func NewAuthClient(cc grpc.ClientConnInterface) AuthClient + type AuthHTTPClient interface + Captcha func(ctx context.Context, req *CaptchaRequest, opts ...http.CallOption) (rsp *CaptchaReply, err error) + Login func(ctx context.Context, req *LoginRequest, opts ...http.CallOption) (rsp *LoginReply, err error) + Logout func(ctx context.Context, req *LogoutRequest, opts ...http.CallOption) (rsp *LogoutReply, err error) + RefreshToken func(ctx context.Context, req *RefreshTokenRequest, opts ...http.CallOption) (rsp *RefreshTokenReply, err error) + func NewAuthHTTPClient(client *http.Client) AuthHTTPClient + type AuthHTTPClientImpl struct + func (c *AuthHTTPClientImpl) Captcha(ctx context.Context, in *CaptchaRequest, opts ...http.CallOption) (*CaptchaReply, error) + func (c *AuthHTTPClientImpl) Login(ctx context.Context, in *LoginRequest, opts ...http.CallOption) (*LoginReply, error) + func (c *AuthHTTPClientImpl) Logout(ctx context.Context, in *LogoutRequest, opts ...http.CallOption) (*LogoutReply, error) + func (c *AuthHTTPClientImpl) RefreshToken(ctx context.Context, in *RefreshTokenRequest, opts ...http.CallOption) (*RefreshTokenReply, error) + type AuthHTTPServer interface + Captcha func(context.Context, *CaptchaRequest) (*CaptchaReply, error) + Login func(context.Context, *LoginRequest) (*LoginReply, error) + Logout func(context.Context, *LogoutRequest) (*LogoutReply, error) + RefreshToken func(context.Context, *RefreshTokenRequest) (*RefreshTokenReply, error) + type AuthServer interface + Captcha func(context.Context, *CaptchaRequest) (*CaptchaReply, error) + Login func(context.Context, *LoginRequest) (*LoginReply, error) + Logout func(context.Context, *LogoutRequest) (*LogoutReply, error) + RefreshToken func(context.Context, *RefreshTokenRequest) (*RefreshTokenReply, error) + type CaptchaReply struct + Captcha string + CaptchaId string + func (*CaptchaReply) Descriptor() ([]byte, []int) + func (*CaptchaReply) ProtoMessage() + func (m *CaptchaReply) Validate() error + func (m *CaptchaReply) ValidateAll() error + func (x *CaptchaReply) GetCaptcha() string + func (x *CaptchaReply) GetCaptchaId() string + func (x *CaptchaReply) ProtoReflect() protoreflect.Message + func (x *CaptchaReply) Reset() + func (x *CaptchaReply) String() string + type CaptchaReplyMultiError []error + func (m CaptchaReplyMultiError) AllErrors() []error + func (m CaptchaReplyMultiError) Error() string + type CaptchaReplyValidationError struct + func (e CaptchaReplyValidationError) Cause() error + func (e CaptchaReplyValidationError) Error() string + func (e CaptchaReplyValidationError) ErrorName() string + func (e CaptchaReplyValidationError) Field() string + func (e CaptchaReplyValidationError) Key() bool + func (e CaptchaReplyValidationError) Reason() string + type CaptchaRequest struct + CaptchaType api.CaptchaType + Theme string + X uint64 + Y uint64 + func (*CaptchaRequest) Descriptor() ([]byte, []int) + func (*CaptchaRequest) ProtoMessage() + func (m *CaptchaRequest) Validate() error + func (m *CaptchaRequest) ValidateAll() error + func (x *CaptchaRequest) GetCaptchaType() api.CaptchaType + func (x *CaptchaRequest) GetTheme() string + func (x *CaptchaRequest) GetX() uint64 + func (x *CaptchaRequest) GetY() uint64 + func (x *CaptchaRequest) ProtoReflect() protoreflect.Message + func (x *CaptchaRequest) Reset() + func (x *CaptchaRequest) String() string + type CaptchaRequestMultiError []error + func (m CaptchaRequestMultiError) AllErrors() []error + func (m CaptchaRequestMultiError) Error() string + type CaptchaRequestValidationError struct + func (e CaptchaRequestValidationError) Cause() error + func (e CaptchaRequestValidationError) Error() string + func (e CaptchaRequestValidationError) ErrorName() string + func (e CaptchaRequestValidationError) Field() string + func (e CaptchaRequestValidationError) Key() bool + func (e CaptchaRequestValidationError) Reason() string + type LoginReply struct + Token string + User *api.UserV1 + func (*LoginReply) Descriptor() ([]byte, []int) + func (*LoginReply) ProtoMessage() + func (m *LoginReply) Validate() error + func (m *LoginReply) ValidateAll() error + func (x *LoginReply) GetToken() string + func (x *LoginReply) GetUser() *api.UserV1 + func (x *LoginReply) ProtoReflect() protoreflect.Message + func (x *LoginReply) Reset() + func (x *LoginReply) String() string + type LoginReplyMultiError []error + func (m LoginReplyMultiError) AllErrors() []error + func (m LoginReplyMultiError) Error() string + type LoginReplyValidationError struct + func (e LoginReplyValidationError) Cause() error + func (e LoginReplyValidationError) Error() string + func (e LoginReplyValidationError) ErrorName() string + func (e LoginReplyValidationError) Field() string + func (e LoginReplyValidationError) Key() bool + func (e LoginReplyValidationError) Reason() string + type LoginRequest struct + CaptchaId string + Code string + Password string + Username string + func (*LoginRequest) Descriptor() ([]byte, []int) + func (*LoginRequest) ProtoMessage() + func (m *LoginRequest) Validate() error + func (m *LoginRequest) ValidateAll() error + func (x *LoginRequest) GetCaptchaId() string + func (x *LoginRequest) GetCode() string + func (x *LoginRequest) GetPassword() string + func (x *LoginRequest) GetUsername() string + func (x *LoginRequest) ProtoReflect() protoreflect.Message + func (x *LoginRequest) Reset() + func (x *LoginRequest) String() string + type LoginRequestMultiError []error + func (m LoginRequestMultiError) AllErrors() []error + func (m LoginRequestMultiError) Error() string + type LoginRequestValidationError struct + func (e LoginRequestValidationError) Cause() error + func (e LoginRequestValidationError) Error() string + func (e LoginRequestValidationError) ErrorName() string + func (e LoginRequestValidationError) Field() string + func (e LoginRequestValidationError) Key() bool + func (e LoginRequestValidationError) Reason() string + type LogoutReply struct + UserId uint32 + func (*LogoutReply) Descriptor() ([]byte, []int) + func (*LogoutReply) ProtoMessage() + func (m *LogoutReply) Validate() error + func (m *LogoutReply) ValidateAll() error + func (x *LogoutReply) GetUserId() uint32 + func (x *LogoutReply) ProtoReflect() protoreflect.Message + func (x *LogoutReply) Reset() + func (x *LogoutReply) String() string + type LogoutReplyMultiError []error + func (m LogoutReplyMultiError) AllErrors() []error + func (m LogoutReplyMultiError) Error() string + type LogoutReplyValidationError struct + func (e LogoutReplyValidationError) Cause() error + func (e LogoutReplyValidationError) Error() string + func (e LogoutReplyValidationError) ErrorName() string + func (e LogoutReplyValidationError) Field() string + func (e LogoutReplyValidationError) Key() bool + func (e LogoutReplyValidationError) Reason() string + type LogoutRequest struct + func (*LogoutRequest) Descriptor() ([]byte, []int) + func (*LogoutRequest) ProtoMessage() + func (m *LogoutRequest) Validate() error + func (m *LogoutRequest) ValidateAll() error + func (x *LogoutRequest) ProtoReflect() protoreflect.Message + func (x *LogoutRequest) Reset() + func (x *LogoutRequest) String() string + type LogoutRequestMultiError []error + func (m LogoutRequestMultiError) AllErrors() []error + func (m LogoutRequestMultiError) Error() string + type LogoutRequestValidationError struct + func (e LogoutRequestValidationError) Cause() error + func (e LogoutRequestValidationError) Error() string + func (e LogoutRequestValidationError) ErrorName() string + func (e LogoutRequestValidationError) Field() string + func (e LogoutRequestValidationError) Key() bool + func (e LogoutRequestValidationError) Reason() string + type RefreshTokenReply struct + Token string + User *api.UserV1 + func (*RefreshTokenReply) Descriptor() ([]byte, []int) + func (*RefreshTokenReply) ProtoMessage() + func (m *RefreshTokenReply) Validate() error + func (m *RefreshTokenReply) ValidateAll() error + func (x *RefreshTokenReply) GetToken() string + func (x *RefreshTokenReply) GetUser() *api.UserV1 + func (x *RefreshTokenReply) ProtoReflect() protoreflect.Message + func (x *RefreshTokenReply) Reset() + func (x *RefreshTokenReply) String() string + type RefreshTokenReplyMultiError []error + func (m RefreshTokenReplyMultiError) AllErrors() []error + func (m RefreshTokenReplyMultiError) Error() string + type RefreshTokenReplyValidationError struct + func (e RefreshTokenReplyValidationError) Cause() error + func (e RefreshTokenReplyValidationError) Error() string + func (e RefreshTokenReplyValidationError) ErrorName() string + func (e RefreshTokenReplyValidationError) Field() string + func (e RefreshTokenReplyValidationError) Key() bool + func (e RefreshTokenReplyValidationError) Reason() string + type RefreshTokenRequest struct + RoleId uint32 + func (*RefreshTokenRequest) Descriptor() ([]byte, []int) + func (*RefreshTokenRequest) ProtoMessage() + func (m *RefreshTokenRequest) Validate() error + func (m *RefreshTokenRequest) ValidateAll() error + func (x *RefreshTokenRequest) GetRoleId() uint32 + func (x *RefreshTokenRequest) ProtoReflect() protoreflect.Message + func (x *RefreshTokenRequest) Reset() + func (x *RefreshTokenRequest) String() string + type RefreshTokenRequestMultiError []error + func (m RefreshTokenRequestMultiError) AllErrors() []error + func (m RefreshTokenRequestMultiError) Error() string + type RefreshTokenRequestValidationError struct + func (e RefreshTokenRequestValidationError) Cause() error + func (e RefreshTokenRequestValidationError) Error() string + func (e RefreshTokenRequestValidationError) ErrorName() string + func (e RefreshTokenRequestValidationError) Field() string + func (e RefreshTokenRequestValidationError) Key() bool + func (e RefreshTokenRequestValidationError) Reason() string + type UnimplementedAuthServer struct + func (UnimplementedAuthServer) Captcha(context.Context, *CaptchaRequest) (*CaptchaReply, error) + func (UnimplementedAuthServer) Login(context.Context, *LoginRequest) (*LoginReply, error) + func (UnimplementedAuthServer) Logout(context.Context, *LogoutRequest) (*LogoutReply, error) + func (UnimplementedAuthServer) RefreshToken(context.Context, *RefreshTokenRequest) (*RefreshTokenReply, error) + type UnsafeAuthServer interface