v1

package
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 7, 2024 License: MIT Imports: 27 Imported by: 0

Documentation

Index

Constants

View Source
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"
)
View Source
const OperationUserCenterAuth = "/usercenter.v1.UserCenter/Auth"
View Source
const OperationUserCenterAuthenticate = "/usercenter.v1.UserCenter/Authenticate"
View Source
const OperationUserCenterAuthorize = "/usercenter.v1.UserCenter/Authorize"
View Source
const OperationUserCenterCreateSecret = "/usercenter.v1.UserCenter/CreateSecret"
View Source
const OperationUserCenterCreateUser = "/usercenter.v1.UserCenter/CreateUser"
View Source
const OperationUserCenterDeleteSecret = "/usercenter.v1.UserCenter/DeleteSecret"
View Source
const OperationUserCenterDeleteUser = "/usercenter.v1.UserCenter/DeleteUser"
View Source
const OperationUserCenterGetSecret = "/usercenter.v1.UserCenter/GetSecret"
View Source
const OperationUserCenterGetUser = "/usercenter.v1.UserCenter/GetUser"
View Source
const OperationUserCenterListSecret = "/usercenter.v1.UserCenter/ListSecret"
View Source
const OperationUserCenterListUser = "/usercenter.v1.UserCenter/ListUser"
View Source
const OperationUserCenterLogin = "/usercenter.v1.UserCenter/Login"
View Source
const OperationUserCenterLogout = "/usercenter.v1.UserCenter/Logout"
View Source
const OperationUserCenterRefreshToken = "/usercenter.v1.UserCenter/RefreshToken"
View Source
const OperationUserCenterUpdatePassword = "/usercenter.v1.UserCenter/UpdatePassword"
View Source
const OperationUserCenterUpdateSecret = "/usercenter.v1.UserCenter/UpdateSecret"
View Source
const OperationUserCenterUpdateUser = "/usercenter.v1.UserCenter/UpdateUser"

Variables

View Source
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.

View Source
var File_usercenter_v1_errors_proto protoreflect.FileDescriptor
View Source
var File_usercenter_v1_usercenter_proto protoreflect.FileDescriptor
View Source
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 ErrorSecretCreateFailed(format string, args ...interface{}) *errors.Error

创建密钥失败,可能是由于服务器或其他问题导致的创建过程中的错误

func ErrorSecretNotFound

func ErrorSecretNotFound(format string, args ...interface{}) *errors.Error

密钥未找到,可能是由于密钥不存在或输入的密钥标识有误

func ErrorSecretReachMaxCount

func ErrorSecretReachMaxCount(format string, args ...interface{}) *errors.Error

密钥达到最大数量限制,无法继续创建新密钥

func ErrorUserAlreadyExists

func ErrorUserAlreadyExists(format string, args ...interface{}) *errors.Error

用户已存在,无法创建用户

func ErrorUserCreateFailed

func ErrorUserCreateFailed(format string, args ...interface{}) *errors.Error

创建用户失败,可能是由于服务器或其他问题导致的创建过程中的错误

func ErrorUserLoginFailed

func ErrorUserLoginFailed(format string, args ...interface{}) *errors.Error

用户登录失败,身份验证未通过

func ErrorUserNotFound

func ErrorUserNotFound(format string, args ...interface{}) *errors.Error

用户未找到,可能是用户不存在或输入的用户标识有误

func ErrorUserOperationForbidden

func ErrorUserOperationForbidden(format string, args ...interface{}) *errors.Error

用户操作被禁止,可能是由于权限不足或其他安全限制导致的

func IsSecretCreateFailed

func IsSecretCreateFailed(err error) bool

创建密钥失败,可能是由于服务器或其他问题导致的创建过程中的错误

func IsSecretNotFound

func IsSecretNotFound(err error) bool

密钥未找到,可能是由于密钥不存在或输入的密钥标识有误

func IsSecretReachMaxCount

func IsSecretReachMaxCount(err error) bool

密钥达到最大数量限制,无法继续创建新密钥

func IsUserAlreadyExists

func IsUserAlreadyExists(err error) bool

用户已存在,无法创建用户

func IsUserCreateFailed

func IsUserCreateFailed(err error) bool

创建用户失败,可能是由于服务器或其他问题导致的创建过程中的错误

func IsUserLoginFailed

func IsUserLoginFailed(err error) bool

用户登录失败,身份验证未通过

func IsUserNotFound

func IsUserNotFound(err error) bool

