Documentation ¶
Index ¶
- Constants
- Variables
- 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
- func (*AuthRequest) Descriptor() ([]byte, []int)deprecated
- func (x *AuthRequest) GetAct() string
- func (x *AuthRequest) GetObj() string
- func (x *AuthRequest) GetToken() string
- func (*AuthRequest) ProtoMessage()
- func (x *AuthRequest) ProtoReflect() protoreflect.Message
- func (x *AuthRequest) Reset()
- func (x *AuthRequest) String() string
- func (m *AuthRequest) Validate() error
- func (m *AuthRequest) ValidateAll() error
- type AuthRequestMultiError
- type AuthRequestValidationError
- 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
- func (*AuthResponse) Descriptor() ([]byte, []int)deprecated
- func (x *AuthResponse) GetAllowed() bool
- func (x *AuthResponse) GetUserID() string
- func (*AuthResponse) ProtoMessage()
- func (x *AuthResponse) ProtoReflect() protoreflect.Message
- func (x *AuthResponse) Reset()
- func (x *AuthResponse) String() string
- func (m *AuthResponse) Validate() error
- func (m *AuthResponse) ValidateAll() error
- type AuthResponseMultiError
- type AuthResponseValidationError
- 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
- func (*AuthenticateRequest) Descriptor() ([]byte, []int)deprecated
- func (x *AuthenticateRequest) GetToken() string
- func (*AuthenticateRequest) ProtoMessage()
- func (x *AuthenticateRequest) ProtoReflect() protoreflect.Message
- func (x *AuthenticateRequest) Reset()
- func (x *AuthenticateRequest) String() string
- func (m *AuthenticateRequest) Validate() error
- func (m *AuthenticateRequest) ValidateAll() error
- type AuthenticateRequestMultiError
- type AuthenticateRequestValidationError
- 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
- func (*AuthenticateResponse) Descriptor() ([]byte, []int)deprecated
- func (x *AuthenticateResponse) GetUserID() string
- func (*AuthenticateResponse) ProtoMessage()
- func (x *AuthenticateResponse) ProtoReflect() protoreflect.Message
- func (x *AuthenticateResponse) Reset()
- func (x *AuthenticateResponse) String() string
- func (m *AuthenticateResponse) Validate() error
- func (m *AuthenticateResponse) ValidateAll() error
- type AuthenticateResponseMultiError
- type AuthenticateResponseValidationError
- 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
- func (*AuthorizeRequest) Descriptor() ([]byte, []int)deprecated
- func (x *AuthorizeRequest) GetAct() string
- func (x *AuthorizeRequest) GetObj() string
- func (x *AuthorizeRequest) GetSub() string
- func (*AuthorizeRequest) ProtoMessage()
- func (x *AuthorizeRequest) ProtoReflect() protoreflect.Message
- func (x *AuthorizeRequest) Reset()
- func (x *AuthorizeRequest) String() string
- func (m *AuthorizeRequest) Validate() error
- func (m *AuthorizeRequest) ValidateAll() error
- type AuthorizeRequestMultiError
- type AuthorizeRequestValidationError
- 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
- func (*AuthorizeResponse) Descriptor() ([]byte, []int)deprecated
- func (x *AuthorizeResponse) GetAllowed() bool
- func (*AuthorizeResponse) ProtoMessage()
- func (x *AuthorizeResponse) ProtoReflect() protoreflect.Message
- func (x *AuthorizeResponse) Reset()
- func (x *AuthorizeResponse) String() string
- func (m *AuthorizeResponse) Validate() error
- func (m *AuthorizeResponse) ValidateAll() error
- type AuthorizeResponseMultiError
- type AuthorizeResponseValidationError
- 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
- func (*CreateSecretRequest) Descriptor() ([]byte, []int)deprecated
- func (x *CreateSecretRequest) GetDescription() string
- func (x *CreateSecretRequest) GetExpires() int64
- func (x *CreateSecretRequest) GetName() string
- func (*CreateSecretRequest) ProtoMessage()
- func (x *CreateSecretRequest) ProtoReflect() protoreflect.Message
- func (x *CreateSecretRequest) Reset()
- func (x *CreateSecretRequest) String() string
- func (m *CreateSecretRequest) Validate() error
- func (m *CreateSecretRequest) ValidateAll() error
- type CreateSecretRequestMultiError
- type CreateSecretRequestValidationError
- 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
- func (*CreateUserRequest) Descriptor() ([]byte, []int)deprecated
- 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 (*CreateUserRequest) ProtoMessage()
- func (x *CreateUserRequest) ProtoReflect() protoreflect.Message
- func (x *CreateUserRequest) Reset()
- func (x *CreateUserRequest) String() string
- func (m *CreateUserRequest) Validate() error
- func (m *CreateUserRequest) ValidateAll() error
- type CreateUserRequestMultiError
- type CreateUserRequestValidationError
- 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
- func (*DeleteSecretRequest) Descriptor() ([]byte, []int)deprecated
- func (x *DeleteSecretRequest) GetName() string
- func (*DeleteSecretRequest) ProtoMessage()
- func (x *DeleteSecretRequest) ProtoReflect() protoreflect.Message
- func (x *DeleteSecretRequest) Reset()
- func (x *DeleteSecretRequest) String() string
- func (m *DeleteSecretRequest) Validate() error
- func (m *DeleteSecretRequest) ValidateAll() error
- type DeleteSecretRequestMultiError
- type DeleteSecretRequestValidationError
- 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
- func (*DeleteUserRequest) Descriptor() ([]byte, []int)deprecated
- func (x *DeleteUserRequest) GetUsername() string
- func (*DeleteUserRequest) ProtoMessage()
- func (x *DeleteUserRequest) ProtoReflect() protoreflect.Message
- func (x *DeleteUserRequest) Reset()
- func (x *DeleteUserRequest) String() string
- func (m *DeleteUserRequest) Validate() error
- func (m *DeleteUserRequest) ValidateAll() error
- type DeleteUserRequestMultiError
- type DeleteUserRequestValidationError
- 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
- func (ErrorReason) Descriptor() protoreflect.EnumDescriptor
- func (x ErrorReason) Enum() *ErrorReason
- func (ErrorReason) EnumDescriptor() ([]byte, []int)deprecated
- func (x ErrorReason) Number() protoreflect.EnumNumber
- func (x ErrorReason) String() string
- func (ErrorReason) Type() protoreflect.EnumType
- type GetSecretRequest
- func (*GetSecretRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetSecretRequest) GetName() string
- func (*GetSecretRequest) ProtoMessage()
- func (x *GetSecretRequest) ProtoReflect() protoreflect.Message
- func (x *GetSecretRequest) Reset()
- func (x *GetSecretRequest) String() string
- func (m *GetSecretRequest) Validate() error
- func (m *GetSecretRequest) ValidateAll() error
- type GetSecretRequestMultiError
- type GetSecretRequestValidationError
- 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
- func (*GetUserRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetUserRequest) GetUsername() string
- func (*GetUserRequest) ProtoMessage()
- func (x *GetUserRequest) ProtoReflect() protoreflect.Message
- func (x *GetUserRequest) Reset()
- func (x *GetUserRequest) String() string
- func (m *GetUserRequest) Validate() error
- func (m *GetUserRequest) ValidateAll() error
- type GetUserRequestMultiError
- type GetUserRequestValidationError
- 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
- func (*ListSecretRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ListSecretRequest) GetLimit() int64
- func (x *ListSecretRequest) GetOffset() int64
- func (*ListSecretRequest) ProtoMessage()
- func (x *ListSecretRequest) ProtoReflect() protoreflect.Message
- func (x *ListSecretRequest) Reset()
- func (x *ListSecretRequest) String() string
- func (m *ListSecretRequest) Validate() error
- func (m *ListSecretRequest) ValidateAll() error
- type ListSecretRequestMultiError
- type ListSecretRequestValidationError
- 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
- func (*ListSecretResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ListSecretResponse) GetSecrets() []*SecretReply
- func (x *ListSecretResponse) GetTotalCount() int64
- func (*ListSecretResponse) ProtoMessage()
- func (x *ListSecretResponse) ProtoReflect() protoreflect.Message
- func (x *ListSecretResponse) Reset()
- func (x *ListSecretResponse) String() string
- func (m *ListSecretResponse) Validate() error
- func (m *ListSecretResponse) ValidateAll() error
- type ListSecretResponseMultiError
- type ListSecretResponseValidationError
- 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
- func (*ListUserRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ListUserRequest) GetLimit() int64
- func (x *ListUserRequest) GetOffset() int64
- func (*ListUserRequest) ProtoMessage()
- func (x *ListUserRequest) ProtoReflect() protoreflect.Message
- func (x *ListUserRequest) Reset()
- func (x *ListUserRequest) String() string
- func (m *ListUserRequest) Validate() error
- func (m *ListUserRequest) ValidateAll() error
- type ListUserRequestMultiError
- type ListUserRequestValidationError
- 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
- func (*ListUserResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ListUserResponse) GetTotalCount() int64
- func (x *ListUserResponse) GetUsers() []*UserReply
- func (*ListUserResponse) ProtoMessage()
- func (x *ListUserResponse) ProtoReflect() protoreflect.Message
- func (x *ListUserResponse) Reset()
- func (x *ListUserResponse) String() string
- func (m *ListUserResponse) Validate() error
- func (m *ListUserResponse) ValidateAll() error
- type ListUserResponseMultiError
- type ListUserResponseValidationError
- 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
- func (*LoginReply) Descriptor() ([]byte, []int)deprecated
- func (x *LoginReply) GetAccessToken() string
- func (x *LoginReply) GetExpiresAt() int64
- func (x *LoginReply) GetRefreshToken() string
- func (x *LoginReply) GetType() 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 LoginRequest
- func (*LoginRequest) Descriptor() ([]byte, []int)deprecated
- func (x *LoginRequest) GetPassword() string
- func (x *LoginRequest) GetUsername() string
- func (*LoginRequest) ProtoMessage()
- func (x *LoginRequest) ProtoReflect() protoreflect.Message
- func (x *LoginRequest) Reset()
- func (x *LoginRequest) String() string
- func (m *LoginRequest) Validate() error
- func (m *LoginRequest) ValidateAll() error
- type LoginRequestMultiError
- type LoginRequestValidationError
- 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
- func (*LogoutRequest) Descriptor() ([]byte, []int)deprecated
- func (*LogoutRequest) ProtoMessage()
- func (x *LogoutRequest) ProtoReflect() protoreflect.Message
- func (x *LogoutRequest) Reset()
- func (x *LogoutRequest) String() string
- func (m *LogoutRequest) Validate() error
- func (m *LogoutRequest) ValidateAll() error
- type LogoutRequestMultiError
- type LogoutRequestValidationError
- 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
- func (*RefreshTokenRequest) Descriptor() ([]byte, []int)deprecated
- func (*RefreshTokenRequest) ProtoMessage()
- func (x *RefreshTokenRequest) ProtoReflect() protoreflect.Message
- func (x *RefreshTokenRequest) Reset()
- func (x *RefreshTokenRequest) String() string
- func (m *RefreshTokenRequest) Validate() error
- func (m *RefreshTokenRequest) ValidateAll() error
- type RefreshTokenRequestMultiError
- type RefreshTokenRequestValidationError
- 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
- func (*SecretReply) Descriptor() ([]byte, []int)deprecated
- 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 (*SecretReply) ProtoMessage()
- func (x *SecretReply) ProtoReflect() protoreflect.Message
- func (x *SecretReply) Reset()
- func (x *SecretReply) String() string
- func (m *SecretReply) Validate() error
- func (m *SecretReply) ValidateAll() error
- type SecretReplyMultiError
- type SecretReplyValidationError
- 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
- 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
- type UpdatePasswordRequest
- func (*UpdatePasswordRequest) Descriptor() ([]byte, []int)deprecated
- func (x *UpdatePasswordRequest) GetNewPassword() string
- func (x *UpdatePasswordRequest) GetOldPassword() string
- func (x *UpdatePasswordRequest) GetUsername() string
- func (*UpdatePasswordRequest) ProtoMessage()
- func (x *UpdatePasswordRequest) ProtoReflect() protoreflect.Message
- func (x *UpdatePasswordRequest) Reset()
- func (x *UpdatePasswordRequest) String() string
- func (m *UpdatePasswordRequest) Validate() error
- func (m *UpdatePasswordRequest) ValidateAll() error
- type UpdatePasswordRequestMultiError
- type UpdatePasswordRequestValidationError
- 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
- func (*UpdateSecretRequest) Descriptor() ([]byte, []int)deprecated
- func (x *UpdateSecretRequest) GetDescription() string
- func (x *UpdateSecretRequest) GetExpires() int64
- func (x *UpdateSecretRequest) GetName() string
- func (x *UpdateSecretRequest) GetStatus() int32
- func (*UpdateSecretRequest) ProtoMessage()
- func (x *UpdateSecretRequest) ProtoReflect() protoreflect.Message
- func (x *UpdateSecretRequest) Reset()
- func (x *UpdateSecretRequest) String() string
- func (m *UpdateSecretRequest) Validate() error
- func (m *UpdateSecretRequest) ValidateAll() error
- type UpdateSecretRequestMultiError
- type UpdateSecretRequestValidationError
- 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
- func (*UpdateUserRequest) Descriptor() ([]byte, []int)deprecated
- func (x *UpdateUserRequest) GetEmail() string
- func (x *UpdateUserRequest) GetNickname() string
- func (x *UpdateUserRequest) GetPhone() string
- func (x *UpdateUserRequest) GetUsername() string
- func (*UpdateUserRequest) ProtoMessage()
- func (x *UpdateUserRequest) ProtoReflect() protoreflect.Message
- func (x *UpdateUserRequest) Reset()
- func (x *UpdateUserRequest) String() string
- func (m *UpdateUserRequest) Validate() error
- func (m *UpdateUserRequest) ValidateAll() error
- type UpdateUserRequestMultiError
- type UpdateUserRequestValidationError
- 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
- type UserCenterHTTPClient
- type UserCenterHTTPClientImpl
- 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
- type UserCenterServer
- type UserReply
- func (*UserReply) Descriptor() ([]byte, []int)deprecated
- 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 (*UserReply) ProtoMessage()
- func (x *UserReply) ProtoReflect() protoreflect.Message
- func (x *UserReply) Reset()
- func (x *UserReply) String() string
- func (m *UserReply) Validate() error
- func (m *UserReply) ValidateAll() error
- type UserReplyMultiError
- type UserReplyValidationError
Constants ¶
const ( UserCenter_Login_FullMethodName = "/usercenter.v1.UserCenter/Login" UserCenter_Logout_FullMethodName = "/usercenter.v1.UserCenter/Logout" UserCenter_RefreshToken_FullMethodName = "/usercenter.v1.UserCenter/RefreshToken" UserCenter_Authenticate_FullMethodName = "/usercenter.v1.UserCenter/Authenticate" UserCenter_Authorize_FullMethodName = "/usercenter.v1.UserCenter/Authorize" UserCenter_Auth_FullMethodName = "/usercenter.v1.UserCenter/Auth" UserCenter_CreateUser_FullMethodName = "/usercenter.v1.UserCenter/CreateUser" UserCenter_ListUser_FullMethodName = "/usercenter.v1.UserCenter/ListUser" UserCenter_GetUser_FullMethodName = "/usercenter.v1.UserCenter/GetUser" UserCenter_UpdateUser_FullMethodName = "/usercenter.v1.UserCenter/UpdateUser" UserCenter_DeleteUser_FullMethodName = "/usercenter.v1.UserCenter/DeleteUser" UserCenter_UpdatePassword_FullMethodName = "/usercenter.v1.UserCenter/UpdatePassword" UserCenter_CreateSecret_FullMethodName = "/usercenter.v1.UserCenter/CreateSecret" UserCenter_ListSecret_FullMethodName = "/usercenter.v1.UserCenter/ListSecret" UserCenter_GetSecret_FullMethodName = "/usercenter.v1.UserCenter/GetSecret" UserCenter_UpdateSecret_FullMethodName = "/usercenter.v1.UserCenter/UpdateSecret" UserCenter_DeleteSecret_FullMethodName = "/usercenter.v1.UserCenter/DeleteSecret" )
const OperationUserCenterAuth = "/usercenter.v1.UserCenter/Auth"
const OperationUserCenterAuthenticate = "/usercenter.v1.UserCenter/Authenticate"
const OperationUserCenterAuthorize = "/usercenter.v1.UserCenter/Authorize"
const OperationUserCenterCreateSecret = "/usercenter.v1.UserCenter/CreateSecret"
const OperationUserCenterCreateUser = "/usercenter.v1.UserCenter/CreateUser"
const OperationUserCenterDeleteSecret = "/usercenter.v1.UserCenter/DeleteSecret"
const OperationUserCenterDeleteUser = "/usercenter.v1.UserCenter/DeleteUser"
const OperationUserCenterGetSecret = "/usercenter.v1.UserCenter/GetSecret"
const OperationUserCenterGetUser = "/usercenter.v1.UserCenter/GetUser"
const OperationUserCenterListSecret = "/usercenter.v1.UserCenter/ListSecret"
const OperationUserCenterListUser = "/usercenter.v1.UserCenter/ListUser"
const OperationUserCenterLogin = "/usercenter.v1.UserCenter/Login"
const OperationUserCenterLogout = "/usercenter.v1.UserCenter/Logout"
const OperationUserCenterRefreshToken = "/usercenter.v1.UserCenter/RefreshToken"
const OperationUserCenterUpdatePassword = "/usercenter.v1.UserCenter/UpdatePassword"
const OperationUserCenterUpdateSecret = "/usercenter.v1.UserCenter/UpdateSecret"
const OperationUserCenterUpdateUser = "/usercenter.v1.UserCenter/UpdateUser"
Variables ¶
var ( ErrorReason_name = map[int32]string{ 0: "UserLoginFailed", 1: "UserAlreadyExists", 2: "UserNotFound", 3: "UserCreateFailed", 4: "UserOperationForbidden", 5: "SecretReachMaxCount", 6: "SecretNotFound", 7: "SecretCreateFailed", } ErrorReason_value = map[string]int32{ "UserLoginFailed": 0, "UserAlreadyExists": 1, "UserNotFound": 2, "UserCreateFailed": 3, "UserOperationForbidden": 4, "SecretReachMaxCount": 5, "SecretNotFound": 6, "SecretCreateFailed": 7, } )
Enum value maps for ErrorReason.
var File_usercenter_v1_errors_proto protoreflect.FileDescriptor
var File_usercenter_v1_usercenter_proto protoreflect.FileDescriptor
var UserCenter_ServiceDesc = grpc.ServiceDesc{ ServiceName: "usercenter.v1.UserCenter", HandlerType: (*UserCenterServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "Login", Handler: _UserCenter_Login_Handler, }, { MethodName: "Logout", Handler: _UserCenter_Logout_Handler, }, { MethodName: "RefreshToken", Handler: _UserCenter_RefreshToken_Handler, }, { MethodName: "Authenticate", Handler: _UserCenter_Authenticate_Handler, }, { MethodName: "Authorize", Handler: _UserCenter_Authorize_Handler, }, { MethodName: "Auth", Handler: _UserCenter_Auth_Handler, }, { MethodName: "CreateUser", Handler: _UserCenter_CreateUser_Handler, }, { MethodName: "ListUser", Handler: _UserCenter_ListUser_Handler, }, { MethodName: "GetUser", Handler: _UserCenter_GetUser_Handler, }, { MethodName: "UpdateUser", Handler: _UserCenter_UpdateUser_Handler, }, { MethodName: "DeleteUser", Handler: _UserCenter_DeleteUser_Handler, }, { MethodName: "UpdatePassword", Handler: _UserCenter_UpdatePassword_Handler, }, { MethodName: "CreateSecret", Handler: _UserCenter_CreateSecret_Handler, }, { MethodName: "ListSecret", Handler: _UserCenter_ListSecret_Handler, }, { MethodName: "GetSecret", Handler: _UserCenter_GetSecret_Handler, }, { MethodName: "UpdateSecret", Handler: _UserCenter_UpdateSecret_Handler, }, { MethodName: "DeleteSecret", Handler: _UserCenter_DeleteSecret_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "usercenter/v1/usercenter.proto", }
UserCenter_ServiceDesc is the grpc.ServiceDesc for UserCenter service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func ErrorSecretCreateFailed ¶
创建密钥失败,可能是由于服务器或其他问题导致的创建过程中的错误
func ErrorSecretNotFound ¶
密钥未找到,可能是由于密钥不存在或输入的密钥标识有误
func ErrorSecretReachMaxCount ¶
密钥达到最大数量限制,无法继续创建新密钥
func ErrorUserAlreadyExists ¶
用户已存在,无法创建用户
func ErrorUserCreateFailed ¶
创建用户失败,可能是由于服务器或其他问题导致的创建过程中的错误
func ErrorUserLoginFailed ¶
用户登录失败,身份验证未通过
func ErrorUserNotFound ¶
用户未找到,可能是用户不存在或输入的用户标识有误
func ErrorUserOperationForbidden ¶
用户操作被禁止,可能是由于权限不足或其他安全限制导致的
func IsSecretCreateFailed ¶
创建密钥失败,可能是由于服务器或其他问题导致的创建过程中的错误
func IsUserOperationForbidden ¶
用户操作被禁止,可能是由于权限不足或其他安全限制导致的
func RegisterUserCenterHTTPServer ¶
func RegisterUserCenterHTTPServer(s *http.Server, srv UserCenterHTTPServer)
func RegisterUserCenterServer ¶
func RegisterUserCenterServer(s grpc.ServiceRegistrar, srv UserCenterServer)
Types ¶
type AuthRequest ¶
type AuthRequest struct { Token string `protobuf:"bytes,1,opt,name=token,proto3" json:"token,omitempty"` Obj string `protobuf:"bytes,2,opt,name=obj,proto3" json:"obj,omitempty"` Act string `protobuf:"bytes,3,opt,name=act,proto3" json:"act,omitempty"` // contains filtered or unexported fields }
func (*AuthRequest) Descriptor
deprecated
func (*AuthRequest) Descriptor() ([]byte, []int)
Deprecated: Use AuthRequest.ProtoReflect.Descriptor instead.
func (*AuthRequest) GetAct ¶
func (x *AuthRequest) GetAct() string
func (*AuthRequest) GetObj ¶
func (x *AuthRequest) GetObj() string
func (*AuthRequest) GetToken ¶
func (x *AuthRequest) GetToken() string
func (*AuthRequest) ProtoMessage ¶
func (*AuthRequest) ProtoMessage()
func (*AuthRequest) ProtoReflect ¶
func (x *AuthRequest) ProtoReflect() protoreflect.Message
func (*AuthRequest) Reset ¶
func (x *AuthRequest) Reset()
func (*AuthRequest) String ¶
func (x *AuthRequest) String() string
func (*AuthRequest) Validate ¶
func (m *AuthRequest) Validate() error
Validate checks the field values on AuthRequest 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 (*AuthRequest) ValidateAll ¶
func (m *AuthRequest) ValidateAll() error
ValidateAll checks the field values on AuthRequest 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 AuthRequestMultiError, or nil if none found.
type AuthRequestMultiError ¶
type AuthRequestMultiError []error
AuthRequestMultiError is an error wrapping multiple validation errors returned by AuthRequest.ValidateAll() if the designated constraints aren't met.
func (AuthRequestMultiError) AllErrors ¶
func (m AuthRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (AuthRequestMultiError) Error ¶
func (m AuthRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type AuthRequestValidationError ¶
type AuthRequestValidationError struct {
// contains filtered or unexported fields
}
AuthRequestValidationError is the validation error returned by AuthRequest.Validate if the designated constraints aren't met.
func (AuthRequestValidationError) Cause ¶
func (e AuthRequestValidationError) Cause() error
Cause function returns cause value.
func (AuthRequestValidationError) Error ¶
func (e AuthRequestValidationError) Error() string
Error satisfies the builtin error interface
func (AuthRequestValidationError) ErrorName ¶
func (e AuthRequestValidationError) ErrorName() string
ErrorName returns error name.
func (AuthRequestValidationError) Field ¶
func (e AuthRequestValidationError) Field() string
Field function returns field value.
func (AuthRequestValidationError) Key ¶
func (e AuthRequestValidationError) Key() bool
Key function returns key value.
func (AuthRequestValidationError) Reason ¶
func (e AuthRequestValidationError) Reason() string
Reason function returns reason value.
type AuthResponse ¶
type AuthResponse struct { UserID string `protobuf:"bytes,1,opt,name=userID,proto3" json:"userID,omitempty"` Allowed bool `protobuf:"varint,2,opt,name=allowed,proto3" json:"allowed,omitempty"` // contains filtered or unexported fields }
func (*AuthResponse) Descriptor
deprecated
func (*AuthResponse) Descriptor() ([]byte, []int)
Deprecated: Use AuthResponse.ProtoReflect.Descriptor instead.
func (*AuthResponse) GetAllowed ¶
func (x *AuthResponse) GetAllowed() bool
func (*AuthResponse) GetUserID ¶
func (x *AuthResponse) GetUserID() string
func (*AuthResponse) ProtoMessage ¶
func (*AuthResponse) ProtoMessage()
func (*AuthResponse) ProtoReflect ¶
func (x *AuthResponse) ProtoReflect() protoreflect.Message
func (*AuthResponse) Reset ¶
func (x *AuthResponse) Reset()
func (*AuthResponse) String ¶
func (x *AuthResponse) String() string
func (*AuthResponse) Validate ¶
func (m *AuthResponse) Validate() error
Validate checks the field values on AuthResponse 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 (*AuthResponse) ValidateAll ¶
func (m *AuthResponse) ValidateAll() error
ValidateAll checks the field values on AuthResponse 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 AuthResponseMultiError, or nil if none found.
type AuthResponseMultiError ¶
type AuthResponseMultiError []error
AuthResponseMultiError is an error wrapping multiple validation errors returned by AuthResponse.ValidateAll() if the designated constraints aren't met.
func (AuthResponseMultiError) AllErrors ¶
func (m AuthResponseMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (AuthResponseMultiError) Error ¶
func (m AuthResponseMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type AuthResponseValidationError ¶
type AuthResponseValidationError struct {
// contains filtered or unexported fields
}
AuthResponseValidationError is the validation error returned by AuthResponse.Validate if the designated constraints aren't met.
func (AuthResponseValidationError) Cause ¶
func (e AuthResponseValidationError) Cause() error
Cause function returns cause value.
func (AuthResponseValidationError) Error ¶
func (e AuthResponseValidationError) Error() string
Error satisfies the builtin error interface
func (AuthResponseValidationError) ErrorName ¶
func (e AuthResponseValidationError) ErrorName() string
ErrorName returns error name.
func (AuthResponseValidationError) Field ¶
func (e AuthResponseValidationError) Field() string
Field function returns field value.
func (AuthResponseValidationError) Key ¶
func (e AuthResponseValidationError) Key() bool
Key function returns key value.
func (AuthResponseValidationError) Reason ¶
func (e AuthResponseValidationError) Reason() string
Reason function returns reason value.
type AuthenticateRequest ¶
type AuthenticateRequest struct { Token string `protobuf:"bytes,1,opt,name=token,proto3" json:"token,omitempty"` // contains filtered or unexported fields }
func (*AuthenticateRequest) Descriptor
deprecated
func (*AuthenticateRequest) Descriptor() ([]byte, []int)
Deprecated: Use AuthenticateRequest.ProtoReflect.Descriptor instead.
func (*AuthenticateRequest) GetToken ¶
func (x *AuthenticateRequest) GetToken() string
func (*AuthenticateRequest) ProtoMessage ¶
func (*AuthenticateRequest) ProtoMessage()
func (*AuthenticateRequest) ProtoReflect ¶
func (x *AuthenticateRequest) ProtoReflect() protoreflect.Message
func (*AuthenticateRequest) Reset ¶
func (x *AuthenticateRequest) Reset()
func (*AuthenticateRequest) String ¶
func (x *AuthenticateRequest) String() string
func (*AuthenticateRequest) Validate ¶
func (m *AuthenticateRequest) Validate() error
Validate checks the field values on AuthenticateRequest 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 (*AuthenticateRequest) ValidateAll ¶
func (m *AuthenticateRequest) ValidateAll() error
ValidateAll checks the field values on AuthenticateRequest 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 AuthenticateRequestMultiError, or nil if none found.
type AuthenticateRequestMultiError ¶
type AuthenticateRequestMultiError []error
AuthenticateRequestMultiError is an error wrapping multiple validation errors returned by AuthenticateRequest.ValidateAll() if the designated constraints aren't met.
func (AuthenticateRequestMultiError) AllErrors ¶
func (m AuthenticateRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (AuthenticateRequestMultiError) Error ¶
func (m AuthenticateRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type AuthenticateRequestValidationError ¶
type AuthenticateRequestValidationError struct {
// contains filtered or unexported fields
}
AuthenticateRequestValidationError is the validation error returned by AuthenticateRequest.Validate if the designated constraints aren't met.
func (AuthenticateRequestValidationError) Cause ¶
func (e AuthenticateRequestValidationError) Cause() error
Cause function returns cause value.
func (AuthenticateRequestValidationError) Error ¶
func (e AuthenticateRequestValidationError) Error() string
Error satisfies the builtin error interface
func (AuthenticateRequestValidationError) ErrorName ¶
func (e AuthenticateRequestValidationError) ErrorName() string
ErrorName returns error name.
func (AuthenticateRequestValidationError) Field ¶
func (e AuthenticateRequestValidationError) Field() string
Field function returns field value.
func (AuthenticateRequestValidationError) Key ¶
func (e AuthenticateRequestValidationError) Key() bool
Key function returns key value.
func (AuthenticateRequestValidationError) Reason ¶
func (e AuthenticateRequestValidationError) Reason() string
Reason function returns reason value.
type AuthenticateResponse ¶
type AuthenticateResponse struct { UserID string `protobuf:"bytes,1,opt,name=userID,proto3" json:"userID,omitempty"` // contains filtered or unexported fields }
func (*AuthenticateResponse) Descriptor
deprecated
func (*AuthenticateResponse) Descriptor() ([]byte, []int)
Deprecated: Use AuthenticateResponse.ProtoReflect.Descriptor instead.
func (*AuthenticateResponse) GetUserID ¶
func (x *AuthenticateResponse) GetUserID() string
func (*AuthenticateResponse) ProtoMessage ¶
func (*AuthenticateResponse) ProtoMessage()
func (*AuthenticateResponse) ProtoReflect ¶
func (x *AuthenticateResponse) ProtoReflect() protoreflect.Message
func (*AuthenticateResponse) Reset ¶
func (x *AuthenticateResponse) Reset()
func (*AuthenticateResponse) String ¶
func (x *AuthenticateResponse) String() string
func (*AuthenticateResponse) Validate ¶
func (m *AuthenticateResponse) Validate() error
Validate checks the field values on AuthenticateResponse 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 (*AuthenticateResponse) ValidateAll ¶
func (m *AuthenticateResponse) ValidateAll() error
ValidateAll checks the field values on AuthenticateResponse 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 AuthenticateResponseMultiError, or nil if none found.
type AuthenticateResponseMultiError ¶
type AuthenticateResponseMultiError []error
AuthenticateResponseMultiError is an error wrapping multiple validation errors returned by AuthenticateResponse.ValidateAll() if the designated constraints aren't met.
func (AuthenticateResponseMultiError) AllErrors ¶
func (m AuthenticateResponseMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (AuthenticateResponseMultiError) Error ¶
func (m AuthenticateResponseMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type AuthenticateResponseValidationError ¶
type AuthenticateResponseValidationError struct {
// contains filtered or unexported fields
}
AuthenticateResponseValidationError is the validation error returned by AuthenticateResponse.Validate if the designated constraints aren't met.
func (AuthenticateResponseValidationError) Cause ¶
func (e AuthenticateResponseValidationError) Cause() error
Cause function returns cause value.
func (AuthenticateResponseValidationError) Error ¶
func (e AuthenticateResponseValidationError) Error() string
Error satisfies the builtin error interface
func (AuthenticateResponseValidationError) ErrorName ¶
func (e AuthenticateResponseValidationError) ErrorName() string
ErrorName returns error name.
func (AuthenticateResponseValidationError) Field ¶
func (e AuthenticateResponseValidationError) Field() string
Field function returns field value.
func (AuthenticateResponseValidationError) Key ¶
func (e AuthenticateResponseValidationError) Key() bool
Key function returns key value.
func (AuthenticateResponseValidationError) Reason ¶
func (e AuthenticateResponseValidationError) Reason() string
Reason function returns reason value.
type AuthorizeRequest ¶
type AuthorizeRequest struct { Sub string `protobuf:"bytes,1,opt,name=sub,proto3" json:"sub,omitempty"` Obj string `protobuf:"bytes,3,opt,name=obj,proto3" json:"obj,omitempty"` Act string `protobuf:"bytes,4,opt,name=act,proto3" json:"act,omitempty"` // contains filtered or unexported fields }
func (*AuthorizeRequest) Descriptor
deprecated
func (*AuthorizeRequest) Descriptor() ([]byte, []int)
Deprecated: Use AuthorizeRequest.ProtoReflect.Descriptor instead.
func (*AuthorizeRequest) GetAct ¶
func (x *AuthorizeRequest) GetAct() string
func (*AuthorizeRequest) GetObj ¶
func (x *AuthorizeRequest) GetObj() string
func (*AuthorizeRequest) GetSub ¶
func (x *AuthorizeRequest) GetSub() string
func (*AuthorizeRequest) ProtoMessage ¶
func (*AuthorizeRequest) ProtoMessage()
func (*AuthorizeRequest) ProtoReflect ¶
func (x *AuthorizeRequest) ProtoReflect() protoreflect.Message
func (*AuthorizeRequest) Reset ¶
func (x *AuthorizeRequest) Reset()
func (*AuthorizeRequest) String ¶
func (x *AuthorizeRequest) String() string
func (*AuthorizeRequest) Validate ¶
func (m *AuthorizeRequest) Validate() error
Validate checks the field values on AuthorizeRequest 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 (*AuthorizeRequest) ValidateAll ¶
func (m *AuthorizeRequest) ValidateAll() error
ValidateAll checks the field values on AuthorizeRequest 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 AuthorizeRequestMultiError, or nil if none found.
type AuthorizeRequestMultiError ¶
type AuthorizeRequestMultiError []error
AuthorizeRequestMultiError is an error wrapping multiple validation errors returned by AuthorizeRequest.ValidateAll() if the designated constraints aren't met.
func (AuthorizeRequestMultiError) AllErrors ¶
func (m AuthorizeRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (AuthorizeRequestMultiError) Error ¶
func (m AuthorizeRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type AuthorizeRequestValidationError ¶
type AuthorizeRequestValidationError struct {
// contains filtered or unexported fields
}
AuthorizeRequestValidationError is the validation error returned by AuthorizeRequest.Validate if the designated constraints aren't met.
func (AuthorizeRequestValidationError) Cause ¶
func (e AuthorizeRequestValidationError) Cause() error
Cause function returns cause value.
func (AuthorizeRequestValidationError) Error ¶
func (e AuthorizeRequestValidationError) Error() string
Error satisfies the builtin error interface
func (AuthorizeRequestValidationError) ErrorName ¶
func (e AuthorizeRequestValidationError) ErrorName() string
ErrorName returns error name.
func (AuthorizeRequestValidationError) Field ¶
func (e AuthorizeRequestValidationError) Field() string
Field function returns field value.
func (AuthorizeRequestValidationError) Key ¶
func (e AuthorizeRequestValidationError) Key() bool
Key function returns key value.
func (AuthorizeRequestValidationError) Reason ¶
func (e AuthorizeRequestValidationError) Reason() string
Reason function returns reason value.
type AuthorizeResponse ¶
type AuthorizeResponse struct { Allowed bool `protobuf:"varint,1,opt,name=allowed,proto3" json:"allowed,omitempty"` // contains filtered or unexported fields }
func (*AuthorizeResponse) Descriptor
deprecated
func (*AuthorizeResponse) Descriptor() ([]byte, []int)
Deprecated: Use AuthorizeResponse.ProtoReflect.Descriptor instead.
func (*AuthorizeResponse) GetAllowed ¶
func (x *AuthorizeResponse) GetAllowed() bool
func (*AuthorizeResponse) ProtoMessage ¶
func (*AuthorizeResponse) ProtoMessage()
func (*AuthorizeResponse) ProtoReflect ¶
func (x *AuthorizeResponse) ProtoReflect() protoreflect.Message
func (*AuthorizeResponse) Reset ¶
func (x *AuthorizeResponse) Reset()
func (*AuthorizeResponse) String ¶
func (x *AuthorizeResponse) String() string
func (*AuthorizeResponse) Validate ¶
func (m *AuthorizeResponse) Validate() error
Validate checks the field values on AuthorizeResponse 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 (*AuthorizeResponse) ValidateAll ¶
func (m *AuthorizeResponse) ValidateAll() error
ValidateAll checks the field values on AuthorizeResponse 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 AuthorizeResponseMultiError, or nil if none found.
type AuthorizeResponseMultiError ¶
type AuthorizeResponseMultiError []error
AuthorizeResponseMultiError is an error wrapping multiple validation errors returned by AuthorizeResponse.ValidateAll() if the designated constraints aren't met.
func (AuthorizeResponseMultiError) AllErrors ¶
func (m AuthorizeResponseMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (AuthorizeResponseMultiError) Error ¶
func (m AuthorizeResponseMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type AuthorizeResponseValidationError ¶
type AuthorizeResponseValidationError struct {
// contains filtered or unexported fields
}
AuthorizeResponseValidationError is the validation error returned by AuthorizeResponse.Validate if the designated constraints aren't met.
func (AuthorizeResponseValidationError) Cause ¶
func (e AuthorizeResponseValidationError) Cause() error
Cause function returns cause value.
func (AuthorizeResponseValidationError) Error ¶
func (e AuthorizeResponseValidationError) Error() string
Error satisfies the builtin error interface
func (AuthorizeResponseValidationError) ErrorName ¶
func (e AuthorizeResponseValidationError) ErrorName() string
ErrorName returns error name.
func (AuthorizeResponseValidationError) Field ¶
func (e AuthorizeResponseValidationError) Field() string
Field function returns field value.
func (AuthorizeResponseValidationError) Key ¶
func (e AuthorizeResponseValidationError) Key() bool
Key function returns key value.
func (AuthorizeResponseValidationError) Reason ¶
func (e AuthorizeResponseValidationError) Reason() string
Reason function returns reason value.
type CreateSecretRequest ¶
type CreateSecretRequest struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` Expires int64 `protobuf:"varint,2,opt,name=expires,proto3" json:"expires,omitempty"` Description string `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"` // contains filtered or unexported fields }
func (*CreateSecretRequest) Descriptor
deprecated
func (*CreateSecretRequest) Descriptor() ([]byte, []int)
Deprecated: Use CreateSecretRequest.ProtoReflect.Descriptor instead.
func (*CreateSecretRequest) GetDescription ¶
func (x *CreateSecretRequest) GetDescription() string
func (*CreateSecretRequest) GetExpires ¶
func (x *CreateSecretRequest) GetExpires() int64
func (*CreateSecretRequest) GetName ¶
func (x *CreateSecretRequest) GetName() string
func (*CreateSecretRequest) ProtoMessage ¶
func (*CreateSecretRequest) ProtoMessage()
func (*CreateSecretRequest) ProtoReflect ¶
func (x *CreateSecretRequest) ProtoReflect() protoreflect.Message
func (*CreateSecretRequest) Reset ¶
func (x *CreateSecretRequest) Reset()
func (*CreateSecretRequest) String ¶
func (x *CreateSecretRequest) String() string
func (*CreateSecretRequest) Validate ¶
func (m *CreateSecretRequest) Validate() error
Validate checks the field values on CreateSecretRequest 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 (*CreateSecretRequest) ValidateAll ¶
func (m *CreateSecretRequest) ValidateAll() error
ValidateAll checks the field values on CreateSecretRequest 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 CreateSecretRequestMultiError, or nil if none found.
type CreateSecretRequestMultiError ¶
type CreateSecretRequestMultiError []error
CreateSecretRequestMultiError is an error wrapping multiple validation errors returned by CreateSecretRequest.ValidateAll() if the designated constraints aren't met.
func (CreateSecretRequestMultiError) AllErrors ¶
func (m CreateSecretRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (CreateSecretRequestMultiError) Error ¶
func (m CreateSecretRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type CreateSecretRequestValidationError ¶
type CreateSecretRequestValidationError struct {
// contains filtered or unexported fields
}
CreateSecretRequestValidationError is the validation error returned by CreateSecretRequest.Validate if the designated constraints aren't met.
func (CreateSecretRequestValidationError) Cause ¶
func (e CreateSecretRequestValidationError) Cause() error
Cause function returns cause value.
func (CreateSecretRequestValidationError) Error ¶
func (e CreateSecretRequestValidationError) Error() string
Error satisfies the builtin error interface
func (CreateSecretRequestValidationError) ErrorName ¶
func (e CreateSecretRequestValidationError) ErrorName() string
ErrorName returns error name.
func (CreateSecretRequestValidationError) Field ¶
func (e CreateSecretRequestValidationError) Field() string
Field function returns field value.
func (CreateSecretRequestValidationError) Key ¶
func (e CreateSecretRequestValidationError) Key() bool
Key function returns key value.
func (CreateSecretRequestValidationError) Reason ¶
func (e CreateSecretRequestValidationError) Reason() string
Reason function returns reason value.
type CreateUserRequest ¶
type CreateUserRequest struct { Username string `protobuf:"bytes,1,opt,name=username,proto3" json:"username,omitempty"` Nickname string `protobuf:"bytes,2,opt,name=nickname,proto3" json:"nickname,omitempty"` Password string `protobuf:"bytes,3,opt,name=password,proto3" json:"password,omitempty"` Email string `protobuf:"bytes,4,opt,name=email,proto3" json:"email,omitempty"` Phone string `protobuf:"bytes,5,opt,name=phone,proto3" json:"phone,omitempty"` // contains filtered or unexported fields }
func (*CreateUserRequest) Descriptor
deprecated
func (*CreateUserRequest) Descriptor() ([]byte, []int)
Deprecated: Use CreateUserRequest.ProtoReflect.Descriptor instead.
func (*CreateUserRequest) GetEmail ¶
func (x *CreateUserRequest) GetEmail() string
func (*CreateUserRequest) GetNickname ¶
func (x *CreateUserRequest) GetNickname() string
func (*CreateUserRequest) GetPassword ¶
func (x *CreateUserRequest) GetPassword() string
func (*CreateUserRequest) GetPhone ¶
func (x *CreateUserRequest) GetPhone() string
func (*CreateUserRequest) GetUsername ¶
func (x *CreateUserRequest) GetUsername() string
func (*CreateUserRequest) ProtoMessage ¶
func (*CreateUserRequest) ProtoMessage()
func (*CreateUserRequest) ProtoReflect ¶
func (x *CreateUserRequest) ProtoReflect() protoreflect.Message
func (*CreateUserRequest) Reset ¶
func (x *CreateUserRequest) Reset()
func (*CreateUserRequest) String ¶
func (x *CreateUserRequest) String() string
func (*CreateUserRequest) Validate ¶
func (m *CreateUserRequest) Validate() error
Validate checks the field values on CreateUserRequest 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 (*CreateUserRequest) ValidateAll ¶
func (m *CreateUserRequest) ValidateAll() error
ValidateAll checks the field values on CreateUserRequest 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 CreateUserRequestMultiError, or nil if none found.
type CreateUserRequestMultiError ¶
type CreateUserRequestMultiError []error
CreateUserRequestMultiError is an error wrapping multiple validation errors returned by CreateUserRequest.ValidateAll() if the designated constraints aren't met.
func (CreateUserRequestMultiError) AllErrors ¶
func (m CreateUserRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (CreateUserRequestMultiError) Error ¶
func (m CreateUserRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type CreateUserRequestValidationError ¶
type CreateUserRequestValidationError struct {
// contains filtered or unexported fields
}
CreateUserRequestValidationError is the validation error returned by CreateUserRequest.Validate if the designated constraints aren't met.
func (CreateUserRequestValidationError) Cause ¶
func (e CreateUserRequestValidationError) Cause() error
Cause function returns cause value.
func (CreateUserRequestValidationError) Error ¶
func (e CreateUserRequestValidationError) Error() string
Error satisfies the builtin error interface
func (CreateUserRequestValidationError) ErrorName ¶
func (e CreateUserRequestValidationError) ErrorName() string
ErrorName returns error name.
func (CreateUserRequestValidationError) Field ¶
func (e CreateUserRequestValidationError) Field() string
Field function returns field value.
func (CreateUserRequestValidationError) Key ¶
func (e CreateUserRequestValidationError) Key() bool
Key function returns key value.
func (CreateUserRequestValidationError) Reason ¶
func (e CreateUserRequestValidationError) Reason() string
Reason function returns reason value.
type DeleteSecretRequest ¶
type DeleteSecretRequest struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // contains filtered or unexported fields }
func (*DeleteSecretRequest) Descriptor
deprecated
func (*DeleteSecretRequest) Descriptor() ([]byte, []int)
Deprecated: Use DeleteSecretRequest.ProtoReflect.Descriptor instead.
func (*DeleteSecretRequest) GetName ¶
func (x *DeleteSecretRequest) GetName() string
func (*DeleteSecretRequest) ProtoMessage ¶
func (*DeleteSecretRequest) ProtoMessage()
func (*DeleteSecretRequest) ProtoReflect ¶
func (x *DeleteSecretRequest) ProtoReflect() protoreflect.Message
func (*DeleteSecretRequest) Reset ¶
func (x *DeleteSecretRequest) Reset()
func (*DeleteSecretRequest) String ¶
func (x *DeleteSecretRequest) String() string
func (*DeleteSecretRequest) Validate ¶
func (m *DeleteSecretRequest) Validate() error
Validate checks the field values on DeleteSecretRequest 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 (*DeleteSecretRequest) ValidateAll ¶
func (m *DeleteSecretRequest) ValidateAll() error
ValidateAll checks the field values on DeleteSecretRequest 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 DeleteSecretRequestMultiError, or nil if none found.
type DeleteSecretRequestMultiError ¶
type DeleteSecretRequestMultiError []error
DeleteSecretRequestMultiError is an error wrapping multiple validation errors returned by DeleteSecretRequest.ValidateAll() if the designated constraints aren't met.
func (DeleteSecretRequestMultiError) AllErrors ¶
func (m DeleteSecretRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (DeleteSecretRequestMultiError) Error ¶
func (m DeleteSecretRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type DeleteSecretRequestValidationError ¶
type DeleteSecretRequestValidationError struct {
// contains filtered or unexported fields
}
DeleteSecretRequestValidationError is the validation error returned by DeleteSecretRequest.Validate if the designated constraints aren't met.
func (DeleteSecretRequestValidationError) Cause ¶
func (e DeleteSecretRequestValidationError) Cause() error
Cause function returns cause value.
func (DeleteSecretRequestValidationError) Error ¶
func (e DeleteSecretRequestValidationError) Error() string
Error satisfies the builtin error interface
func (DeleteSecretRequestValidationError) ErrorName ¶
func (e DeleteSecretRequestValidationError) ErrorName() string
ErrorName returns error name.
func (DeleteSecretRequestValidationError) Field ¶
func (e DeleteSecretRequestValidationError) Field() string
Field function returns field value.
func (DeleteSecretRequestValidationError) Key ¶
func (e DeleteSecretRequestValidationError) Key() bool
Key function returns key value.
func (DeleteSecretRequestValidationError) Reason ¶
func (e DeleteSecretRequestValidationError) Reason() string
Reason function returns reason value.
type DeleteUserRequest ¶
type DeleteUserRequest struct { Username string `protobuf:"bytes,1,opt,name=username,proto3" json:"username,omitempty"` // contains filtered or unexported fields }
func (*DeleteUserRequest) Descriptor
deprecated
func (*DeleteUserRequest) Descriptor() ([]byte, []int)
Deprecated: Use DeleteUserRequest.ProtoReflect.Descriptor instead.
func (*DeleteUserRequest) GetUsername ¶
func (x *DeleteUserRequest) GetUsername() string
func (*DeleteUserRequest) ProtoMessage ¶
func (*DeleteUserRequest) ProtoMessage()
func (*DeleteUserRequest) ProtoReflect ¶
func (x *DeleteUserRequest) ProtoReflect() protoreflect.Message
func (*DeleteUserRequest) Reset ¶
func (x *DeleteUserRequest) Reset()
func (*DeleteUserRequest) String ¶
func (x *DeleteUserRequest) String() string
func (*DeleteUserRequest) Validate ¶
func (m *DeleteUserRequest) Validate() error
Validate checks the field values on DeleteUserRequest 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 (*DeleteUserRequest) ValidateAll ¶
func (m *DeleteUserRequest) ValidateAll() error
ValidateAll checks the field values on DeleteUserRequest 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 DeleteUserRequestMultiError, or nil if none found.
type DeleteUserRequestMultiError ¶
type DeleteUserRequestMultiError []error
DeleteUserRequestMultiError is an error wrapping multiple validation errors returned by DeleteUserRequest.ValidateAll() if the designated constraints aren't met.
func (DeleteUserRequestMultiError) AllErrors ¶
func (m DeleteUserRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (DeleteUserRequestMultiError) Error ¶
func (m DeleteUserRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type DeleteUserRequestValidationError ¶
type DeleteUserRequestValidationError struct {
// contains filtered or unexported fields
}
DeleteUserRequestValidationError is the validation error returned by DeleteUserRequest.Validate if the designated constraints aren't met.
func (DeleteUserRequestValidationError) Cause ¶
func (e DeleteUserRequestValidationError) Cause() error
Cause function returns cause value.
func (DeleteUserRequestValidationError) Error ¶
func (e DeleteUserRequestValidationError) Error() string
Error satisfies the builtin error interface
func (DeleteUserRequestValidationError) ErrorName ¶
func (e DeleteUserRequestValidationError) ErrorName() string
ErrorName returns error name.
func (DeleteUserRequestValidationError) Field ¶
func (e DeleteUserRequestValidationError) Field() string
Field function returns field value.
func (DeleteUserRequestValidationError) Key ¶
func (e DeleteUserRequestValidationError) Key() bool
Key function returns key value.
func (DeleteUserRequestValidationError) Reason ¶
func (e DeleteUserRequestValidationError) Reason() string
Reason function returns reason value.
type ErrorReason ¶
type ErrorReason int32
const ( // 用户登录失败,身份验证未通过 ErrorReason_UserLoginFailed ErrorReason = 0 // 用户已存在,无法创建用户 ErrorReason_UserAlreadyExists ErrorReason = 1 // 用户未找到,可能是用户不存在或输入的用户标识有误 ErrorReason_UserNotFound ErrorReason = 2 // 创建用户失败,可能是由于服务器或其他问题导致的创建过程中的错误 ErrorReason_UserCreateFailed ErrorReason = 3 // 用户操作被禁止,可能是由于权限不足或其他安全限制导致的 ErrorReason_UserOperationForbidden ErrorReason = 4 // 密钥达到最大数量限制,无法继续创建新密钥 ErrorReason_SecretReachMaxCount ErrorReason = 5 // 密钥未找到,可能是由于密钥不存在或输入的密钥标识有误 ErrorReason_SecretNotFound ErrorReason = 6 // 创建密钥失败,可能是由于服务器或其他问题导致的创建过程中的错误 ErrorReason_SecretCreateFailed ErrorReason = 7 )
func (ErrorReason) Descriptor ¶
func (ErrorReason) Descriptor() protoreflect.EnumDescriptor
func (ErrorReason) Enum ¶
func (x ErrorReason) Enum() *ErrorReason
func (ErrorReason) EnumDescriptor
deprecated
func (ErrorReason) EnumDescriptor() ([]byte, []int)
Deprecated: Use ErrorReason.Descriptor instead.
func (ErrorReason) Number ¶
func (x ErrorReason) Number() protoreflect.EnumNumber
func (ErrorReason) String ¶
func (x ErrorReason) String() string
func (ErrorReason) Type ¶
func (ErrorReason) Type() protoreflect.EnumType
type GetSecretRequest ¶
type GetSecretRequest struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // contains filtered or unexported fields }
func (*GetSecretRequest) Descriptor
deprecated
func (*GetSecretRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetSecretRequest.ProtoReflect.Descriptor instead.
func (*GetSecretRequest) GetName ¶
func (x *GetSecretRequest) GetName() string
func (*GetSecretRequest) ProtoMessage ¶
func (*GetSecretRequest) ProtoMessage()
func (*GetSecretRequest) ProtoReflect ¶
func (x *GetSecretRequest) ProtoReflect() protoreflect.Message
func (*GetSecretRequest) Reset ¶
func (x *GetSecretRequest) Reset()
func (*GetSecretRequest) String ¶
func (x *GetSecretRequest) String() string
func (*GetSecretRequest) Validate ¶
func (m *GetSecretRequest) Validate() error
Validate checks the field values on GetSecretRequest 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 (*GetSecretRequest) ValidateAll ¶
func (m *GetSecretRequest) ValidateAll() error
ValidateAll checks the field values on GetSecretRequest 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 GetSecretRequestMultiError, or nil if none found.
type GetSecretRequestMultiError ¶
type GetSecretRequestMultiError []error
GetSecretRequestMultiError is an error wrapping multiple validation errors returned by GetSecretRequest.ValidateAll() if the designated constraints aren't met.
func (GetSecretRequestMultiError) AllErrors ¶
func (m GetSecretRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (GetSecretRequestMultiError) Error ¶
func (m GetSecretRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type GetSecretRequestValidationError ¶
type GetSecretRequestValidationError struct {
// contains filtered or unexported fields
}
GetSecretRequestValidationError is the validation error returned by GetSecretRequest.Validate if the designated constraints aren't met.
func (GetSecretRequestValidationError) Cause ¶
func (e GetSecretRequestValidationError) Cause() error
Cause function returns cause value.
func (GetSecretRequestValidationError) Error ¶
func (e GetSecretRequestValidationError) Error() string
Error satisfies the builtin error interface
func (GetSecretRequestValidationError) ErrorName ¶
func (e GetSecretRequestValidationError) ErrorName() string
ErrorName returns error name.
func (GetSecretRequestValidationError) Field ¶
func (e GetSecretRequestValidationError) Field() string
Field function returns field value.
func (GetSecretRequestValidationError) Key ¶
func (e GetSecretRequestValidationError) Key() bool
Key function returns key value.
func (GetSecretRequestValidationError) Reason ¶
func (e GetSecretRequestValidationError) Reason() string
Reason function returns reason value.
type GetUserRequest ¶
type GetUserRequest struct { Username string `protobuf:"bytes,1,opt,name=username,proto3" json:"username,omitempty"` // contains filtered or unexported fields }
func (*GetUserRequest) Descriptor
deprecated
func (*GetUserRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetUserRequest.ProtoReflect.Descriptor instead.
func (*GetUserRequest) GetUsername ¶
func (x *GetUserRequest) GetUsername() string
func (*GetUserRequest) ProtoMessage ¶
func (*GetUserRequest) ProtoMessage()
func (*GetUserRequest) ProtoReflect ¶
func (x *GetUserRequest) ProtoReflect() protoreflect.Message
func (*GetUserRequest) Reset ¶
func (x *GetUserRequest) Reset()
func (*GetUserRequest) String ¶
func (x *GetUserRequest) String() string
func (*GetUserRequest) Validate ¶
func (m *GetUserRequest) Validate() error
Validate checks the field values on GetUserRequest 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 (*GetUserRequest) ValidateAll ¶
func (m *GetUserRequest) ValidateAll() error
ValidateAll checks the field values on GetUserRequest 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 GetUserRequestMultiError, or nil if none found.
type GetUserRequestMultiError ¶
type GetUserRequestMultiError []error
GetUserRequestMultiError is an error wrapping multiple validation errors returned by GetUserRequest.ValidateAll() if the designated constraints aren't met.
func (GetUserRequestMultiError) AllErrors ¶
func (m GetUserRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (GetUserRequestMultiError) Error ¶
func (m GetUserRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type GetUserRequestValidationError ¶
type GetUserRequestValidationError struct {
// contains filtered or unexported fields
}
GetUserRequestValidationError is the validation error returned by GetUserRequest.Validate if the designated constraints aren't met.
func (GetUserRequestValidationError) Cause ¶
func (e GetUserRequestValidationError) Cause() error
Cause function returns cause value.
func (GetUserRequestValidationError) Error ¶
func (e GetUserRequestValidationError) Error() string
Error satisfies the builtin error interface
func (GetUserRequestValidationError) ErrorName ¶
func (e GetUserRequestValidationError) ErrorName() string
ErrorName returns error name.
func (GetUserRequestValidationError) Field ¶
func (e GetUserRequestValidationError) Field() string
Field function returns field value.
func (GetUserRequestValidationError) Key ¶
func (e GetUserRequestValidationError) Key() bool
Key function returns key value.
func (GetUserRequestValidationError) Reason ¶
func (e GetUserRequestValidationError) Reason() string
Reason function returns reason value.
type ListSecretRequest ¶
type ListSecretRequest struct { Limit int64 `protobuf:"varint,1,opt,name=limit,proto3" json:"limit,omitempty"` Offset int64 `protobuf:"varint,2,opt,name=offset,proto3" json:"offset,omitempty"` // contains filtered or unexported fields }
func (*ListSecretRequest) Descriptor
deprecated
func (*ListSecretRequest) Descriptor() ([]byte, []int)
Deprecated: Use ListSecretRequest.ProtoReflect.Descriptor instead.
func (*ListSecretRequest) GetLimit ¶
func (x *ListSecretRequest) GetLimit() int64
func (*ListSecretRequest) GetOffset ¶
func (x *ListSecretRequest) GetOffset() int64
func (*ListSecretRequest) ProtoMessage ¶
func (*ListSecretRequest) ProtoMessage()
func (*ListSecretRequest) ProtoReflect ¶
func (x *ListSecretRequest) ProtoReflect() protoreflect.Message
func (*ListSecretRequest) Reset ¶
func (x *ListSecretRequest) Reset()
func (*ListSecretRequest) String ¶
func (x *ListSecretRequest) String() string
func (*ListSecretRequest) Validate ¶
func (m *ListSecretRequest) Validate() error
Validate checks the field values on ListSecretRequest 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 (*ListSecretRequest) ValidateAll ¶
func (m *ListSecretRequest) ValidateAll() error
ValidateAll checks the field values on ListSecretRequest 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 ListSecretRequestMultiError, or nil if none found.
type ListSecretRequestMultiError ¶
type ListSecretRequestMultiError []error
ListSecretRequestMultiError is an error wrapping multiple validation errors returned by ListSecretRequest.ValidateAll() if the designated constraints aren't met.
func (ListSecretRequestMultiError) AllErrors ¶
func (m ListSecretRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (ListSecretRequestMultiError) Error ¶
func (m ListSecretRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type ListSecretRequestValidationError ¶
type ListSecretRequestValidationError struct {
// contains filtered or unexported fields
}
ListSecretRequestValidationError is the validation error returned by ListSecretRequest.Validate if the designated constraints aren't met.
func (ListSecretRequestValidationError) Cause ¶
func (e ListSecretRequestValidationError) Cause() error
Cause function returns cause value.
func (ListSecretRequestValidationError) Error ¶
func (e ListSecretRequestValidationError) Error() string
Error satisfies the builtin error interface
func (ListSecretRequestValidationError) ErrorName ¶
func (e ListSecretRequestValidationError) ErrorName() string
ErrorName returns error name.
func (ListSecretRequestValidationError) Field ¶
func (e ListSecretRequestValidationError) Field() string
Field function returns field value.
func (ListSecretRequestValidationError) Key ¶
func (e ListSecretRequestValidationError) Key() bool
Key function returns key value.
func (ListSecretRequestValidationError) Reason ¶
func (e ListSecretRequestValidationError) Reason() string
Reason function returns reason value.
type ListSecretResponse ¶
type ListSecretResponse struct { TotalCount int64 `protobuf:"varint,1,opt,name=totalCount,proto3" json:"totalCount,omitempty"` Secrets []*SecretReply `protobuf:"bytes,2,rep,name=Secrets,proto3" json:"Secrets,omitempty"` // contains filtered or unexported fields }
func (*ListSecretResponse) Descriptor
deprecated
func (*ListSecretResponse) Descriptor() ([]byte, []int)
Deprecated: Use ListSecretResponse.ProtoReflect.Descriptor instead.
func (*ListSecretResponse) GetSecrets ¶
func (x *ListSecretResponse) GetSecrets() []*SecretReply
func (*ListSecretResponse) GetTotalCount ¶
func (x *ListSecretResponse) GetTotalCount() int64
func (*ListSecretResponse) ProtoMessage ¶
func (*ListSecretResponse) ProtoMessage()
func (*ListSecretResponse) ProtoReflect ¶
func (x *ListSecretResponse) ProtoReflect() protoreflect.Message
func (*ListSecretResponse) Reset ¶
func (x *ListSecretResponse) Reset()
func (*ListSecretResponse) String ¶
func (x *ListSecretResponse) String() string
func (*ListSecretResponse) Validate ¶
func (m *ListSecretResponse) Validate() error
Validate checks the field values on ListSecretResponse 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 (*ListSecretResponse) ValidateAll ¶
func (m *ListSecretResponse) ValidateAll() error
ValidateAll checks the field values on ListSecretResponse 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 ListSecretResponseMultiError, or nil if none found.
type ListSecretResponseMultiError ¶
type ListSecretResponseMultiError []error
ListSecretResponseMultiError is an error wrapping multiple validation errors returned by ListSecretResponse.ValidateAll() if the designated constraints aren't met.
func (ListSecretResponseMultiError) AllErrors ¶
func (m ListSecretResponseMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (ListSecretResponseMultiError) Error ¶
func (m ListSecretResponseMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type ListSecretResponseValidationError ¶
type ListSecretResponseValidationError struct {
// contains filtered or unexported fields
}
ListSecretResponseValidationError is the validation error returned by ListSecretResponse.Validate if the designated constraints aren't met.
func (ListSecretResponseValidationError) Cause ¶
func (e ListSecretResponseValidationError) Cause() error
Cause function returns cause value.
func (ListSecretResponseValidationError) Error ¶
func (e ListSecretResponseValidationError) Error() string
Error satisfies the builtin error interface
func (ListSecretResponseValidationError) ErrorName ¶
func (e ListSecretResponseValidationError) ErrorName() string
ErrorName returns error name.
func (ListSecretResponseValidationError) Field ¶
func (e ListSecretResponseValidationError) Field() string
Field function returns field value.
func (ListSecretResponseValidationError) Key ¶
func (e ListSecretResponseValidationError) Key() bool
Key function returns key value.
func (ListSecretResponseValidationError) Reason ¶
func (e ListSecretResponseValidationError) Reason() string
Reason function returns reason value.
type ListUserRequest ¶
type ListUserRequest struct { Limit int64 `protobuf:"varint,1,opt,name=limit,proto3" json:"limit,omitempty"` Offset int64 `protobuf:"varint,2,opt,name=offset,proto3" json:"offset,omitempty"` // contains filtered or unexported fields }
func (*ListUserRequest) Descriptor
deprecated
func (*ListUserRequest) Descriptor() ([]byte, []int)
Deprecated: Use ListUserRequest.ProtoReflect.Descriptor instead.
func (*ListUserRequest) GetLimit ¶
func (x *ListUserRequest) GetLimit() int64
func (*ListUserRequest) GetOffset ¶
func (x *ListUserRequest) GetOffset() int64
func (*ListUserRequest) ProtoMessage ¶
func (*ListUserRequest) ProtoMessage()
func (*ListUserRequest) ProtoReflect ¶
func (x *ListUserRequest) ProtoReflect() protoreflect.Message
func (*ListUserRequest) Reset ¶
func (x *ListUserRequest) Reset()
func (*ListUserRequest) String ¶
func (x *ListUserRequest) String() string
func (*ListUserRequest) Validate ¶
func (m *ListUserRequest) Validate() error
Validate checks the field values on ListUserRequest 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 (*ListUserRequest) ValidateAll ¶
func (m *ListUserRequest) ValidateAll() error
ValidateAll checks the field values on ListUserRequest 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 ListUserRequestMultiError, or nil if none found.
type ListUserRequestMultiError ¶
type ListUserRequestMultiError []error
ListUserRequestMultiError is an error wrapping multiple validation errors returned by ListUserRequest.ValidateAll() if the designated constraints aren't met.
func (ListUserRequestMultiError) AllErrors ¶
func (m ListUserRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (ListUserRequestMultiError) Error ¶
func (m ListUserRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type ListUserRequestValidationError ¶
type ListUserRequestValidationError struct {
// contains filtered or unexported fields
}
ListUserRequestValidationError is the validation error returned by ListUserRequest.Validate if the designated constraints aren't met.
func (ListUserRequestValidationError) Cause ¶
func (e ListUserRequestValidationError) Cause() error
Cause function returns cause value.
func (ListUserRequestValidationError) Error ¶
func (e ListUserRequestValidationError) Error() string
Error satisfies the builtin error interface
func (ListUserRequestValidationError) ErrorName ¶
func (e ListUserRequestValidationError) ErrorName() string
ErrorName returns error name.
func (ListUserRequestValidationError) Field ¶
func (e ListUserRequestValidationError) Field() string
Field function returns field value.
func (ListUserRequestValidationError) Key ¶
func (e ListUserRequestValidationError) Key() bool
Key function returns key value.
func (ListUserRequestValidationError) Reason ¶
func (e ListUserRequestValidationError) Reason() string
Reason function returns reason value.
type ListUserResponse ¶
type ListUserResponse struct { TotalCount int64 `protobuf:"varint,1,opt,name=totalCount,proto3" json:"totalCount,omitempty"` Users []*UserReply `protobuf:"bytes,2,rep,name=Users,proto3" json:"Users,omitempty"` // contains filtered or unexported fields }
func (*ListUserResponse) Descriptor
deprecated
func (*ListUserResponse) Descriptor() ([]byte, []int)
Deprecated: Use ListUserResponse.ProtoReflect.Descriptor instead.
func (*ListUserResponse) GetTotalCount ¶
func (x *ListUserResponse) GetTotalCount() int64
func (*ListUserResponse) GetUsers ¶
func (x *ListUserResponse) GetUsers() []*UserReply
func (*ListUserResponse) ProtoMessage ¶
func (*ListUserResponse) ProtoMessage()
func (*ListUserResponse) ProtoReflect ¶
func (x *ListUserResponse) ProtoReflect() protoreflect.Message
func (*ListUserResponse) Reset ¶
func (x *ListUserResponse) Reset()
func (*ListUserResponse) String ¶
func (x *ListUserResponse) String() string
func (*ListUserResponse) Validate ¶
func (m *ListUserResponse) Validate() error
Validate checks the field values on ListUserResponse 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 (*ListUserResponse) ValidateAll ¶
func (m *ListUserResponse) ValidateAll() error
ValidateAll checks the field values on ListUserResponse 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 ListUserResponseMultiError, or nil if none found.
type ListUserResponseMultiError ¶
type ListUserResponseMultiError []error
ListUserResponseMultiError is an error wrapping multiple validation errors returned by ListUserResponse.ValidateAll() if the designated constraints aren't met.
func (ListUserResponseMultiError) AllErrors ¶
func (m ListUserResponseMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (ListUserResponseMultiError) Error ¶
func (m ListUserResponseMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type ListUserResponseValidationError ¶
type ListUserResponseValidationError struct {
// contains filtered or unexported fields
}
ListUserResponseValidationError is the validation error returned by ListUserResponse.Validate if the designated constraints aren't met.
func (ListUserResponseValidationError) Cause ¶
func (e ListUserResponseValidationError) Cause() error
Cause function returns cause value.
func (ListUserResponseValidationError) Error ¶
func (e ListUserResponseValidationError) Error() string
Error satisfies the builtin error interface
func (ListUserResponseValidationError) ErrorName ¶
func (e ListUserResponseValidationError) ErrorName() string
ErrorName returns error name.
func (ListUserResponseValidationError) Field ¶
func (e ListUserResponseValidationError) Field() string
Field function returns field value.
func (ListUserResponseValidationError) Key ¶
func (e ListUserResponseValidationError) Key() bool
Key function returns key value.
func (ListUserResponseValidationError) Reason ¶
func (e ListUserResponseValidationError) Reason() string
Reason function returns reason value.
type LoginReply ¶
type LoginReply struct { RefreshToken string `protobuf:"bytes,1,opt,name=refresh_token,json=refreshToken,proto3" json:"refresh_token,omitempty"` AccessToken string `protobuf:"bytes,2,opt,name=access_token,json=accessToken,proto3" json:"access_token,omitempty"` Type string `protobuf:"bytes,3,opt,name=type,proto3" json:"type,omitempty"` ExpiresAt int64 `protobuf:"varint,4,opt,name=expiresAt,proto3" json:"expiresAt,omitempty"` // contains filtered or unexported fields }
func (*LoginReply) Descriptor
deprecated
func (*LoginReply) Descriptor() ([]byte, []int)
Deprecated: Use LoginReply.ProtoReflect.Descriptor instead.
func (*LoginReply) GetAccessToken ¶
func (x *LoginReply) GetAccessToken() string
func (*LoginReply) GetExpiresAt ¶
func (x *LoginReply) GetExpiresAt() int64
func (*LoginReply) GetRefreshToken ¶
func (x *LoginReply) GetRefreshToken() string
func (*LoginReply) GetType ¶
func (x *LoginReply) GetType() 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 LoginRequest ¶
type LoginRequest struct { Username string `protobuf:"bytes,1,opt,name=username,proto3" json:"username,omitempty"` Password string `protobuf:"bytes,2,opt,name=password,proto3" json:"password,omitempty"` // contains filtered or unexported fields }
func (*LoginRequest) Descriptor
deprecated
func (*LoginRequest) Descriptor() ([]byte, []int)
Deprecated: Use LoginRequest.ProtoReflect.Descriptor instead.
func (*LoginRequest) GetPassword ¶
func (x *LoginRequest) GetPassword() string
func (*LoginRequest) GetUsername ¶
func (x *LoginRequest) GetUsername() string
func (*LoginRequest) ProtoMessage ¶
func (*LoginRequest) ProtoMessage()
func (*LoginRequest) ProtoReflect ¶
func (x *LoginRequest) ProtoReflect() protoreflect.Message
func (*LoginRequest) Reset ¶
func (x *LoginRequest) Reset()
func (*LoginRequest) String ¶
func (x *LoginRequest) String() string
func (*LoginRequest) Validate ¶
func (m *LoginRequest) Validate() error
Validate checks the field values on LoginRequest 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 (*LoginRequest) ValidateAll ¶
func (m *LoginRequest) ValidateAll() error
ValidateAll checks the field values on LoginRequest 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 LoginRequestMultiError, or nil if none found.
type LoginRequestMultiError ¶
type LoginRequestMultiError []error
LoginRequestMultiError is an error wrapping multiple validation errors returned by LoginRequest.ValidateAll() if the designated constraints aren't met.
func (LoginRequestMultiError) AllErrors ¶
func (m LoginRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (LoginRequestMultiError) Error ¶
func (m LoginRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type LoginRequestValidationError ¶
type LoginRequestValidationError struct {
// contains filtered or unexported fields
}
LoginRequestValidationError is the validation error returned by LoginRequest.Validate if the designated constraints aren't met.
func (LoginRequestValidationError) Cause ¶
func (e LoginRequestValidationError) Cause() error
Cause function returns cause value.
func (LoginRequestValidationError) Error ¶
func (e LoginRequestValidationError) Error() string
Error satisfies the builtin error interface
func (LoginRequestValidationError) ErrorName ¶
func (e LoginRequestValidationError) ErrorName() string
ErrorName returns error name.
func (LoginRequestValidationError) Field ¶
func (e LoginRequestValidationError) Field() string
Field function returns field value.
func (LoginRequestValidationError) Key ¶
func (e LoginRequestValidationError) Key() bool
Key function returns key value.
func (LoginRequestValidationError) Reason ¶
func (e LoginRequestValidationError) Reason() string
Reason function returns reason value.
type LogoutRequest ¶
type LogoutRequest struct {
// contains filtered or unexported fields
}
func (*LogoutRequest) Descriptor
deprecated
func (*LogoutRequest) Descriptor() ([]byte, []int)
Deprecated: Use LogoutRequest.ProtoReflect.Descriptor instead.
func (*LogoutRequest) ProtoMessage ¶
func (*LogoutRequest) ProtoMessage()
func (*LogoutRequest) ProtoReflect ¶
func (x *LogoutRequest) ProtoReflect() protoreflect.Message
func (*LogoutRequest) Reset ¶
func (x *LogoutRequest) Reset()
func (*LogoutRequest) String ¶
func (x *LogoutRequest) String() string
func (*LogoutRequest) Validate ¶
func (m *LogoutRequest) Validate() error
Validate checks the field values on LogoutRequest 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 (*LogoutRequest) ValidateAll ¶
func (m *LogoutRequest) ValidateAll() error
ValidateAll checks the field values on LogoutRequest 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 LogoutRequestMultiError, or nil if none found.
type LogoutRequestMultiError ¶
type LogoutRequestMultiError []error
LogoutRequestMultiError is an error wrapping multiple validation errors returned by LogoutRequest.ValidateAll() if the designated constraints aren't met.
func (LogoutRequestMultiError) AllErrors ¶
func (m LogoutRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (LogoutRequestMultiError) Error ¶
func (m LogoutRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type LogoutRequestValidationError ¶
type LogoutRequestValidationError struct {
// contains filtered or unexported fields
}
LogoutRequestValidationError is the validation error returned by LogoutRequest.Validate if the designated constraints aren't met.
func (LogoutRequestValidationError) Cause ¶
func (e LogoutRequestValidationError) Cause() error
Cause function returns cause value.
func (LogoutRequestValidationError) Error ¶
func (e LogoutRequestValidationError) Error() string
Error satisfies the builtin error interface
func (LogoutRequestValidationError) ErrorName ¶
func (e LogoutRequestValidationError) ErrorName() string
ErrorName returns error name.
func (LogoutRequestValidationError) Field ¶
func (e LogoutRequestValidationError) Field() string
Field function returns field value.
func (LogoutRequestValidationError) Key ¶
func (e LogoutRequestValidationError) Key() bool
Key function returns key value.
func (LogoutRequestValidationError) Reason ¶
func (e LogoutRequestValidationError) Reason() string
Reason function returns reason value.
type RefreshTokenRequest ¶
type RefreshTokenRequest struct {
// contains filtered or unexported fields
}
func (*RefreshTokenRequest) Descriptor
deprecated
func (*RefreshTokenRequest) Descriptor() ([]byte, []int)
Deprecated: Use RefreshTokenRequest.ProtoReflect.Descriptor instead.
func (*RefreshTokenRequest) ProtoMessage ¶
func (*RefreshTokenRequest) ProtoMessage()
func (*RefreshTokenRequest) ProtoReflect ¶
func (x *RefreshTokenRequest) ProtoReflect() protoreflect.Message
func (*RefreshTokenRequest) Reset ¶
func (x *RefreshTokenRequest) Reset()
func (*RefreshTokenRequest) String ¶
func (x *RefreshTokenRequest) String() string
func (*RefreshTokenRequest) Validate ¶
func (m *RefreshTokenRequest) Validate() error
Validate checks the field values on RefreshTokenRequest 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 (*RefreshTokenRequest) ValidateAll ¶
func (m *RefreshTokenRequest) ValidateAll() error
ValidateAll checks the field values on RefreshTokenRequest 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 RefreshTokenRequestMultiError, or nil if none found.
type RefreshTokenRequestMultiError ¶
type RefreshTokenRequestMultiError []error
RefreshTokenRequestMultiError is an error wrapping multiple validation errors returned by RefreshTokenRequest.ValidateAll() if the designated constraints aren't met.
func (RefreshTokenRequestMultiError) AllErrors ¶
func (m RefreshTokenRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (RefreshTokenRequestMultiError) Error ¶
func (m RefreshTokenRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type RefreshTokenRequestValidationError ¶
type RefreshTokenRequestValidationError struct {
// contains filtered or unexported fields
}
RefreshTokenRequestValidationError is the validation error returned by RefreshTokenRequest.Validate if the designated constraints aren't met.
func (RefreshTokenRequestValidationError) Cause ¶
func (e RefreshTokenRequestValidationError) Cause() error
Cause function returns cause value.
func (RefreshTokenRequestValidationError) Error ¶
func (e RefreshTokenRequestValidationError) Error() string
Error satisfies the builtin error interface
func (RefreshTokenRequestValidationError) ErrorName ¶
func (e RefreshTokenRequestValidationError) ErrorName() string
ErrorName returns error name.
func (RefreshTokenRequestValidationError) Field ¶
func (e RefreshTokenRequestValidationError) Field() string
Field function returns field value.
func (RefreshTokenRequestValidationError) Key ¶
func (e RefreshTokenRequestValidationError) Key() bool
Key function returns key value.
func (RefreshTokenRequestValidationError) Reason ¶
func (e RefreshTokenRequestValidationError) Reason() string
Reason function returns reason value.
type SecretReply ¶
type SecretReply struct { UserID string `protobuf:"bytes,1,opt,name=userID,proto3" json:"userID,omitempty"` Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` SecretID string `protobuf:"bytes,3,opt,name=secretID,proto3" json:"secretID,omitempty"` SecretKey string `protobuf:"bytes,4,opt,name=secretKey,proto3" json:"secretKey,omitempty"` Expires int64 `protobuf:"varint,5,opt,name=expires,proto3" json:"expires,omitempty"` Status int32 `protobuf:"varint,6,opt,name=status,proto3" json:"status,omitempty"` Description string `protobuf:"bytes,7,opt,name=description,proto3" json:"description,omitempty"` CreatedAt *timestamppb.Timestamp `protobuf:"bytes,8,opt,name=createdAt,proto3" json:"createdAt,omitempty"` UpdatedAt *timestamppb.Timestamp `protobuf:"bytes,9,opt,name=updatedAt,proto3" json:"updatedAt,omitempty"` // contains filtered or unexported fields }
func (*SecretReply) Descriptor
deprecated
func (*SecretReply) Descriptor() ([]byte, []int)
Deprecated: Use SecretReply.ProtoReflect.Descriptor instead.
func (*SecretReply) GetCreatedAt ¶
func (x *SecretReply) GetCreatedAt() *timestamppb.Timestamp
func (*SecretReply) GetDescription ¶
func (x *SecretReply) GetDescription() string
func (*SecretReply) GetExpires ¶
func (x *SecretReply) GetExpires() int64
func (*SecretReply) GetName ¶
func (x *SecretReply) GetName() string
func (*SecretReply) GetSecretID ¶
func (x *SecretReply) GetSecretID() string
func (*SecretReply) GetSecretKey ¶
func (x *SecretReply) GetSecretKey() string
func (*SecretReply) GetStatus ¶
func (x *SecretReply) GetStatus() int32
func (*SecretReply) GetUpdatedAt ¶
func (x *SecretReply) GetUpdatedAt() *timestamppb.Timestamp
func (*SecretReply) GetUserID ¶
func (x *SecretReply) GetUserID() string
func (*SecretReply) ProtoMessage ¶
func (*SecretReply) ProtoMessage()
func (*SecretReply) ProtoReflect ¶
func (x *SecretReply) ProtoReflect() protoreflect.Message
func (*SecretReply) Reset ¶
func (x *SecretReply) Reset()
func (*SecretReply) String ¶
func (x *SecretReply) String() string
func (*SecretReply) Validate ¶
func (m *SecretReply) Validate() error
Validate checks the field values on SecretReply 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 (*SecretReply) ValidateAll ¶
func (m *SecretReply) ValidateAll() error
ValidateAll checks the field values on SecretReply 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 SecretReplyMultiError, or nil if none found.
type SecretReplyMultiError ¶
type SecretReplyMultiError []error
SecretReplyMultiError is an error wrapping multiple validation errors returned by SecretReply.ValidateAll() if the designated constraints aren't met.
func (SecretReplyMultiError) AllErrors ¶
func (m SecretReplyMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (SecretReplyMultiError) Error ¶
func (m SecretReplyMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type SecretReplyValidationError ¶
type SecretReplyValidationError struct {
// contains filtered or unexported fields
}
SecretReplyValidationError is the validation error returned by SecretReply.Validate if the designated constraints aren't met.
func (SecretReplyValidationError) Cause ¶
func (e SecretReplyValidationError) Cause() error
Cause function returns cause value.
func (SecretReplyValidationError) Error ¶
func (e SecretReplyValidationError) Error() string
Error satisfies the builtin error interface
func (SecretReplyValidationError) ErrorName ¶
func (e SecretReplyValidationError) ErrorName() string
ErrorName returns error name.
func (SecretReplyValidationError) Field ¶
func (e SecretReplyValidationError) Field() string
Field function returns field value.
func (SecretReplyValidationError) Key ¶
func (e SecretReplyValidationError) Key() bool
Key function returns key value.
func (SecretReplyValidationError) Reason ¶
func (e SecretReplyValidationError) Reason() string
Reason function returns reason value.
type UnimplementedUserCenterServer ¶
type UnimplementedUserCenterServer struct { }
UnimplementedUserCenterServer must be embedded to have forward compatible implementations.
func (UnimplementedUserCenterServer) Auth ¶
func (UnimplementedUserCenterServer) Auth(context.Context, *AuthRequest) (*AuthResponse, error)
func (UnimplementedUserCenterServer) Authenticate ¶
func (UnimplementedUserCenterServer) Authenticate(context.Context, *AuthenticateRequest) (*AuthenticateResponse, error)
func (UnimplementedUserCenterServer) Authorize ¶
func (UnimplementedUserCenterServer) Authorize(context.Context, *AuthorizeRequest) (*AuthorizeResponse, error)
func (UnimplementedUserCenterServer) CreateSecret ¶
func (UnimplementedUserCenterServer) CreateSecret(context.Context, *CreateSecretRequest) (*SecretReply, error)
func (UnimplementedUserCenterServer) CreateUser ¶
func (UnimplementedUserCenterServer) CreateUser(context.Context, *CreateUserRequest) (*UserReply, error)
func (UnimplementedUserCenterServer) DeleteSecret ¶
func (UnimplementedUserCenterServer) DeleteSecret(context.Context, *DeleteSecretRequest) (*emptypb.Empty, error)
func (UnimplementedUserCenterServer) DeleteUser ¶
func (UnimplementedUserCenterServer) DeleteUser(context.Context, *DeleteUserRequest) (*emptypb.Empty, error)
func (UnimplementedUserCenterServer) GetSecret ¶
func (UnimplementedUserCenterServer) GetSecret(context.Context, *GetSecretRequest) (*SecretReply, error)
func (UnimplementedUserCenterServer) GetUser ¶
func (UnimplementedUserCenterServer) GetUser(context.Context, *GetUserRequest) (*UserReply, error)
func (UnimplementedUserCenterServer) ListSecret ¶
func (UnimplementedUserCenterServer) ListSecret(context.Context, *ListSecretRequest) (*ListSecretResponse, error)
func (UnimplementedUserCenterServer) ListUser ¶
func (UnimplementedUserCenterServer) ListUser(context.Context, *ListUserRequest) (*ListUserResponse, error)
func (UnimplementedUserCenterServer) Login ¶
func (UnimplementedUserCenterServer) Login(context.Context, *LoginRequest) (*LoginReply, error)
func (UnimplementedUserCenterServer) Logout ¶
func (UnimplementedUserCenterServer) Logout(context.Context, *LogoutRequest) (*emptypb.Empty, error)
func (UnimplementedUserCenterServer) RefreshToken ¶
func (UnimplementedUserCenterServer) RefreshToken(context.Context, *RefreshTokenRequest) (*LoginReply, error)
func (UnimplementedUserCenterServer) UpdatePassword ¶
func (UnimplementedUserCenterServer) UpdatePassword(context.Context, *UpdatePasswordRequest) (*emptypb.Empty, error)
func (UnimplementedUserCenterServer) UpdateSecret ¶
func (UnimplementedUserCenterServer) UpdateSecret(context.Context, *UpdateSecretRequest) (*emptypb.Empty, error)
func (UnimplementedUserCenterServer) UpdateUser ¶
func (UnimplementedUserCenterServer) UpdateUser(context.Context, *UpdateUserRequest) (*emptypb.Empty, error)
type UnsafeUserCenterServer ¶
type UnsafeUserCenterServer interface {
// contains filtered or unexported methods
}
UnsafeUserCenterServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to UserCenterServer will result in compilation errors.
type UpdatePasswordRequest ¶
type UpdatePasswordRequest struct { Username string `protobuf:"bytes,1,opt,name=username,proto3" json:"username,omitempty"` OldPassword string `protobuf:"bytes,2,opt,name=oldPassword,proto3" json:"oldPassword,omitempty"` NewPassword string `protobuf:"bytes,3,opt,name=newPassword,proto3" json:"newPassword,omitempty"` // contains filtered or unexported fields }
func (*UpdatePasswordRequest) Descriptor
deprecated
func (*UpdatePasswordRequest) Descriptor() ([]byte, []int)
Deprecated: Use UpdatePasswordRequest.ProtoReflect.Descriptor instead.
func (*UpdatePasswordRequest) GetNewPassword ¶
func (x *UpdatePasswordRequest) GetNewPassword() string
func (*UpdatePasswordRequest) GetOldPassword ¶
func (x *UpdatePasswordRequest) GetOldPassword() string
func (*UpdatePasswordRequest) GetUsername ¶
func (x *UpdatePasswordRequest) GetUsername() string
func (*UpdatePasswordRequest) ProtoMessage ¶
func (*UpdatePasswordRequest) ProtoMessage()
func (*UpdatePasswordRequest) ProtoReflect ¶
func (x *UpdatePasswordRequest) ProtoReflect() protoreflect.Message
func (*UpdatePasswordRequest) Reset ¶
func (x *UpdatePasswordRequest) Reset()
func (*UpdatePasswordRequest) String ¶
func (x *UpdatePasswordRequest) String() string
func (*UpdatePasswordRequest) Validate ¶
func (m *UpdatePasswordRequest) Validate() error
Validate checks the field values on UpdatePasswordRequest 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 (*UpdatePasswordRequest) ValidateAll ¶
func (m *UpdatePasswordRequest) ValidateAll() error
ValidateAll checks the field values on UpdatePasswordRequest 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 UpdatePasswordRequestMultiError, or nil if none found.
type UpdatePasswordRequestMultiError ¶
type UpdatePasswordRequestMultiError []error
UpdatePasswordRequestMultiError is an error wrapping multiple validation errors returned by UpdatePasswordRequest.ValidateAll() if the designated constraints aren't met.
func (UpdatePasswordRequestMultiError) AllErrors ¶
func (m UpdatePasswordRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (UpdatePasswordRequestMultiError) Error ¶
func (m UpdatePasswordRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type UpdatePasswordRequestValidationError ¶
type UpdatePasswordRequestValidationError struct {
// contains filtered or unexported fields
}
UpdatePasswordRequestValidationError is the validation error returned by UpdatePasswordRequest.Validate if the designated constraints aren't met.
func (UpdatePasswordRequestValidationError) Cause ¶
func (e UpdatePasswordRequestValidationError) Cause() error
Cause function returns cause value.
func (UpdatePasswordRequestValidationError) Error ¶
func (e UpdatePasswordRequestValidationError) Error() string
Error satisfies the builtin error interface
func (UpdatePasswordRequestValidationError) ErrorName ¶
func (e UpdatePasswordRequestValidationError) ErrorName() string
ErrorName returns error name.
func (UpdatePasswordRequestValidationError) Field ¶
func (e UpdatePasswordRequestValidationError) Field() string
Field function returns field value.
func (UpdatePasswordRequestValidationError) Key ¶
func (e UpdatePasswordRequestValidationError) Key() bool
Key function returns key value.
func (UpdatePasswordRequestValidationError) Reason ¶
func (e UpdatePasswordRequestValidationError) Reason() string
Reason function returns reason value.
type UpdateSecretRequest ¶
type UpdateSecretRequest struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` Expires *int64 `protobuf:"varint,2,opt,name=expires,proto3,oneof" json:"expires,omitempty"` Status *int32 `protobuf:"varint,3,opt,name=status,proto3,oneof" json:"status,omitempty"` Description *string `protobuf:"bytes,4,opt,name=description,proto3,oneof" json:"description,omitempty"` // contains filtered or unexported fields }
func (*UpdateSecretRequest) Descriptor
deprecated
func (*UpdateSecretRequest) Descriptor() ([]byte, []int)
Deprecated: Use UpdateSecretRequest.ProtoReflect.Descriptor instead.
func (*UpdateSecretRequest) GetDescription ¶
func (x *UpdateSecretRequest) GetDescription() string
func (*UpdateSecretRequest) GetExpires ¶
func (x *UpdateSecretRequest) GetExpires() int64
func (*UpdateSecretRequest) GetName ¶
func (x *UpdateSecretRequest) GetName() string
func (*UpdateSecretRequest) GetStatus ¶
func (x *UpdateSecretRequest) GetStatus() int32
func (*UpdateSecretRequest) ProtoMessage ¶
func (*UpdateSecretRequest) ProtoMessage()
func (*UpdateSecretRequest) ProtoReflect ¶
func (x *UpdateSecretRequest) ProtoReflect() protoreflect.Message
func (*UpdateSecretRequest) Reset ¶
func (x *UpdateSecretRequest) Reset()
func (*UpdateSecretRequest) String ¶
func (x *UpdateSecretRequest) String() string
func (*UpdateSecretRequest) Validate ¶
func (m *UpdateSecretRequest) Validate() error
Validate checks the field values on UpdateSecretRequest 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 (*UpdateSecretRequest) ValidateAll ¶
func (m *UpdateSecretRequest) ValidateAll() error
ValidateAll checks the field values on UpdateSecretRequest 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 UpdateSecretRequestMultiError, or nil if none found.
type UpdateSecretRequestMultiError ¶
type UpdateSecretRequestMultiError []error
UpdateSecretRequestMultiError is an error wrapping multiple validation errors returned by UpdateSecretRequest.ValidateAll() if the designated constraints aren't met.
func (UpdateSecretRequestMultiError) AllErrors ¶
func (m UpdateSecretRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (UpdateSecretRequestMultiError) Error ¶
func (m UpdateSecretRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type UpdateSecretRequestValidationError ¶
type UpdateSecretRequestValidationError struct {
// contains filtered or unexported fields
}
UpdateSecretRequestValidationError is the validation error returned by UpdateSecretRequest.Validate if the designated constraints aren't met.
func (UpdateSecretRequestValidationError) Cause ¶
func (e UpdateSecretRequestValidationError) Cause() error
Cause function returns cause value.
func (UpdateSecretRequestValidationError) Error ¶
func (e UpdateSecretRequestValidationError) Error() string
Error satisfies the builtin error interface
func (UpdateSecretRequestValidationError) ErrorName ¶
func (e UpdateSecretRequestValidationError) ErrorName() string
ErrorName returns error name.
func (UpdateSecretRequestValidationError) Field ¶
func (e UpdateSecretRequestValidationError) Field() string
Field function returns field value.
func (UpdateSecretRequestValidationError) Key ¶
func (e UpdateSecretRequestValidationError) Key() bool
Key function returns key value.
func (UpdateSecretRequestValidationError) Reason ¶
func (e UpdateSecretRequestValidationError) Reason() string
Reason function returns reason value.
type UpdateUserRequest ¶
type UpdateUserRequest struct { Username string `protobuf:"bytes,1,opt,name=username,proto3" json:"username,omitempty"` Nickname *string `protobuf:"bytes,2,opt,name=nickname,proto3,oneof" json:"nickname,omitempty"` Email *string `protobuf:"bytes,3,opt,name=email,proto3,oneof" json:"email,omitempty"` Phone *string `protobuf:"bytes,4,opt,name=phone,proto3,oneof" json:"phone,omitempty"` // contains filtered or unexported fields }
func (*UpdateUserRequest) Descriptor
deprecated
func (*UpdateUserRequest) Descriptor() ([]byte, []int)
Deprecated: Use UpdateUserRequest.ProtoReflect.Descriptor instead.
func (*UpdateUserRequest) GetEmail ¶
func (x *UpdateUserRequest) GetEmail() string
func (*UpdateUserRequest) GetNickname ¶
func (x *UpdateUserRequest) GetNickname() string
func (*UpdateUserRequest) GetPhone ¶
func (x *UpdateUserRequest) GetPhone() string
func (*UpdateUserRequest) GetUsername ¶
func (x *UpdateUserRequest) GetUsername() string
func (*UpdateUserRequest) ProtoMessage ¶
func (*UpdateUserRequest) ProtoMessage()
func (*UpdateUserRequest) ProtoReflect ¶
func (x *UpdateUserRequest) ProtoReflect() protoreflect.Message
func (*UpdateUserRequest) Reset ¶
func (x *UpdateUserRequest) Reset()
func (*UpdateUserRequest) String ¶
func (x *UpdateUserRequest) String() string
func (*UpdateUserRequest) Validate ¶
func (m *UpdateUserRequest) Validate() error
Validate checks the field values on UpdateUserRequest 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 (*UpdateUserRequest) ValidateAll ¶
func (m *UpdateUserRequest) ValidateAll() error
ValidateAll checks the field values on UpdateUserRequest 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 UpdateUserRequestMultiError, or nil if none found.
type UpdateUserRequestMultiError ¶
type UpdateUserRequestMultiError []error
UpdateUserRequestMultiError is an error wrapping multiple validation errors returned by UpdateUserRequest.ValidateAll() if the designated constraints aren't met.
func (UpdateUserRequestMultiError) AllErrors ¶
func (m UpdateUserRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (UpdateUserRequestMultiError) Error ¶
func (m UpdateUserRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type UpdateUserRequestValidationError ¶
type UpdateUserRequestValidationError struct {
// contains filtered or unexported fields
}
UpdateUserRequestValidationError is the validation error returned by UpdateUserRequest.Validate if the designated constraints aren't met.
func (UpdateUserRequestValidationError) Cause ¶
func (e UpdateUserRequestValidationError) Cause() error
Cause function returns cause value.
func (UpdateUserRequestValidationError) Error ¶
func (e UpdateUserRequestValidationError) Error() string
Error satisfies the builtin error interface
func (UpdateUserRequestValidationError) ErrorName ¶
func (e UpdateUserRequestValidationError) ErrorName() string
ErrorName returns error name.
func (UpdateUserRequestValidationError) Field ¶
func (e UpdateUserRequestValidationError) Field() string
Field function returns field value.
func (UpdateUserRequestValidationError) Key ¶
func (e UpdateUserRequestValidationError) Key() bool
Key function returns key value.
func (UpdateUserRequestValidationError) Reason ¶
func (e UpdateUserRequestValidationError) Reason() string
Reason function returns reason value.
type UserCenterClient ¶
type UserCenterClient interface { // Login Login(ctx context.Context, in *LoginRequest, opts ...grpc.CallOption) (*LoginReply, error) // Logout Logout(ctx context.Context, in *LogoutRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) // RefreshToken RefreshToken(ctx context.Context, in *RefreshTokenRequest, opts ...grpc.CallOption) (*LoginReply, error) // Authenticate Authenticate(ctx context.Context, in *AuthenticateRequest, opts ...grpc.CallOption) (*AuthenticateResponse, error) // Authorize Authorize(ctx context.Context, in *AuthorizeRequest, opts ...grpc.CallOption) (*AuthorizeResponse, error) // Auth Auth(ctx context.Context, in *AuthRequest, opts ...grpc.CallOption) (*AuthResponse, error) // CreateUser CreateUser(ctx context.Context, in *CreateUserRequest, opts ...grpc.CallOption) (*UserReply, error) // ListUser ListUser(ctx context.Context, in *ListUserRequest, opts ...grpc.CallOption) (*ListUserResponse, error) // GetUser GetUser(ctx context.Context, in *GetUserRequest, opts ...grpc.CallOption) (*UserReply, error) // UpdateUser UpdateUser(ctx context.Context, in *UpdateUserRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) // DeleteUser DeleteUser(ctx context.Context, in *DeleteUserRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) // UpdatePassword UpdatePassword(ctx context.Context, in *UpdatePasswordRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) // CreateSecret CreateSecret(ctx context.Context, in *CreateSecretRequest, opts ...grpc.CallOption) (*SecretReply, error) // ListSecret ListSecret(ctx context.Context, in *ListSecretRequest, opts ...grpc.CallOption) (*ListSecretResponse, error) // GetSecret GetSecret(ctx context.Context, in *GetSecretRequest, opts ...grpc.CallOption) (*SecretReply, error) // UpdateSecret UpdateSecret(ctx context.Context, in *UpdateSecretRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) // DeleteSecret DeleteSecret(ctx context.Context, in *DeleteSecretRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) }
UserCenterClient is the client API for UserCenter 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 NewUserCenterClient ¶
func NewUserCenterClient(cc grpc.ClientConnInterface) UserCenterClient
type UserCenterHTTPClient ¶
type UserCenterHTTPClient interface { Auth(ctx context.Context, req *AuthRequest, opts ...http.CallOption) (rsp *AuthResponse, err error) Authenticate(ctx context.Context, req *AuthenticateRequest, opts ...http.CallOption) (rsp *AuthenticateResponse, err error) Authorize(ctx context.Context, req *AuthorizeRequest, opts ...http.CallOption) (rsp *AuthorizeResponse, err error) CreateSecret(ctx context.Context, req *CreateSecretRequest, opts ...http.CallOption) (rsp *SecretReply, err error) CreateUser(ctx context.Context, req *CreateUserRequest, opts ...http.CallOption) (rsp *UserReply, err error) DeleteSecret(ctx context.Context, req *DeleteSecretRequest, opts ...http.CallOption) (rsp *emptypb.Empty, err error) DeleteUser(ctx context.Context, req *DeleteUserRequest, opts ...http.CallOption) (rsp *emptypb.Empty, err error) GetSecret(ctx context.Context, req *GetSecretRequest, opts ...http.CallOption) (rsp *SecretReply, err error) GetUser(ctx context.Context, req *GetUserRequest, opts ...http.CallOption) (rsp *UserReply, err error) ListSecret(ctx context.Context, req *ListSecretRequest, opts ...http.CallOption) (rsp *ListSecretResponse, err error) ListUser(ctx context.Context, req *ListUserRequest, opts ...http.CallOption) (rsp *ListUserResponse, err error) Login(ctx context.Context, req *LoginRequest, opts ...http.CallOption) (rsp *LoginReply, err error) Logout(ctx context.Context, req *LogoutRequest, opts ...http.CallOption) (rsp *emptypb.Empty, err error) RefreshToken(ctx context.Context, req *RefreshTokenRequest, opts ...http.CallOption) (rsp *LoginReply, err error) UpdatePassword(ctx context.Context, req *UpdatePasswordRequest, opts ...http.CallOption) (rsp *emptypb.Empty, err error) UpdateSecret(ctx context.Context, req *UpdateSecretRequest, opts ...http.CallOption) (rsp *emptypb.Empty, err error) UpdateUser(ctx context.Context, req *UpdateUserRequest, opts ...http.CallOption) (rsp *emptypb.Empty, err error) }
func NewUserCenterHTTPClient ¶
func NewUserCenterHTTPClient(client *http.Client) UserCenterHTTPClient
type UserCenterHTTPClientImpl ¶
type UserCenterHTTPClientImpl struct {
// contains filtered or unexported fields
}
func (*UserCenterHTTPClientImpl) Auth ¶
func (c *UserCenterHTTPClientImpl) Auth(ctx context.Context, in *AuthRequest, opts ...http.CallOption) (*AuthResponse, error)
func (*UserCenterHTTPClientImpl) Authenticate ¶
func (c *UserCenterHTTPClientImpl) Authenticate(ctx context.Context, in *AuthenticateRequest, opts ...http.CallOption) (*AuthenticateResponse, error)
func (*UserCenterHTTPClientImpl) Authorize ¶
func (c *UserCenterHTTPClientImpl) Authorize(ctx context.Context, in *AuthorizeRequest, opts ...http.CallOption) (*AuthorizeResponse, error)
func (*UserCenterHTTPClientImpl) CreateSecret ¶
func (c *UserCenterHTTPClientImpl) CreateSecret(ctx context.Context, in *CreateSecretRequest, opts ...http.CallOption) (*SecretReply, error)
func (*UserCenterHTTPClientImpl) CreateUser ¶
func (c *UserCenterHTTPClientImpl) CreateUser(ctx context.Context, in *CreateUserRequest, opts ...http.CallOption) (*UserReply, error)
func (*UserCenterHTTPClientImpl) DeleteSecret ¶
func (c *UserCenterHTTPClientImpl) DeleteSecret(ctx context.Context, in *DeleteSecretRequest, opts ...http.CallOption) (*emptypb.Empty, error)
func (*UserCenterHTTPClientImpl) DeleteUser ¶
func (c *UserCenterHTTPClientImpl) DeleteUser(ctx context.Context, in *DeleteUserRequest, opts ...http.CallOption) (*emptypb.Empty, error)
func (*UserCenterHTTPClientImpl) GetSecret ¶
func (c *UserCenterHTTPClientImpl) GetSecret(ctx context.Context, in *GetSecretRequest, opts ...http.CallOption) (*SecretReply, error)
func (*UserCenterHTTPClientImpl) GetUser ¶
func (c *UserCenterHTTPClientImpl) GetUser(ctx context.Context, in *GetUserRequest, opts ...http.CallOption) (*UserReply, error)
func (*UserCenterHTTPClientImpl) ListSecret ¶
func (c *UserCenterHTTPClientImpl) ListSecret(ctx context.Context, in *ListSecretRequest, opts ...http.CallOption) (*ListSecretResponse, error)
func (*UserCenterHTTPClientImpl) ListUser ¶
func (c *UserCenterHTTPClientImpl) ListUser(ctx context.Context, in *ListUserRequest, opts ...http.CallOption) (*ListUserResponse, error)
func (*UserCenterHTTPClientImpl) Login ¶
func (c *UserCenterHTTPClientImpl) Login(ctx context.Context, in *LoginRequest, opts ...http.CallOption) (*LoginReply, error)
func (*UserCenterHTTPClientImpl) Logout ¶
func (c *UserCenterHTTPClientImpl) Logout(ctx context.Context, in *LogoutRequest, opts ...http.CallOption) (*emptypb.Empty, error)
func (*UserCenterHTTPClientImpl) RefreshToken ¶
func (c *UserCenterHTTPClientImpl) RefreshToken(ctx context.Context, in *RefreshTokenRequest, opts ...http.CallOption) (*LoginReply, error)
func (*UserCenterHTTPClientImpl) UpdatePassword ¶
func (c *UserCenterHTTPClientImpl) UpdatePassword(ctx context.Context, in *UpdatePasswordRequest, opts ...http.CallOption) (*emptypb.Empty, error)
func (*UserCenterHTTPClientImpl) UpdateSecret ¶
func (c *UserCenterHTTPClientImpl) UpdateSecret(ctx context.Context, in *UpdateSecretRequest, opts ...http.CallOption) (*emptypb.Empty, error)
func (*UserCenterHTTPClientImpl) UpdateUser ¶
func (c *UserCenterHTTPClientImpl) UpdateUser(ctx context.Context, in *UpdateUserRequest, opts ...http.CallOption) (*emptypb.Empty, error)
type UserCenterHTTPServer ¶
type UserCenterHTTPServer interface { // Auth Auth Auth(context.Context, *AuthRequest) (*AuthResponse, error) // Authenticate Authenticate Authenticate(context.Context, *AuthenticateRequest) (*AuthenticateResponse, error) // Authorize Authorize Authorize(context.Context, *AuthorizeRequest) (*AuthorizeResponse, error) // CreateSecret CreateSecret CreateSecret(context.Context, *CreateSecretRequest) (*SecretReply, error) // CreateUser CreateUser CreateUser(context.Context, *CreateUserRequest) (*UserReply, error) // DeleteSecret DeleteSecret DeleteSecret(context.Context, *DeleteSecretRequest) (*emptypb.Empty, error) // DeleteUser DeleteUser DeleteUser(context.Context, *DeleteUserRequest) (*emptypb.Empty, error) // GetSecret GetSecret GetSecret(context.Context, *GetSecretRequest) (*SecretReply, error) // GetUser GetUser GetUser(context.Context, *GetUserRequest) (*UserReply, error) // ListSecret ListSecret ListSecret(context.Context, *ListSecretRequest) (*ListSecretResponse, error) // ListUser ListUser ListUser(context.Context, *ListUserRequest) (*ListUserResponse, error) // Login Login Login(context.Context, *LoginRequest) (*LoginReply, error) // Logout Logout Logout(context.Context, *LogoutRequest) (*emptypb.Empty, error) // RefreshToken RefreshToken RefreshToken(context.Context, *RefreshTokenRequest) (*LoginReply, error) // UpdatePassword UpdatePassword UpdatePassword(context.Context, *UpdatePasswordRequest) (*emptypb.Empty, error) // UpdateSecret UpdateSecret UpdateSecret(context.Context, *UpdateSecretRequest) (*emptypb.Empty, error) // UpdateUser UpdateUser UpdateUser(context.Context, *UpdateUserRequest) (*emptypb.Empty, error) }
type UserCenterServer ¶
type UserCenterServer interface { // Login Login(context.Context, *LoginRequest) (*LoginReply, error) // Logout Logout(context.Context, *LogoutRequest) (*emptypb.Empty, error) // RefreshToken RefreshToken(context.Context, *RefreshTokenRequest) (*LoginReply, error) // Authenticate Authenticate(context.Context, *AuthenticateRequest) (*AuthenticateResponse, error) // Authorize Authorize(context.Context, *AuthorizeRequest) (*AuthorizeResponse, error) // Auth Auth(context.Context, *AuthRequest) (*AuthResponse, error) // CreateUser CreateUser(context.Context, *CreateUserRequest) (*UserReply, error) // ListUser ListUser(context.Context, *ListUserRequest) (*ListUserResponse, error) // GetUser GetUser(context.Context, *GetUserRequest) (*UserReply, error) // UpdateUser UpdateUser(context.Context, *UpdateUserRequest) (*emptypb.Empty, error) // DeleteUser DeleteUser(context.Context, *DeleteUserRequest) (*emptypb.Empty, error) // UpdatePassword UpdatePassword(context.Context, *UpdatePasswordRequest) (*emptypb.Empty, error) // CreateSecret CreateSecret(context.Context, *CreateSecretRequest) (*SecretReply, error) // ListSecret ListSecret(context.Context, *ListSecretRequest) (*ListSecretResponse, error) // GetSecret GetSecret(context.Context, *GetSecretRequest) (*SecretReply, error) // UpdateSecret UpdateSecret(context.Context, *UpdateSecretRequest) (*emptypb.Empty, error) // DeleteSecret DeleteSecret(context.Context, *DeleteSecretRequest) (*emptypb.Empty, error) // contains filtered or unexported methods }
UserCenterServer is the server API for UserCenter service. All implementations must embed UnimplementedUserCenterServer for forward compatibility
type UserReply ¶
type UserReply struct { UserID string `protobuf:"bytes,1,opt,name=userID,proto3" json:"userID,omitempty"` Username string `protobuf:"bytes,2,opt,name=username,proto3" json:"username,omitempty"` Nickname string `protobuf:"bytes,3,opt,name=nickname,proto3" json:"nickname,omitempty"` Password string `protobuf:"bytes,4,opt,name=password,proto3" json:"password,omitempty"` Email string `protobuf:"bytes,5,opt,name=email,proto3" json:"email,omitempty"` Phone string `protobuf:"bytes,6,opt,name=phone,proto3" json:"phone,omitempty"` Secrets int64 `protobuf:"varint,7,opt,name=secrets,proto3" json:"secrets,omitempty"` CreatedAt *timestamppb.Timestamp `protobuf:"bytes,8,opt,name=createdAt,proto3" json:"createdAt,omitempty"` UpdatedAt *timestamppb.Timestamp `protobuf:"bytes,9,opt,name=updatedAt,proto3" json:"updatedAt,omitempty"` // contains filtered or unexported fields }
func (*UserReply) Descriptor
deprecated
func (*UserReply) GetCreatedAt ¶
func (x *UserReply) GetCreatedAt() *timestamppb.Timestamp
func (*UserReply) GetNickname ¶
func (*UserReply) GetPassword ¶
func (*UserReply) GetSecrets ¶
func (*UserReply) GetUpdatedAt ¶
func (x *UserReply) GetUpdatedAt() *timestamppb.Timestamp
func (*UserReply) GetUsername ¶
func (*UserReply) ProtoMessage ¶
func (*UserReply) ProtoMessage()
func (*UserReply) ProtoReflect ¶
func (x *UserReply) ProtoReflect() protoreflect.Message
func (*UserReply) Validate ¶
Validate checks the field values on UserReply 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 (*UserReply) ValidateAll ¶
ValidateAll checks the field values on UserReply 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 UserReplyMultiError, or nil if none found.
type UserReplyMultiError ¶
type UserReplyMultiError []error
UserReplyMultiError is an error wrapping multiple validation errors returned by UserReply.ValidateAll() if the designated constraints aren't met.
func (UserReplyMultiError) AllErrors ¶
func (m UserReplyMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (UserReplyMultiError) Error ¶
func (m UserReplyMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type UserReplyValidationError ¶
type UserReplyValidationError struct {
// contains filtered or unexported fields
}
UserReplyValidationError is the validation error returned by UserReply.Validate if the designated constraints aren't met.
func (UserReplyValidationError) Cause ¶
func (e UserReplyValidationError) Cause() error
Cause function returns cause value.
func (UserReplyValidationError) Error ¶
func (e UserReplyValidationError) Error() string
Error satisfies the builtin error interface
func (UserReplyValidationError) ErrorName ¶
func (e UserReplyValidationError) ErrorName() string
ErrorName returns error name.
func (UserReplyValidationError) Field ¶
func (e UserReplyValidationError) Field() string
Field function returns field value.
func (UserReplyValidationError) Key ¶
func (e UserReplyValidationError) Key() bool
Key function returns key value.
func (UserReplyValidationError) Reason ¶
func (e UserReplyValidationError) Reason() string
Reason function returns reason value.