Versions in this module Expand all Collapse all v0 v0.1.0 Feb 7, 2024 Changes in this version + const CacheServer_DelSecret_FullMethodName + const CacheServer_Del_FullMethodName + const CacheServer_GetSecret_FullMethodName + const CacheServer_Get_FullMethodName + const CacheServer_SetSecret_FullMethodName + const CacheServer_Set_FullMethodName + var CacheServer_ServiceDesc = grpc.ServiceDesc + var ErrorReason_name = map[int32]string + var ErrorReason_value = map[string]int32 + var File_cacheserver_v1_cacheserver_proto protoreflect.FileDescriptor + var File_cacheserver_v1_errors_proto protoreflect.FileDescriptor + func ErrorOrderAlreadyExists(format string, args ...interface{}) *errors.Error + func ErrorOrderCreateFailed(format string, args ...interface{}) *errors.Error + func ErrorOrderNotFound(format string, args ...interface{}) *errors.Error + func IsOrderAlreadyExists(err error) bool + func IsOrderCreateFailed(err error) bool + func IsOrderNotFound(err error) bool + func RegisterCacheServerServer(s grpc.ServiceRegistrar, srv CacheServerServer) + type CacheServerClient interface + Del func(ctx context.Context, in *DelRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) + DelSecret func(ctx context.Context, in *DelSecretRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) + Get func(ctx context.Context, in *GetRequest, opts ...grpc.CallOption) (*GetResponse, error) + GetSecret func(ctx context.Context, in *GetSecretRequest, opts ...grpc.CallOption) (*GetSecretResponse, error) + Set func(ctx context.Context, in *SetRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) + SetSecret func(ctx context.Context, in *SetSecretRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) + func NewCacheServerClient(cc grpc.ClientConnInterface) CacheServerClient + type CacheServerServer interface + Del func(context.Context, *DelRequest) (*emptypb.Empty, error) + DelSecret func(context.Context, *DelSecretRequest) (*emptypb.Empty, error) + Get func(context.Context, *GetRequest) (*GetResponse, error) + GetSecret func(context.Context, *GetSecretRequest) (*GetSecretResponse, error) + Set func(context.Context, *SetRequest) (*emptypb.Empty, error) + SetSecret func(context.Context, *SetSecretRequest) (*emptypb.Empty, error) + type DelRequest struct + Key string + Namespace string + func (*DelRequest) Descriptor() ([]byte, []int) + func (*DelRequest) ProtoMessage() + func (m *DelRequest) Validate() error + func (m *DelRequest) ValidateAll() error + func (x *DelRequest) GetKey() string + func (x *DelRequest) GetNamespace() string + func (x *DelRequest) ProtoReflect() protoreflect.Message + func (x *DelRequest) Reset() + func (x *DelRequest) String() string + type DelRequestMultiError []error + func (m DelRequestMultiError) AllErrors() []error + func (m DelRequestMultiError) Error() string + type DelRequestValidationError struct + func (e DelRequestValidationError) Cause() error + func (e DelRequestValidationError) Error() string + func (e DelRequestValidationError) ErrorName() string + func (e DelRequestValidationError) Field() string + func (e DelRequestValidationError) Key() bool + func (e DelRequestValidationError) Reason() string + type DelSecretRequest struct + Key string + func (*DelSecretRequest) Descriptor() ([]byte, []int) + func (*DelSecretRequest) ProtoMessage() + func (m *DelSecretRequest) Validate() error + func (m *DelSecretRequest) ValidateAll() error + func (x *DelSecretRequest) GetKey() string + func (x *DelSecretRequest) ProtoReflect() protoreflect.Message + func (x *DelSecretRequest) Reset() + func (x *DelSecretRequest) String() string + type DelSecretRequestMultiError []error + func (m DelSecretRequestMultiError) AllErrors() []error + func (m DelSecretRequestMultiError) Error() string + type DelSecretRequestValidationError struct + func (e DelSecretRequestValidationError) Cause() error + func (e DelSecretRequestValidationError) Error() string + func (e DelSecretRequestValidationError) ErrorName() string + func (e DelSecretRequestValidationError) Field() string + func (e DelSecretRequestValidationError) Key() bool + func (e DelSecretRequestValidationError) Reason() string + type ErrorReason int32 + const ErrorReason_OrderAlreadyExists + const ErrorReason_OrderCreateFailed + const ErrorReason_OrderNotFound + func (ErrorReason) Descriptor() protoreflect.EnumDescriptor + func (ErrorReason) EnumDescriptor() ([]byte, []int) + func (ErrorReason) Type() protoreflect.EnumType + func (x ErrorReason) Enum() *ErrorReason + func (x ErrorReason) Number() protoreflect.EnumNumber + func (x ErrorReason) String() string + type GetRequest struct + Key string + Namespace string + func (*GetRequest) Descriptor() ([]byte, []int) + func (*GetRequest) ProtoMessage() + func (m *GetRequest) Validate() error + func (m *GetRequest) ValidateAll() error + func (x *GetRequest) GetKey() string + func (x *GetRequest) GetNamespace() string + func (x *GetRequest) ProtoReflect() protoreflect.Message + func (x *GetRequest) Reset() + func (x *GetRequest) String() string + type GetRequestMultiError []error + func (m GetRequestMultiError) AllErrors() []error + func (m GetRequestMultiError) Error() string + type GetRequestValidationError struct + func (e GetRequestValidationError) Cause() error + func (e GetRequestValidationError) Error() string + func (e GetRequestValidationError) ErrorName() string + func (e GetRequestValidationError) Field() string + func (e GetRequestValidationError) Key() bool + func (e GetRequestValidationError) Reason() string + type GetResponse struct + Expire *durationpb.Duration + Value *anypb.Any + func (*GetResponse) Descriptor() ([]byte, []int) + func (*GetResponse) ProtoMessage() + func (m *GetResponse) Validate() error + func (m *GetResponse) ValidateAll() error + func (x *GetResponse) GetExpire() *durationpb.Duration + func (x *GetResponse) GetValue() *anypb.Any + func (x *GetResponse) ProtoReflect() protoreflect.Message + func (x *GetResponse) Reset() + func (x *GetResponse) String() string + type GetResponseMultiError []error + func (m GetResponseMultiError) AllErrors() []error + func (m GetResponseMultiError) Error() string + type GetResponseValidationError struct + func (e GetResponseValidationError) Cause() error + func (e GetResponseValidationError) Error() string + func (e GetResponseValidationError) ErrorName() string + func (e GetResponseValidationError) Field() string + func (e GetResponseValidationError) Key() bool + func (e GetResponseValidationError) Reason() string + type GetSecretRequest struct + Key string + func (*GetSecretRequest) Descriptor() ([]byte, []int) + func (*GetSecretRequest) ProtoMessage() + func (m *GetSecretRequest) Validate() error + func (m *GetSecretRequest) ValidateAll() error + func (x *GetSecretRequest) GetKey() string + func (x *GetSecretRequest) ProtoReflect() protoreflect.Message + func (x *GetSecretRequest) Reset() + func (x *GetSecretRequest) String() string + type GetSecretRequestMultiError []error + func (m GetSecretRequestMultiError) AllErrors() []error + func (m GetSecretRequestMultiError) Error() string + type GetSecretRequestValidationError struct + func (e GetSecretRequestValidationError) Cause() error + func (e GetSecretRequestValidationError) Error() string + func (e GetSecretRequestValidationError) ErrorName() string + func (e GetSecretRequestValidationError) Field() string + func (e GetSecretRequestValidationError) Key() bool + func (e GetSecretRequestValidationError) Reason() string + type GetSecretResponse struct + CreatedAt *timestamppb.Timestamp + Description string + Expires int64 + Name string + SecretID string + SecretKey string + Status int32 + UpdatedAt *timestamppb.Timestamp + UserID string + func (*GetSecretResponse) Descriptor() ([]byte, []int) + func (*GetSecretResponse) ProtoMessage() + func (m *GetSecretResponse) Validate() error + func (m *GetSecretResponse) ValidateAll() error + func (x *GetSecretResponse) GetCreatedAt() *timestamppb.Timestamp + func (x *GetSecretResponse) GetDescription() string + func (x *GetSecretResponse) GetExpires() int64 + func (x *GetSecretResponse) GetName() string + func (x *GetSecretResponse) GetSecretID() string + func (x *GetSecretResponse) GetSecretKey() string + func (x *GetSecretResponse) GetStatus() int32 + func (x *GetSecretResponse) GetUpdatedAt() *timestamppb.Timestamp + func (x *GetSecretResponse) GetUserID() string + func (x *GetSecretResponse) ProtoReflect() protoreflect.Message + func (x *GetSecretResponse) Reset() + func (x *GetSecretResponse) String() string + type GetSecretResponseMultiError []error + func (m GetSecretResponseMultiError) AllErrors() []error + func (m GetSecretResponseMultiError) Error() string + type GetSecretResponseValidationError struct + func (e GetSecretResponseValidationError) Cause() error + func (e GetSecretResponseValidationError) Error() string + func (e GetSecretResponseValidationError) ErrorName() string + func (e GetSecretResponseValidationError) Field() string + func (e GetSecretResponseValidationError) Key() bool + func (e GetSecretResponseValidationError) Reason() string + type SetRequest struct + Expire *durationpb.Duration + Key string + Namespace string + Value *anypb.Any + func (*SetRequest) Descriptor() ([]byte, []int) + func (*SetRequest) ProtoMessage() + func (m *SetRequest) Validate() error + func (m *SetRequest) ValidateAll() error + func (x *SetRequest) GetExpire() *durationpb.Duration + func (x *SetRequest) GetKey() string + func (x *SetRequest) GetNamespace() string + func (x *SetRequest) GetValue() *anypb.Any + func (x *SetRequest) ProtoReflect() protoreflect.Message + func (x *SetRequest) Reset() + func (x *SetRequest) String() string + type SetRequestMultiError []error + func (m SetRequestMultiError) AllErrors() []error + func (m SetRequestMultiError) Error() string + type SetRequestValidationError struct + func (e SetRequestValidationError) Cause() error + func (e SetRequestValidationError) Error() string + func (e SetRequestValidationError) ErrorName() string + func (e SetRequestValidationError) Field() string + func (e SetRequestValidationError) Key() bool + func (e SetRequestValidationError) Reason() string + type SetSecretRequest struct + Description string + Expire *durationpb.Duration + Key string + Name string + func (*SetSecretRequest) Descriptor() ([]byte, []int) + func (*SetSecretRequest) ProtoMessage() + func (m *SetSecretRequest) Validate() error + func (m *SetSecretRequest) ValidateAll() error + func (x *SetSecretRequest) GetDescription() string + func (x *SetSecretRequest) GetExpire() *durationpb.Duration + func (x *SetSecretRequest) GetKey() string + func (x *SetSecretRequest) GetName() string + func (x *SetSecretRequest) ProtoReflect() protoreflect.Message + func (x *SetSecretRequest) Reset() + func (x *SetSecretRequest) String() string + type SetSecretRequestMultiError []error + func (m SetSecretRequestMultiError) AllErrors() []error + func (m SetSecretRequestMultiError) Error() string + type SetSecretRequestValidationError struct + func (e SetSecretRequestValidationError) Cause() error + func (e SetSecretRequestValidationError) Error() string + func (e SetSecretRequestValidationError) ErrorName() string + func (e SetSecretRequestValidationError) Field() string + func (e SetSecretRequestValidationError) Key() bool + func (e SetSecretRequestValidationError) Reason() string + type UnimplementedCacheServerServer struct + func (UnimplementedCacheServerServer) Del(context.Context, *DelRequest) (*emptypb.Empty, error) + func (UnimplementedCacheServerServer) DelSecret(context.Context, *DelSecretRequest) (*emptypb.Empty, error) + func (UnimplementedCacheServerServer) Get(context.Context, *GetRequest) (*GetResponse, error) + func (UnimplementedCacheServerServer) GetSecret(context.Context, *GetSecretRequest) (*GetSecretResponse, error) + func (UnimplementedCacheServerServer) Set(context.Context, *SetRequest) (*emptypb.Empty, error) + func (UnimplementedCacheServerServer) SetSecret(context.Context, *SetSecretRequest) (*emptypb.Empty, error) + type UnsafeCacheServerServer interface