用户未找到,可能是用户不存在或输入的用户标识有误

func IsUserOperationForbidden

func IsUserOperationForbidden(err error) bool

用户操作被禁止,可能是由于权限不足或其他安全限制导致的

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

Cause function returns cause value.

func (AuthRequestValidationError) Error

Error satisfies the builtin error interface

func (AuthRequestValidationError) ErrorName

func (e AuthRequestValidationError) ErrorName() string

ErrorName returns error name.

func (AuthRequestValidationError) Field

Field function returns field value.

func (AuthRequestValidationError) Key

Key function returns key value.

func (AuthRequestValidationError) Reason

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

Cause function returns cause value.

func (AuthResponseValidationError) Error

Error satisfies the builtin error interface

func (AuthResponseValidationError) ErrorName

func (e AuthResponseValidationError) ErrorName() string

ErrorName returns error name.

func (AuthResponseValidationError) Field

Field function returns field value.

func (AuthResponseValidationError) Key

Key function returns key value.

func (AuthResponseValidationError) Reason

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

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

Cause function returns cause value.

func (AuthenticateRequestValidationError) Error

Error satisfies the builtin error interface

func (AuthenticateRequestValidationError) ErrorName

ErrorName returns error name.

func (AuthenticateRequestValidationError) Field

Field function returns field value.

func (AuthenticateRequestValidationError) Key

Key function returns key value.

func (AuthenticateRequestValidationError) Reason

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

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

Cause function returns cause value.

func (AuthenticateResponseValidationError) Error

Error satisfies the builtin error interface

func (AuthenticateResponseValidationError) ErrorName

ErrorName returns error name.

func (AuthenticateResponseValidationError) Field

Field function returns field value.

func (AuthenticateResponseValidationError) Key

Key function returns key value.

func (AuthenticateResponseValidationError) Reason

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

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

Cause function returns cause value.

func (AuthorizeRequestValidationError) Error

Error satisfies the builtin error interface

func (AuthorizeRequestValidationError) ErrorName

ErrorName returns error name.

func (AuthorizeRequestValidationError) Field

Field function returns field value.

func (AuthorizeRequestValidationError) Key

Key function returns key value.

func (AuthorizeRequestValidationError) Reason

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

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

Cause function returns cause value.

func (AuthorizeResponseValidationError) Error

Error satisfies the builtin error interface

func (AuthorizeResponseValidationError) ErrorName

ErrorName returns error name.

func (AuthorizeResponseValidationError) Field

Field function returns field value.

func (AuthorizeResponseValidationError) Key

Key function returns key value.

func (AuthorizeResponseValidationError) Reason

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

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

Cause function returns cause value.

func (CreateSecretRequestValidationError) Error

Error satisfies the builtin error interface

func (CreateSecretRequestValidationError) ErrorName

ErrorName returns error name.

func (CreateSecretRequestValidationError) Field

Field function returns field value.

func (CreateSecretRequestValidationError) Key

Key function returns key value.

func (CreateSecretRequestValidationError) Reason

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

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

Cause function returns cause value.

func (CreateUserRequestValidationError) Error

Error satisfies the builtin error interface

func (CreateUserRequestValidationError) ErrorName

ErrorName returns error name.

func (CreateUserRequestValidationError) Field

Field function returns field value.

func (CreateUserRequestValidationError) Key

Key function returns key value.

func (CreateUserRequestValidationError) Reason

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

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

Cause function returns cause value.

func (DeleteSecretRequestValidationError) Error

Error satisfies the builtin error interface

func (DeleteSecretRequestValidationError) ErrorName

ErrorName returns error name.

func (DeleteSecretRequestValidationError) Field

Field function returns field value.

func (DeleteSecretRequestValidationError) Key

Key function returns key value.

func (DeleteSecretRequestValidationError) Reason

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

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

Cause function returns cause value.

func (DeleteUserRequestValidationError) Error

Error satisfies the builtin error interface

func (DeleteUserRequestValidationError) ErrorName

ErrorName returns error name.

func (DeleteUserRequestValidationError) Field

Field function returns field value.

func (DeleteUserRequestValidationError) Key

Key function returns key value.

func (DeleteUserRequestValidationError) Reason

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) 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

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

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

Cause function returns cause value.

func (GetSecretRequestValidationError) Error

Error satisfies the builtin error interface

func (GetSecretRequestValidationError) ErrorName

ErrorName returns error name.

func (GetSecretRequestValidationError) Field

