Documentation ¶
Index ¶
- Constants
- Variables
- func RegisterKeyManagerServiceServer(s grpc.ServiceRegistrar, srv KeyManagerServiceServer)
- type GetKeyRequest
- type GetKeyResponse
- func (*GetKeyResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetKeyResponse) GetError() string
- func (x *GetKeyResponse) GetKey() string
- func (*GetKeyResponse) ProtoMessage()
- func (x *GetKeyResponse) ProtoReflect() protoreflect.Message
- func (x *GetKeyResponse) Reset()
- func (x *GetKeyResponse) String() string
- type KeyManagerServiceClient
- type KeyManagerServiceServer
- type ReallocateKeyRequest
- func (*ReallocateKeyRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ReallocateKeyRequest) GetKey() string
- func (*ReallocateKeyRequest) ProtoMessage()
- func (x *ReallocateKeyRequest) ProtoReflect() protoreflect.Message
- func (x *ReallocateKeyRequest) Reset()
- func (x *ReallocateKeyRequest) String() string
- type ReallocateKeyResponse
- func (*ReallocateKeyResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ReallocateKeyResponse) GetError() string
- func (x *ReallocateKeyResponse) GetMessage() string
- func (*ReallocateKeyResponse) ProtoMessage()
- func (x *ReallocateKeyResponse) ProtoReflect() protoreflect.Message
- func (x *ReallocateKeyResponse) Reset()
- func (x *ReallocateKeyResponse) String() string
- type UnimplementedKeyManagerServiceServer
- type UnsafeKeyManagerServiceServer
Constants ¶
const ( KeyManagerService_GetKey_FullMethodName = "/keymanager.KeyManagerService/GetKey" KeyManagerService_ReallocateKey_FullMethodName = "/keymanager.KeyManagerService/ReallocateKey" )
Variables ¶
var File_key_manager_proto protoreflect.FileDescriptor
var KeyManagerService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "keymanager.KeyManagerService", HandlerType: (*KeyManagerServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "GetKey", Handler: _KeyManagerService_GetKey_Handler, }, { MethodName: "ReallocateKey", Handler: _KeyManagerService_ReallocateKey_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "key_manager.proto", }
KeyManagerService_ServiceDesc is the grpc.ServiceDesc for KeyManagerService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterKeyManagerServiceServer ¶
func RegisterKeyManagerServiceServer(s grpc.ServiceRegistrar, srv KeyManagerServiceServer)
Types ¶
type GetKeyRequest ¶
type GetKeyRequest struct {
// contains filtered or unexported fields
}
func (*GetKeyRequest) Descriptor
deprecated
func (*GetKeyRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetKeyRequest.ProtoReflect.Descriptor instead.
func (*GetKeyRequest) ProtoMessage ¶
func (*GetKeyRequest) ProtoMessage()
func (*GetKeyRequest) ProtoReflect ¶
func (x *GetKeyRequest) ProtoReflect() protoreflect.Message
func (*GetKeyRequest) Reset ¶
func (x *GetKeyRequest) Reset()
func (*GetKeyRequest) String ¶
func (x *GetKeyRequest) String() string
type GetKeyResponse ¶
type GetKeyResponse struct { Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` Error string `protobuf:"bytes,2,opt,name=error,proto3" json:"error,omitempty"` // contains filtered or unexported fields }
func (*GetKeyResponse) Descriptor
deprecated
func (*GetKeyResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetKeyResponse.ProtoReflect.Descriptor instead.
func (*GetKeyResponse) GetError ¶
func (x *GetKeyResponse) GetError() string
func (*GetKeyResponse) GetKey ¶
func (x *GetKeyResponse) GetKey() string
func (*GetKeyResponse) ProtoMessage ¶
func (*GetKeyResponse) ProtoMessage()
func (*GetKeyResponse) ProtoReflect ¶
func (x *GetKeyResponse) ProtoReflect() protoreflect.Message
func (*GetKeyResponse) Reset ¶
func (x *GetKeyResponse) Reset()
func (*GetKeyResponse) String ¶
func (x *GetKeyResponse) String() string
type KeyManagerServiceClient ¶
type KeyManagerServiceClient interface { GetKey(ctx context.Context, in *GetKeyRequest, opts ...grpc.CallOption) (*GetKeyResponse, error) ReallocateKey(ctx context.Context, in *ReallocateKeyRequest, opts ...grpc.CallOption) (*ReallocateKeyResponse, error) }
KeyManagerServiceClient is the client API for KeyManagerService 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.
Define the service with only the required methods
func NewKeyManagerServiceClient ¶
func NewKeyManagerServiceClient(cc grpc.ClientConnInterface) KeyManagerServiceClient
type KeyManagerServiceServer ¶
type KeyManagerServiceServer interface { GetKey(context.Context, *GetKeyRequest) (*GetKeyResponse, error) ReallocateKey(context.Context, *ReallocateKeyRequest) (*ReallocateKeyResponse, error) // contains filtered or unexported methods }
KeyManagerServiceServer is the server API for KeyManagerService service. All implementations must embed UnimplementedKeyManagerServiceServer for forward compatibility.
Define the service with only the required methods
type ReallocateKeyRequest ¶
type ReallocateKeyRequest struct { Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` // contains filtered or unexported fields }
func (*ReallocateKeyRequest) Descriptor
deprecated
func (*ReallocateKeyRequest) Descriptor() ([]byte, []int)
Deprecated: Use ReallocateKeyRequest.ProtoReflect.Descriptor instead.
func (*ReallocateKeyRequest) GetKey ¶
func (x *ReallocateKeyRequest) GetKey() string
func (*ReallocateKeyRequest) ProtoMessage ¶
func (*ReallocateKeyRequest) ProtoMessage()
func (*ReallocateKeyRequest) ProtoReflect ¶
func (x *ReallocateKeyRequest) ProtoReflect() protoreflect.Message
func (*ReallocateKeyRequest) Reset ¶
func (x *ReallocateKeyRequest) Reset()
func (*ReallocateKeyRequest) String ¶
func (x *ReallocateKeyRequest) String() string
type ReallocateKeyResponse ¶
type ReallocateKeyResponse struct { Message string `protobuf:"bytes,1,opt,name=message,proto3" json:"message,omitempty"` Error string `protobuf:"bytes,2,opt,name=error,proto3" json:"error,omitempty"` // contains filtered or unexported fields }
func (*ReallocateKeyResponse) Descriptor
deprecated
func (*ReallocateKeyResponse) Descriptor() ([]byte, []int)
Deprecated: Use ReallocateKeyResponse.ProtoReflect.Descriptor instead.
func (*ReallocateKeyResponse) GetError ¶
func (x *ReallocateKeyResponse) GetError() string
func (*ReallocateKeyResponse) GetMessage ¶
func (x *ReallocateKeyResponse) GetMessage() string
func (*ReallocateKeyResponse) ProtoMessage ¶
func (*ReallocateKeyResponse) ProtoMessage()
func (*ReallocateKeyResponse) ProtoReflect ¶
func (x *ReallocateKeyResponse) ProtoReflect() protoreflect.Message
func (*ReallocateKeyResponse) Reset ¶
func (x *ReallocateKeyResponse) Reset()
func (*ReallocateKeyResponse) String ¶
func (x *ReallocateKeyResponse) String() string
type UnimplementedKeyManagerServiceServer ¶
type UnimplementedKeyManagerServiceServer struct{}
UnimplementedKeyManagerServiceServer must be embedded to have forward compatible implementations.
NOTE: this should be embedded by value instead of pointer to avoid a nil pointer dereference when methods are called.
func (UnimplementedKeyManagerServiceServer) GetKey ¶
func (UnimplementedKeyManagerServiceServer) GetKey(context.Context, *GetKeyRequest) (*GetKeyResponse, error)
func (UnimplementedKeyManagerServiceServer) ReallocateKey ¶
func (UnimplementedKeyManagerServiceServer) ReallocateKey(context.Context, *ReallocateKeyRequest) (*ReallocateKeyResponse, error)
type UnsafeKeyManagerServiceServer ¶
type UnsafeKeyManagerServiceServer interface {
// contains filtered or unexported methods
}
UnsafeKeyManagerServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to KeyManagerServiceServer will result in compilation errors.