Versions in this module Expand all Collapse all v0 v0.1.0 Feb 7, 2024 Changes in this version + const OperationUserCenterAuth + const OperationUserCenterAuthenticate + const OperationUserCenterAuthorize + const OperationUserCenterCreateSecret + const OperationUserCenterCreateUser + const OperationUserCenterDeleteSecret + const OperationUserCenterDeleteUser + const OperationUserCenterGetSecret + const OperationUserCenterGetUser + const OperationUserCenterListSecret + const OperationUserCenterListUser + const OperationUserCenterLogin + const OperationUserCenterLogout + const OperationUserCenterRefreshToken + const OperationUserCenterUpdatePassword + const OperationUserCenterUpdateSecret + const OperationUserCenterUpdateUser + const UserCenter_Auth_FullMethodName + const UserCenter_Authenticate_FullMethodName + const UserCenter_Authorize_FullMethodName + const UserCenter_CreateSecret_FullMethodName + const UserCenter_CreateUser_FullMethodName + const UserCenter_DeleteSecret_FullMethodName + const UserCenter_DeleteUser_FullMethodName + const UserCenter_GetSecret_FullMethodName + const UserCenter_GetUser_FullMethodName + const UserCenter_ListSecret_FullMethodName + const UserCenter_ListUser_FullMethodName + const UserCenter_Login_FullMethodName + const UserCenter_Logout_FullMethodName + const UserCenter_RefreshToken_FullMethodName + const UserCenter_UpdatePassword_FullMethodName + const UserCenter_UpdateSecret_FullMethodName + const UserCenter_UpdateUser_FullMethodName + var ErrorReason_name = map[int32]string + var ErrorReason_value = map[string]int32 + var File_usercenter_v1_errors_proto protoreflect.FileDescriptor + var File_usercenter_v1_usercenter_proto protoreflect.FileDescriptor + var UserCenter_ServiceDesc = grpc.ServiceDesc + func ErrorSecretCreateFailed(format string, args ...interface{}) *errors.Error + func ErrorSecretNotFound(format string, args ...interface{}) *errors.Error + func ErrorSecretReachMaxCount(format string, args ...interface{}) *errors.Error + func ErrorUserAlreadyExists(format string, args ...interface{}) *errors.Error + func ErrorUserCreateFailed(format string, args ...interface{}) *errors.Error + func ErrorUserLoginFailed(format string, args ...interface{}) *errors.Error + func ErrorUserNotFound(format string, args ...interface{}) *errors.Error + func ErrorUserOperationForbidden(format string, args ...interface{}) *errors.Error + func IsSecretCreateFailed(err error) bool + func IsSecretNotFound(err error) bool + func IsSecretReachMaxCount(err error) bool + func IsUserAlreadyExists(err error) bool + func IsUserCreateFailed(err error) bool + func IsUserLoginFailed(err error) bool + func IsUserNotFound(err error) bool + func IsUserOperationForbidden(err error) bool + func RegisterUserCenterHTTPServer(s *http.Server, srv UserCenterHTTPServer) + func RegisterUserCenterServer(s grpc.ServiceRegistrar, srv UserCenterServer) + type AuthRequest struct + Act string + Obj string + Token string + func (*AuthRequest) Descriptor() ([]byte, []int) + func (*AuthRequest) ProtoMessage() + func (m *AuthRequest) Validate() error + func (m *AuthRequest) ValidateAll() error + func (x *AuthRequest) GetAct() string + func (x *AuthRequest) GetObj() string + func (x *AuthRequest) GetToken() string + func (x *AuthRequest) ProtoReflect() protoreflect.Message + func (x *AuthRequest) Reset() + func (x *AuthRequest) String() string + type AuthRequestMultiError []error + func (m AuthRequestMultiError) AllErrors() []error + func (m AuthRequestMultiError) Error() string + type AuthRequestValidationError struct + func (e AuthRequestValidationError) Cause() error + func (e AuthRequestValidationError) Error() string + func (e AuthRequestValidationError) ErrorName() string + func (e AuthRequestValidationError) Field() string + func (e AuthRequestValidationError) Key() bool + func (e AuthRequestValidationError) Reason() string + type AuthResponse struct + Allowed bool + UserID string + func (*AuthResponse) Descriptor() ([]byte, []int) + func (*AuthResponse) ProtoMessage() + func (m *AuthResponse) Validate() error + func (m *AuthResponse) ValidateAll() error + func (x *AuthResponse) GetAllowed() bool + func (x *AuthResponse) GetUserID() string + func (x *AuthResponse) ProtoReflect() protoreflect.Message + func (x *AuthResponse) Reset() + func (x *AuthResponse) String() string + type AuthResponseMultiError []error + func (m AuthResponseMultiError) AllErrors() []error + func (m AuthResponseMultiError) Error() string + type AuthResponseValidationError struct + func (e AuthResponseValidationError) Cause() error + func (e AuthResponseValidationError) Error() string + func (e AuthResponseValidationError) ErrorName() string + func (e AuthResponseValidationError) Field() string + func (e AuthResponseValidationError) Key() bool + func (e AuthResponseValidationError) Reason() string + type AuthenticateRequest struct + Token string + func (*AuthenticateRequest) Descriptor() ([]byte, []int) + func (*AuthenticateRequest) ProtoMessage() + func (m *AuthenticateRequest) Validate() error + func (m *AuthenticateRequest) ValidateAll() error + func (x *AuthenticateRequest) GetToken() string + func (x *AuthenticateRequest) ProtoReflect() protoreflect.Message + func (x *AuthenticateRequest) Reset() + func (x *AuthenticateRequest) String() string + type AuthenticateRequestMultiError []error + func (m AuthenticateRequestMultiError) AllErrors() []error + func (m AuthenticateRequestMultiError) Error() string + type AuthenticateRequestValidationError struct + func (e AuthenticateRequestValidationError) Cause() error + func (e AuthenticateRequestValidationError) Error() string + func (e AuthenticateRequestValidationError) ErrorName() string + func (e AuthenticateRequestValidationError) Field() string + func (e AuthenticateRequestValidationError) Key() bool + func (e AuthenticateRequestValidationError) Reason() string + type AuthenticateResponse struct + UserID string + func (*AuthenticateResponse) Descriptor() ([]byte, []int) + func (*AuthenticateResponse) ProtoMessage() + func (m *AuthenticateResponse) Validate() error + func (m *AuthenticateResponse) ValidateAll() error + func (x *AuthenticateResponse) GetUserID() string + func (x *AuthenticateResponse) ProtoReflect() protoreflect.Message + func (x *AuthenticateResponse) Reset() + func (x *AuthenticateResponse) String() string + type AuthenticateResponseMultiError []error + func (m AuthenticateResponseMultiError) AllErrors() []error + func (m AuthenticateResponseMultiError) Error() string + type AuthenticateResponseValidationError struct + func (e AuthenticateResponseValidationError) Cause() error + func (e AuthenticateResponseValidationError) Error() string + func (e AuthenticateResponseValidationError) ErrorName() string + func (e AuthenticateResponseValidationError) Field() string + func (e AuthenticateResponseValidationError) Key() bool + func (e AuthenticateResponseValidationError) Reason() string + type AuthorizeRequest struct + Act string + Obj string + Sub string + func (*AuthorizeRequest) Descriptor() ([]byte, []int) + func (*AuthorizeRequest) ProtoMessage() + func (m *AuthorizeRequest) Validate() error + func (m *AuthorizeRequest) ValidateAll() error + func (x *AuthorizeRequest) GetAct() string + func (x *AuthorizeRequest) GetObj() string + func (x *AuthorizeRequest) GetSub() string + func (x *AuthorizeRequest) ProtoReflect() protoreflect.Message + func (x *AuthorizeRequest) Reset() + func (x *AuthorizeRequest) String() string + type AuthorizeRequestMultiError []error + func (m AuthorizeRequestMultiError) AllErrors() []error + func (m AuthorizeRequestMultiError) Error() string + type AuthorizeRequestValidationError struct + func (e AuthorizeRequestValidationError) Cause() error + func (e AuthorizeRequestValidationError) Error() string + func (e AuthorizeRequestValidationError) ErrorName() string + func (e AuthorizeRequestValidationError) Field() string + func (e AuthorizeRequestValidationError) Key() bool + func (e AuthorizeRequestValidationError) Reason() string + type AuthorizeResponse struct + Allowed bool + func (*AuthorizeResponse) Descriptor() ([]byte, []int) + func (*AuthorizeResponse) ProtoMessage() + func (m *AuthorizeResponse) Validate() error + func (m *AuthorizeResponse) ValidateAll() error + func (x *AuthorizeResponse) GetAllowed() bool + func (x *AuthorizeResponse) ProtoReflect() protoreflect.Message + func (x *AuthorizeResponse) Reset() + func (x *AuthorizeResponse) String() string + type AuthorizeResponseMultiError []error + func (m AuthorizeResponseMultiError) AllErrors() []error + func (m AuthorizeResponseMultiError) Error() string + type AuthorizeResponseValidationError struct + func (e AuthorizeResponseValidationError) Cause() error + func (e AuthorizeResponseValidationError) Error() string + func (e AuthorizeResponseValidationError) ErrorName() string + func (e AuthorizeResponseValidationError) Field() string + func (e AuthorizeResponseValidationError) Key() bool + func (e AuthorizeResponseValidationError) Reason() string + type CreateSecretRequest struct + Description string + Expires int64 + Name string + func (*CreateSecretRequest) Descriptor() ([]byte, []int) + func (*CreateSecretRequest) ProtoMessage() + func (m *CreateSecretRequest) Validate() error + func (m *CreateSecretRequest) ValidateAll() error + func (x *CreateSecretRequest) GetDescription() string + func (x *CreateSecretRequest) GetExpires() int64 + func (x *CreateSecretRequest) GetName() string + func (x *CreateSecretRequest) ProtoReflect() protoreflect.Message + func (x *CreateSecretRequest) Reset() + func (x *CreateSecretRequest) String() string + type CreateSecretRequestMultiError []error + func (m CreateSecretRequestMultiError) AllErrors() []error + func (m CreateSecretRequestMultiError) Error() string + type CreateSecretRequestValidationError struct + func (e CreateSecretRequestValidationError) Cause() error + func (e CreateSecretRequestValidationError) Error() string + func (e CreateSecretRequestValidationError) ErrorName() string + func (e CreateSecretRequestValidationError) Field() string + func (e CreateSecretRequestValidationError) Key() bool + func (e CreateSecretRequestValidationError) Reason() string + type CreateUserRequest struct + Email string + Nickname string + Password string + Phone string + Username string + func (*CreateUserRequest) Descriptor() ([]byte, []int) + func (*CreateUserRequest) ProtoMessage() + func (m *CreateUserRequest) Validate() error + func (m *CreateUserRequest) ValidateAll() error + func (x *CreateUserRequest) GetEmail() string + func (x *CreateUserRequest) GetNickname() string + func (x *CreateUserRequest) GetPassword() string + func (x *CreateUserRequest) GetPhone() string + func (x *CreateUserRequest) GetUsername() string + func (x *CreateUserRequest) ProtoReflect() protoreflect.Message + func (x *CreateUserRequest) Reset() + func (x *CreateUserRequest) String() string + type CreateUserRequestMultiError []error + func (m CreateUserRequestMultiError) AllErrors() []error + func (m CreateUserRequestMultiError) Error() string + type CreateUserRequestValidationError struct + func (e CreateUserRequestValidationError) Cause() error + func (e CreateUserRequestValidationError) Error() string + func (e CreateUserRequestValidationError) ErrorName() string + func (e CreateUserRequestValidationError) Field() string + func (e CreateUserRequestValidationError) Key() bool + func (e CreateUserRequestValidationError) Reason() string + type DeleteSecretRequest struct + Name string + func (*DeleteSecretRequest) Descriptor() ([]byte, []int) + func (*DeleteSecretRequest) ProtoMessage() + func (m *DeleteSecretRequest) Validate() error + func (m *DeleteSecretRequest) ValidateAll() error + func (x *DeleteSecretRequest) GetName() string + func (x *DeleteSecretRequest) ProtoReflect() protoreflect.Message + func (x *DeleteSecretRequest) Reset() + func (x *DeleteSecretRequest) String() string + type DeleteSecretRequestMultiError []error + func (m DeleteSecretRequestMultiError) AllErrors() []error + func (m DeleteSecretRequestMultiError) Error() string + type DeleteSecretRequestValidationError struct + func (e DeleteSecretRequestValidationError) Cause() error + func (e DeleteSecretRequestValidationError) Error() string + func (e DeleteSecretRequestValidationError) ErrorName() string + func (e DeleteSecretRequestValidationError) Field() string + func (e DeleteSecretRequestValidationError) Key() bool + func (e DeleteSecretRequestValidationError) Reason() string + type DeleteUserRequest struct + Username string + func (*DeleteUserRequest) Descriptor() ([]byte, []int) + func (*DeleteUserRequest) ProtoMessage() + func (m *DeleteUserRequest) Validate() error + func (m *DeleteUserRequest) ValidateAll() error + func (x *DeleteUserRequest) GetUsername() string + func (x *DeleteUserRequest) ProtoReflect() protoreflect.Message + func (x *DeleteUserRequest) Reset() + func (x *DeleteUserRequest) String() string + type DeleteUserRequestMultiError []error + func (m DeleteUserRequestMultiError) AllErrors() []error + func (m DeleteUserRequestMultiError) Error() string + type DeleteUserRequestValidationError struct + func (e DeleteUserRequestValidationError) Cause() error + func (e DeleteUserRequestValidationError) Error() string + func (e DeleteUserRequestValidationError) ErrorName() string + func (e DeleteUserRequestValidationError) Field() string + func (e DeleteUserRequestValidationError) Key() bool + func (e DeleteUserRequestValidationError) Reason() string + type ErrorReason int32 + const ErrorReason_SecretCreateFailed + const ErrorReason_SecretNotFound + const ErrorReason_SecretReachMaxCount + const ErrorReason_UserAlreadyExists + const ErrorReason_UserCreateFailed + const ErrorReason_UserLoginFailed + const ErrorReason_UserNotFound + const ErrorReason_UserOperationForbidden + func (ErrorReason) Descriptor() protoreflect.EnumDescriptor + func (ErrorReason) EnumDescriptor() ([]byte, []int) + func (ErrorReason) Type() protoreflect.EnumType + func (x ErrorReason) Enum() *ErrorReason + func (x ErrorReason) Number() protoreflect.EnumNumber + func (x ErrorReason) String() string + type GetSecretRequest struct + Name string + func (*GetSecretRequest) Descriptor() ([]byte, []int) + func (*GetSecretRequest) ProtoMessage() + func (m *GetSecretRequest) Validate() error + func (m *GetSecretRequest) ValidateAll() error + func (x *GetSecretRequest) GetName() string + func (x *GetSecretRequest) ProtoReflect() protoreflect.Message + func (x *GetSecretRequest) Reset() + func (x *GetSecretRequest) String() string + type GetSecretRequestMultiError []error + func (m GetSecretRequestMultiError) AllErrors() []error + func (m GetSecretRequestMultiError) Error() string + type GetSecretRequestValidationError struct + func (e GetSecretRequestValidationError) Cause() error + func (e GetSecretRequestValidationError) Error() string + func (e GetSecretRequestValidationError) ErrorName() string + func (e GetSecretRequestValidationError) Field() string + func (e GetSecretRequestValidationError) Key() bool + func (e GetSecretRequestValidationError) Reason() string + type GetUserRequest struct + Username string + func (*GetUserRequest) Descriptor() ([]byte, []int) + func (*GetUserRequest) ProtoMessage() + func (m *GetUserRequest) Validate() error + func (m *GetUserRequest) ValidateAll() error + func (x *GetUserRequest) GetUsername() string + func (x *GetUserRequest) ProtoReflect() protoreflect.Message + func (x *GetUserRequest) Reset() + func (x *GetUserRequest) String() string + type GetUserRequestMultiError []error + func (m GetUserRequestMultiError) AllErrors() []error + func (m GetUserRequestMultiError) Error() string + type GetUserRequestValidationError struct + func (e GetUserRequestValidationError) Cause() error + func (e GetUserRequestValidationError) Error() string + func (e GetUserRequestValidationError) ErrorName() string + func (e GetUserRequestValidationError) Field() string + func (e GetUserRequestValidationError) Key() bool + func (e GetUserRequestValidationError) Reason() string + type ListSecretRequest struct + Limit int64 + Offset int64 + func (*ListSecretRequest) Descriptor() ([]byte, []int) + func (*ListSecretRequest) ProtoMessage() + func (m *ListSecretRequest) Validate() error + func (m *ListSecretRequest) ValidateAll() error + func (x *ListSecretRequest) GetLimit() int64 + func (x *ListSecretRequest) GetOffset() int64 + func (x *ListSecretRequest) ProtoReflect() protoreflect.Message + func (x *ListSecretRequest) Reset() + func (x *ListSecretRequest) String() string + type ListSecretRequestMultiError []error + func (m ListSecretRequestMultiError) AllErrors() []error + func (m ListSecretRequestMultiError) Error() string + type ListSecretRequestValidationError struct + func (e ListSecretRequestValidationError) Cause() error + func (e ListSecretRequestValidationError) Error() string + func (e ListSecretRequestValidationError) ErrorName() string + func (e ListSecretRequestValidationError) Field() string + func (e ListSecretRequestValidationError) Key() bool + func (e ListSecretRequestValidationError) Reason() string + type ListSecretResponse struct + Secrets []*SecretReply + TotalCount int64 + func (*ListSecretResponse) Descriptor() ([]byte, []int) + func (*ListSecretResponse) ProtoMessage() + func (m *ListSecretResponse) Validate() error + func (m *ListSecretResponse) ValidateAll() error + func (x *ListSecretResponse) GetSecrets() []*SecretReply + func (x *ListSecretResponse) GetTotalCount() int64 + func (x *ListSecretResponse) ProtoReflect() protoreflect.Message + func (x *ListSecretResponse) Reset() + func (x *ListSecretResponse) String() string + type ListSecretResponseMultiError []error + func (m ListSecretResponseMultiError) AllErrors() []error + func (m ListSecretResponseMultiError) Error() string + type ListSecretResponseValidationError struct + func (e ListSecretResponseValidationError) Cause() error + func (e ListSecretResponseValidationError) Error() string + func (e ListSecretResponseValidationError) ErrorName() string + func (e ListSecretResponseValidationError) Field() string + func (e ListSecretResponseValidationError) Key() bool + func (e ListSecretResponseValidationError) Reason() string + type ListUserRequest struct + Limit int64 + Offset int64 + func (*ListUserRequest) Descriptor() ([]byte, []int) + func (*ListUserRequest) ProtoMessage() + func (m *ListUserRequest) Validate() error + func (m *ListUserRequest) ValidateAll() error + func (x *ListUserRequest) GetLimit() int64 + func (x *ListUserRequest) GetOffset() int64 + func (x *ListUserRequest) ProtoReflect() protoreflect.Message + func (x *ListUserRequest) Reset() + func (x *ListUserRequest) String() string + type ListUserRequestMultiError []error + func (m ListUserRequestMultiError) AllErrors() []error + func (m ListUserRequestMultiError) Error() string + type ListUserRequestValidationError struct + func (e ListUserRequestValidationError) Cause() error + func (e ListUserRequestValidationError) Error() string + func (e ListUserRequestValidationError) ErrorName() string + func (e ListUserRequestValidationError) Field() string + func (e ListUserRequestValidationError) Key() bool + func (e ListUserRequestValidationError) Reason() string + type ListUserResponse struct + TotalCount int64 + Users []*UserReply + func (*ListUserResponse) Descriptor() ([]byte, []int) + func (*ListUserResponse) ProtoMessage() + func (m *ListUserResponse) Validate() error + func (m *ListUserResponse) ValidateAll() error + func (x *ListUserResponse) GetTotalCount() int64 + func (x *ListUserResponse) GetUsers() []*UserReply + func (x *ListUserResponse) ProtoReflect() protoreflect.Message + func (x *ListUserResponse) Reset() + func (x *ListUserResponse) String() string + type ListUserResponseMultiError []error + func (m ListUserResponseMultiError) AllErrors() []error + func (m ListUserResponseMultiError) Error() string + type ListUserResponseValidationError struct + func (e ListUserResponseValidationError) Cause() error + func (e ListUserResponseValidationError) Error() string + func (e ListUserResponseValidationError) ErrorName() string + func (e ListUserResponseValidationError) Field() string + func (e ListUserResponseValidationError) Key() bool + func (e ListUserResponseValidationError) Reason() string + type LoginReply struct + AccessToken string + ExpiresAt int64 + RefreshToken string + Type string + func (*LoginReply) Descriptor() ([]byte, []int) + func (*LoginReply) ProtoMessage() + func (m *LoginReply) Validate() error + func (m *LoginReply) ValidateAll() error + func (x *LoginReply) GetAccessToken() string + func (x *LoginReply) GetExpiresAt() int64 + func (x *LoginReply) GetRefreshToken() string + func (x *LoginReply) GetType() string + 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 + 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) 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 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 RefreshTokenRequest struct + func (*RefreshTokenRequest) Descriptor() ([]byte, []int) + func (*RefreshTokenRequest) ProtoMessage() + func (m *RefreshTokenRequest) Validate() error + func (m *RefreshTokenRequest) ValidateAll() error + 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 SecretReply struct + CreatedAt *timestamppb.Timestamp + Description string + Expires int64 + Name string + SecretID string + SecretKey string + Status int32 + UpdatedAt *timestamppb.Timestamp + UserID string + func (*SecretReply) Descriptor() ([]byte, []int) + func (*SecretReply) ProtoMessage() + func (m *SecretReply) Validate() error + func (m *SecretReply) ValidateAll() error + func (x *SecretReply) GetCreatedAt() *timestamppb.Timestamp + func (x *SecretReply) GetDescription() string + func (x *SecretReply) GetExpires() int64 + func (x *SecretReply) GetName() string + func (x *SecretReply) GetSecretID() string + func (x *SecretReply) GetSecretKey() string + func (x *SecretReply) GetStatus() int32 + func (x *SecretReply) GetUpdatedAt() *timestamppb.Timestamp + func (x *SecretReply) GetUserID() string + func (x *SecretReply) ProtoReflect() protoreflect.Message + func (x *SecretReply) Reset() + func (x *SecretReply) String() string + type SecretReplyMultiError []error + func (m SecretReplyMultiError) AllErrors() []error + func (m SecretReplyMultiError) Error() string + type SecretReplyValidationError struct + func (e SecretReplyValidationError) Cause() error + func (e SecretReplyValidationError) Error() string + func (e SecretReplyValidationError) ErrorName() string + func (e SecretReplyValidationError) Field() string + func (e SecretReplyValidationError) Key() bool + func (e SecretReplyValidationError) Reason() string + type UnimplementedUserCenterServer struct + func (UnimplementedUserCenterServer) Auth(context.Context, *AuthRequest) (*AuthResponse, error) + func (UnimplementedUserCenterServer) Authenticate(context.Context, *AuthenticateRequest) (*AuthenticateResponse, error) + func (UnimplementedUserCenterServer) Authorize(context.Context, *AuthorizeRequest) (*AuthorizeResponse, error) + func (UnimplementedUserCenterServer) CreateSecret(context.Context, *CreateSecretRequest) (*SecretReply, error) + func (UnimplementedUserCenterServer) CreateUser(context.Context, *CreateUserRequest) (*UserReply, error) + func (UnimplementedUserCenterServer) DeleteSecret(context.Context, *DeleteSecretRequest) (*emptypb.Empty, error) + func (UnimplementedUserCenterServer) DeleteUser(context.Context, *DeleteUserRequest) (*emptypb.Empty, error) + func (UnimplementedUserCenterServer) GetSecret(context.Context, *GetSecretRequest) (*SecretReply, error) + func (UnimplementedUserCenterServer) GetUser(context.Context, *GetUserRequest) (*UserReply, error) + func (UnimplementedUserCenterServer) ListSecret(context.Context, *ListSecretRequest) (*ListSecretResponse, error) + func (UnimplementedUserCenterServer) ListUser(context.Context, *ListUserRequest) (*ListUserResponse, error) + func (UnimplementedUserCenterServer) Login(context.Context, *LoginRequest) (*LoginReply, error) + func (UnimplementedUserCenterServer) Logout(context.Context, *LogoutRequest) (*emptypb.Empty, error) + func (UnimplementedUserCenterServer) RefreshToken(context.Context, *RefreshTokenRequest) (*LoginReply, error) + func (UnimplementedUserCenterServer) UpdatePassword(context.Context, *UpdatePasswordRequest) (*emptypb.Empty, error) + func (UnimplementedUserCenterServer) UpdateSecret(context.Context, *UpdateSecretRequest) (*emptypb.Empty, error) + func (UnimplementedUserCenterServer) UpdateUser(context.Context, *UpdateUserRequest) (*emptypb.Empty, error) + type UnsafeUserCenterServer interface + type UpdatePasswordRequest struct + NewPassword string + OldPassword string + Username string + func (*UpdatePasswordRequest) Descriptor() ([]byte, []int) + func (*UpdatePasswordRequest) ProtoMessage() + func (m *UpdatePasswordRequest) Validate() error + func (m *UpdatePasswordRequest) ValidateAll() error + func (x *UpdatePasswordRequest) GetNewPassword() string + func (x *UpdatePasswordRequest) GetOldPassword() string + func (x *UpdatePasswordRequest) GetUsername() string + func (x *UpdatePasswordRequest) ProtoReflect() protoreflect.Message + func (x *UpdatePasswordRequest) Reset() + func (x *UpdatePasswordRequest) String() string + type UpdatePasswordRequestMultiError []error + func (m UpdatePasswordRequestMultiError) AllErrors() []error + func (m UpdatePasswordRequestMultiError) Error() string + type UpdatePasswordRequestValidationError struct + func (e UpdatePasswordRequestValidationError) Cause() error + func (e UpdatePasswordRequestValidationError) Error() string + func (e UpdatePasswordRequestValidationError) ErrorName() string + func (e UpdatePasswordRequestValidationError) Field() string + func (e UpdatePasswordRequestValidationError) Key() bool + func (e UpdatePasswordRequestValidationError) Reason() string + type UpdateSecretRequest struct + Description *string + Expires *int64 + Name string + Status *int32 + func (*UpdateSecretRequest) Descriptor() ([]byte, []int) + func (*UpdateSecretRequest) ProtoMessage() + func (m *UpdateSecretRequest) Validate() error + func (m *UpdateSecretRequest) ValidateAll() error + func (x *UpdateSecretRequest) GetDescription() string + func (x *UpdateSecretRequest) GetExpires() int64 + func (x *UpdateSecretRequest) GetName() string + func (x *UpdateSecretRequest) GetStatus() int32 + func (x *UpdateSecretRequest) ProtoReflect() protoreflect.Message + func (x *UpdateSecretRequest) Reset() + func (x *UpdateSecretRequest) String() string + type UpdateSecretRequestMultiError []error + func (m UpdateSecretRequestMultiError) AllErrors() []error + func (m UpdateSecretRequestMultiError) Error() string + type UpdateSecretRequestValidationError struct + func (e UpdateSecretRequestValidationError) Cause() error + func (e UpdateSecretRequestValidationError) Error() string + func (e UpdateSecretRequestValidationError) ErrorName() string + func (e UpdateSecretRequestValidationError) Field() string + func (e UpdateSecretRequestValidationError) Key() bool + func (e UpdateSecretRequestValidationError) Reason() string + type UpdateUserRequest struct + Email *string + Nickname *string + Phone *string + Username string + func (*UpdateUserRequest) Descriptor() ([]byte, []int) + func (*UpdateUserRequest) ProtoMessage() + func (m *UpdateUserRequest) Validate() error + func (m *UpdateUserRequest) ValidateAll() error + func (x *UpdateUserRequest) GetEmail() string + func (x *UpdateUserRequest) GetNickname() string + func (x *UpdateUserRequest) GetPhone() string + func (x *UpdateUserRequest) GetUsername() string + func (x *UpdateUserRequest) ProtoReflect() protoreflect.Message + func (x *UpdateUserRequest) Reset() + func (x *UpdateUserRequest) String() string + type UpdateUserRequestMultiError []error + func (m UpdateUserRequestMultiError) AllErrors() []error + func (m UpdateUserRequestMultiError) Error() string + type UpdateUserRequestValidationError struct + func (e UpdateUserRequestValidationError) Cause() error + func (e UpdateUserRequestValidationError) Error() string + func (e UpdateUserRequestValidationError) ErrorName() string + func (e UpdateUserRequestValidationError) Field() string + func (e UpdateUserRequestValidationError) Key() bool + func (e UpdateUserRequestValidationError) Reason() string + type UserCenterClient interface + Auth func(ctx context.Context, in *AuthRequest, opts ...grpc.CallOption) (*AuthResponse, error) + Authenticate func(ctx context.Context, in *AuthenticateRequest, opts ...grpc.CallOption) (*AuthenticateResponse, error) + Authorize func(ctx context.Context, in *AuthorizeRequest, opts ...grpc.CallOption) (*AuthorizeResponse, error) + CreateSecret func(ctx context.Context, in *CreateSecretRequest, opts ...grpc.CallOption) (*SecretReply, error) + CreateUser func(ctx context.Context, in *CreateUserRequest, opts ...grpc.CallOption) (*UserReply, error) + DeleteSecret func(ctx context.Context, in *DeleteSecretRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) + DeleteUser func(ctx context.Context, in *DeleteUserRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) + GetSecret func(ctx context.Context, in *GetSecretRequest, opts ...grpc.CallOption) (*SecretReply, error) + GetUser func(ctx context.Context, in *GetUserRequest, opts ...grpc.CallOption) (*UserReply, error) + ListSecret func(ctx context.Context, in *ListSecretRequest, opts ...grpc.CallOption) (*ListSecretResponse, error) + ListUser func(ctx context.Context, in *ListUserRequest, opts ...grpc.CallOption) (*ListUserResponse, error) + Login func(ctx context.Context, in *LoginRequest, opts ...grpc.CallOption) (*LoginReply, error) + Logout func(ctx context.Context, in *LogoutRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) + RefreshToken func(ctx context.Context, in *RefreshTokenRequest, opts ...grpc.CallOption) (*LoginReply, error) + UpdatePassword func(ctx context.Context, in *UpdatePasswordRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) + UpdateSecret func(ctx context.Context, in *UpdateSecretRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) + UpdateUser func(ctx context.Context, in *UpdateUserRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) + func NewUserCenterClient(cc grpc.ClientConnInterface) UserCenterClient + type UserCenterHTTPClient interface + Auth func(ctx context.Context, req *AuthRequest, opts ...http.CallOption) (rsp *AuthResponse, err error) + Authenticate func(ctx context.Context, req *AuthenticateRequest, opts ...http.CallOption) (rsp *AuthenticateResponse, err error) + Authorize func(ctx context.Context, req *AuthorizeRequest, opts ...http.CallOption) (rsp *AuthorizeResponse, err error) + CreateSecret func(ctx context.Context, req *CreateSecretRequest, opts ...http.CallOption) (rsp *SecretReply, err error) + CreateUser func(ctx context.Context, req *CreateUserRequest, opts ...http.CallOption) (rsp *UserReply, err error) + DeleteSecret func(ctx context.Context, req *DeleteSecretRequest, opts ...http.CallOption) (rsp *emptypb.Empty, err error) + DeleteUser func(ctx context.Context, req *DeleteUserRequest, opts ...http.CallOption) (rsp *emptypb.Empty, err error) + GetSecret func(ctx context.Context, req *GetSecretRequest, opts ...http.CallOption) (rsp *SecretReply, err error) + GetUser func(ctx context.Context, req *GetUserRequest, opts ...http.CallOption) (rsp *UserReply, err error) + ListSecret func(ctx context.Context, req *ListSecretRequest, opts ...http.CallOption) (rsp *ListSecretResponse, err error) + ListUser func(ctx context.Context, req *ListUserRequest, opts ...http.CallOption) (rsp *ListUserResponse, 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 *emptypb.Empty, err error) + RefreshToken func(ctx context.Context, req *RefreshTokenRequest, opts ...http.CallOption) (rsp *LoginReply, err error) + UpdatePassword func(ctx context.Context, req *UpdatePasswordRequest, opts ...http.CallOption) (rsp *emptypb.Empty, err error) + UpdateSecret func(ctx context.Context, req *UpdateSecretRequest, opts ...http.CallOption) (rsp *emptypb.Empty, err error) + UpdateUser func(ctx context.Context, req *UpdateUserRequest, opts ...http.CallOption) (rsp *emptypb.Empty, err error) + func NewUserCenterHTTPClient(client *http.Client) UserCenterHTTPClient + type UserCenterHTTPClientImpl struct + func (c *UserCenterHTTPClientImpl) Auth(ctx context.Context, in *AuthRequest, opts ...http.CallOption) (*AuthResponse, error) + func (c *UserCenterHTTPClientImpl) Authenticate(ctx context.Context, in *AuthenticateRequest, opts ...http.CallOption) (*AuthenticateResponse, error) + func (c *UserCenterHTTPClientImpl) Authorize(ctx context.Context, in *AuthorizeRequest, opts ...http.CallOption) (*AuthorizeResponse, error) + func (c *UserCenterHTTPClientImpl) CreateSecret(ctx context.Context, in *CreateSecretRequest, opts ...http.CallOption) (*SecretReply, error) + func (c *UserCenterHTTPClientImpl) CreateUser(ctx context.Context, in *CreateUserRequest, opts ...http.CallOption) (*UserReply, error) + func (c *UserCenterHTTPClientImpl) DeleteSecret(ctx context.Context, in *DeleteSecretRequest, opts ...http.CallOption) (*emptypb.Empty, error) + func (c *UserCenterHTTPClientImpl) DeleteUser(ctx context.Context, in *DeleteUserRequest, opts ...http.CallOption) (*emptypb.Empty, error) + func (c *UserCenterHTTPClientImpl) GetSecret(ctx context.Context, in *GetSecretRequest, opts ...http.CallOption) (*SecretReply, error) + func (c *UserCenterHTTPClientImpl) GetUser(ctx context.Context, in *GetUserRequest, opts ...http.CallOption) (*UserReply, error) + func (c *UserCenterHTTPClientImpl) ListSecret(ctx context.Context, in *ListSecretRequest, opts ...http.CallOption) (*ListSecretResponse, error) + func (c *UserCenterHTTPClientImpl) ListUser(ctx context.Context, in *ListUserRequest, opts ...http.CallOption) (*ListUserResponse, error) + func (c *UserCenterHTTPClientImpl) Login(ctx context.Context, in *LoginRequest, opts ...http.CallOption) (*LoginReply, error) + func (c *UserCenterHTTPClientImpl) Logout(ctx context.Context, in *LogoutRequest, opts ...http.CallOption) (*emptypb.Empty, error) + func (c *UserCenterHTTPClientImpl) RefreshToken(ctx context.Context, in *RefreshTokenRequest, opts ...http.CallOption) (*LoginReply, error) + func (c *UserCenterHTTPClientImpl) UpdatePassword(ctx context.Context, in *UpdatePasswordRequest, opts ...http.CallOption) (*emptypb.Empty, error) + func (c *UserCenterHTTPClientImpl) UpdateSecret(ctx context.Context, in *UpdateSecretRequest, opts ...http.CallOption) (*emptypb.Empty, error) + func (c *UserCenterHTTPClientImpl) UpdateUser(ctx context.Context, in *UpdateUserRequest, opts ...http.CallOption) (*emptypb.Empty, error) + type UserCenterHTTPServer interface + Auth func(context.Context, *AuthRequest) (*AuthResponse, error) + Authenticate func(context.Context, *AuthenticateRequest) (*AuthenticateResponse, error) + Authorize func(context.Context, *AuthorizeRequest) (*AuthorizeResponse, error) + CreateSecret func(context.Context, *CreateSecretRequest) (*SecretReply, error) + CreateUser func(context.Context, *CreateUserRequest) (*UserReply, error) + DeleteSecret func(context.Context, *DeleteSecretRequest) (*emptypb.Empty, error) + DeleteUser func(context.Context, *DeleteUserRequest) (*emptypb.Empty, error) + GetSecret func(context.Context, *GetSecretRequest) (*SecretReply, error) + GetUser func(context.Context, *GetUserRequest) (*UserReply, error) + ListSecret func(context.Context, *ListSecretRequest) (*ListSecretResponse, error) + ListUser func(context.Context, *ListUserRequest) (*ListUserResponse, error) + Login func(context.Context, *LoginRequest) (*LoginReply, error) + Logout func(context.Context, *LogoutRequest) (*emptypb.Empty, error) + RefreshToken func(context.Context, *RefreshTokenRequest) (*LoginReply, error) + UpdatePassword func(context.Context, *UpdatePasswordRequest) (*emptypb.Empty, error) + UpdateSecret func(context.Context, *UpdateSecretRequest) (*emptypb.Empty, error) + UpdateUser func(context.Context, *UpdateUserRequest) (*emptypb.Empty, error) + type UserCenterServer interface + Auth func(context.Context, *AuthRequest) (*AuthResponse, error) + Authenticate func(context.Context, *AuthenticateRequest) (*AuthenticateResponse, error) + Authorize func(context.Context, *AuthorizeRequest) (*AuthorizeResponse, error) + CreateSecret func(context.Context, *CreateSecretRequest) (*SecretReply, error) + CreateUser func(context.Context, *CreateUserRequest) (*UserReply, error) + DeleteSecret func(context.Context, *DeleteSecretRequest) (*emptypb.Empty, error) + DeleteUser func(context.Context, *DeleteUserRequest) (*emptypb.Empty, error) + GetSecret func(context.Context, *GetSecretRequest) (*SecretReply, error) + GetUser func(context.Context, *GetUserRequest) (*UserReply, error) + ListSecret func(context.Context, *ListSecretRequest) (*ListSecretResponse, error) + ListUser func(context.Context, *ListUserRequest) (*ListUserResponse, error) + Login func(context.Context, *LoginRequest) (*LoginReply, error) + Logout func(context.Context, *LogoutRequest) (*emptypb.Empty, error) + RefreshToken func(context.Context, *RefreshTokenRequest) (*LoginReply, error) + UpdatePassword func(context.Context, *UpdatePasswordRequest) (*emptypb.Empty, error) + UpdateSecret func(context.Context, *UpdateSecretRequest) (*emptypb.Empty, error) + UpdateUser func(context.Context, *UpdateUserRequest) (*emptypb.Empty, error) + type UserReply struct + CreatedAt *timestamppb.Timestamp + Email string + Nickname string + Password string + Phone string + Secrets int64 + UpdatedAt *timestamppb.Timestamp + UserID string + Username string + func (*UserReply) Descriptor() ([]byte, []int) + func (*UserReply) ProtoMessage() + func (m *UserReply) Validate() error + func (m *UserReply) ValidateAll() error + func (x *UserReply) GetCreatedAt() *timestamppb.Timestamp + func (x *UserReply) GetEmail() string + func (x *UserReply) GetNickname() string + func (x *UserReply) GetPassword() string + func (x *UserReply) GetPhone() string + func (x *UserReply) GetSecrets() int64 + func (x *UserReply) GetUpdatedAt() *timestamppb.Timestamp + func (x *UserReply) GetUserID() string + func (x *UserReply) GetUsername() string + func (x *UserReply) ProtoReflect() protoreflect.Message + func (x *UserReply) Reset() + func (x *UserReply) String() string + type UserReplyMultiError []error + func (m UserReplyMultiError) AllErrors() []error + func (m UserReplyMultiError) Error() string + type UserReplyValidationError struct + func (e UserReplyValidationError) Cause() error + func (e UserReplyValidationError) Error() string + func (e UserReplyValidationError) ErrorName() string + func (e UserReplyValidationError) Field() string + func (e UserReplyValidationError) Key() bool + func (e UserReplyValidationError) Reason() string