Field function returns field value.

func (GetSecretRequestValidationError) Key

Key function returns key value.

func (GetSecretRequestValidationError) Reason

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

Cause function returns cause value.

func (GetUserRequestValidationError) Error

Error satisfies the builtin error interface

func (GetUserRequestValidationError) ErrorName

func (e GetUserRequestValidationError) ErrorName() string

ErrorName returns error name.

func (GetUserRequestValidationError) Field

Field function returns field value.

func (GetUserRequestValidationError) Key

Key function returns key value.

func (GetUserRequestValidationError) Reason

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

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

Cause function returns cause value.

func (ListSecretRequestValidationError) Error

Error satisfies the builtin error interface

func (ListSecretRequestValidationError) ErrorName

ErrorName returns error name.

func (ListSecretRequestValidationError) Field

Field function returns field value.

func (ListSecretRequestValidationError) Key

Key function returns key value.

func (ListSecretRequestValidationError) Reason

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

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

Cause function returns cause value.

func (ListSecretResponseValidationError) Error

Error satisfies the builtin error interface

func (ListSecretResponseValidationError) ErrorName

ErrorName returns error name.

func (ListSecretResponseValidationError) Field

Field function returns field value.

func (ListSecretResponseValidationError) Key

Key function returns key value.

func (ListSecretResponseValidationError) Reason

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

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

Cause function returns cause value.

func (ListUserRequestValidationError) Error

Error satisfies the builtin error interface

func (ListUserRequestValidationError) ErrorName

func (e ListUserRequestValidationError) ErrorName() string

ErrorName returns error name.

func (ListUserRequestValidationError) Field

Field function returns field value.

func (ListUserRequestValidationError) Key

Key function returns key value.

func (ListUserRequestValidationError) Reason

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

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

Cause function returns cause value.

func (ListUserResponseValidationError) Error

Error satisfies the builtin error interface

func (ListUserResponseValidationError) ErrorName

ErrorName returns error name.

func (ListUserResponseValidationError) Field

Field function returns field value.

func (ListUserResponseValidationError) Key

Key function returns key value.

func (ListUserResponseValidationError) Reason

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

Error satisfies the builtin error interface

func (LoginReplyValidationError) ErrorName

func (e LoginReplyValidationError) ErrorName() string

ErrorName returns error name.

func (LoginReplyValidationError) Field

Field function returns field value.

func (LoginReplyValidationError) Key

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

Cause function returns cause value.

func (LoginRequestValidationError) Error

Error satisfies the builtin error interface

func (LoginRequestValidationError) ErrorName

func (e LoginRequestValidationError) ErrorName() string

ErrorName returns error name.

func (LoginRequestValidationError) Field

Field function returns field value.

func (LoginRequestValidationError) Key

Key function returns key value.

func (LoginRequestValidationError) Reason

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

Cause function returns cause value.

func (LogoutRequestValidationError) Error

Error satisfies the builtin error interface

func (LogoutRequestValidationError) ErrorName

func (e LogoutRequestValidationError) ErrorName() string

ErrorName returns error name.

func (LogoutRequestValidationError) Field

Field function returns field value.

func (LogoutRequestValidationError) Key

Key function returns key value.

func (LogoutRequestValidationError) Reason

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

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

Cause function returns cause value.

func (RefreshTokenRequestValidationError) Error

Error satisfies the builtin error interface

func (RefreshTokenRequestValidationError) ErrorName

ErrorName returns error name.

func (RefreshTokenRequestValidationError) Field

Field function returns field value.

func (RefreshTokenRequestValidationError) Key

Key function returns key value.

func (RefreshTokenRequestValidationError) Reason

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

Cause function returns cause value.

func (SecretReplyValidationError) Error

Error satisfies the builtin error interface

func (SecretReplyValidationError) ErrorName

func (e SecretReplyValidationError) ErrorName() string

ErrorName returns error name.

func (SecretReplyValidationError) Field

Field function returns field value.

func (SecretReplyValidationError) Key

Key function returns key value.

func (SecretReplyValidationError) Reason

Reason function returns reason value.

type UnimplementedUserCenterServer

type UnimplementedUserCenterServer struct {
}

UnimplementedUserCenterServer must be embedded to have forward compatible implementations.

func (UnimplementedUserCenterServer) Auth

func (UnimplementedUserCenterServer) Authenticate

func (UnimplementedUserCenterServer) Authorize

func (UnimplementedUserCenterServer) CreateSecret

func (UnimplementedUserCenterServer) CreateUser

func (UnimplementedUserCenterServer) DeleteSecret

func (UnimplementedUserCenterServer) DeleteUser

func (UnimplementedUserCenterServer) GetSecret

func (UnimplementedUserCenterServer) GetUser

func (UnimplementedUserCenterServer) ListSecret

func (UnimplementedUserCenterServer) ListUser

func (UnimplementedUserCenterServer) Login

func (UnimplementedUserCenterServer) Logout

func (UnimplementedUserCenterServer) RefreshToken

func (UnimplementedUserCenterServer) UpdatePassword

func (UnimplementedUserCenterServer) UpdateSecret

func (UnimplementedUserCenterServer) UpdateUser

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

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

Cause function returns cause value.

func (UpdatePasswordRequestValidationError) Error

Error satisfies the builtin error interface

func (UpdatePasswordRequestValidationError) ErrorName

ErrorName returns error name.

func (UpdatePasswordRequestValidationError) Field

Field function returns field value.

func (UpdatePasswordRequestValidationError) Key

Key function returns key value.

func (UpdatePasswordRequestValidationError) Reason

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

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

Cause function returns cause value.

func (UpdateSecretRequestValidationError) Error

Error satisfies the builtin error interface

func (UpdateSecretRequestValidationError) ErrorName

ErrorName returns error name.

func (UpdateSecretRequestValidationError) Field

Field function returns field value.

func (UpdateSecretRequestValidationError) Key

Key function returns key value.

func (UpdateSecretRequestValidationError) Reason

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

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

Cause function returns cause value.

func (UpdateUserRequestValidationError) Error

Error satisfies the builtin error interface

func (UpdateUserRequestValidationError) ErrorName

ErrorName returns error name.

func (UpdateUserRequestValidationError) Field

Field function returns field value.

func (UpdateUserRequestValidationError) Key

Key function returns key value.

func (UpdateUserRequestValidationError) Reason

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 (*UserCenterHTTPClientImpl) Authenticate

func (*UserCenterHTTPClientImpl) Authorize

func (*UserCenterHTTPClientImpl) CreateSecret

func (*UserCenterHTTPClientImpl) CreateUser

func (*UserCenterHTTPClientImpl) DeleteSecret

func (*UserCenterHTTPClientImpl) DeleteUser

func (*UserCenterHTTPClientImpl) GetSecret

func (*UserCenterHTTPClientImpl) GetUser

func (*UserCenterHTTPClientImpl) ListSecret

func (*UserCenterHTTPClientImpl) ListUser

func (*UserCenterHTTPClientImpl) Login

func (*UserCenterHTTPClientImpl) Logout

func (*UserCenterHTTPClientImpl) RefreshToken

func (*UserCenterHTTPClientImpl) UpdatePassword

func (*UserCenterHTTPClientImpl) UpdateSecret

func (*UserCenterHTTPClientImpl) UpdateUser

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) Descriptor() ([]byte, []int)

Deprecated: Use UserReply.ProtoReflect.Descriptor instead.

func (*UserReply) GetCreatedAt

func (x *UserReply) GetCreatedAt() *timestamppb.Timestamp

func (*UserReply) GetEmail

func (x *UserReply) GetEmail() string

func (*UserReply) GetNickname

func (x *UserReply) GetNickname() string

func (*UserReply) GetPassword

func (x *UserReply) GetPassword() string

func (*UserReply) GetPhone

func (x *UserReply) GetPhone() string

func (*UserReply) GetSecrets

func (x *UserReply) GetSecrets() int64

func (*UserReply) GetUpdatedAt

func (x *UserReply) GetUpdatedAt() *timestamppb.Timestamp

func (*UserReply) GetUserID

func (x *UserReply) GetUserID() string

func (*UserReply) GetUsername

func (x *UserReply) GetUsername() string

func (*UserReply) ProtoMessage

func (*UserReply) ProtoMessage()

func (*UserReply) ProtoReflect

func (x *UserReply) ProtoReflect() protoreflect.Message

func (*UserReply) Reset

func (x *UserReply) Reset()

func (*UserReply) String

func (x *UserReply) String() string

func (*UserReply) Validate

func (m *UserReply) Validate() error

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

func (m *UserReply) ValidateAll() error

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

Key function returns key value.

func (UserReplyValidationError) Reason

func (e UserReplyValidationError) Reason() string

Reason function returns reason value.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL