Documentation ¶
Index ¶
- Variables
- func RegisterAPIServer(s *grpc.Server, srv APIServer)
- type APIClient
- type APIServer
- type GetDataKeyRequest
- func (*GetDataKeyRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetDataKeyRequest) GetDataKeyId() string
- func (x *GetDataKeyRequest) GetLength() uint32
- func (*GetDataKeyRequest) ProtoMessage()
- func (x *GetDataKeyRequest) ProtoReflect() protoreflect.Message
- func (x *GetDataKeyRequest) Reset()
- func (x *GetDataKeyRequest) String() string
- type GetDataKeyResponse
- func (*GetDataKeyResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetDataKeyResponse) GetDataKey() []byte
- func (*GetDataKeyResponse) ProtoMessage()
- func (x *GetDataKeyResponse) ProtoReflect() protoreflect.Message
- func (x *GetDataKeyResponse) Reset()
- func (x *GetDataKeyResponse) String() string
- type UnimplementedAPIServer
Constants ¶
This section is empty.
Variables ¶
View Source
var File_keyservice_keyserviceproto_keyservice_proto protoreflect.FileDescriptor
Functions ¶
func RegisterAPIServer ¶
Types ¶
type APIClient ¶
type APIClient interface {
GetDataKey(ctx context.Context, in *GetDataKeyRequest, opts ...grpc.CallOption) (*GetDataKeyResponse, error)
}
APIClient is the client API for API service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewAPIClient ¶
func NewAPIClient(cc grpc.ClientConnInterface) APIClient
type APIServer ¶
type APIServer interface {
GetDataKey(context.Context, *GetDataKeyRequest) (*GetDataKeyResponse, error)
}
APIServer is the server API for API service.
type GetDataKeyRequest ¶
type GetDataKeyRequest struct { DataKeyId string `protobuf:"bytes,1,opt,name=data_key_id,json=dataKeyId,proto3" json:"data_key_id,omitempty"` Length uint32 `protobuf:"varint,2,opt,name=length,proto3" json:"length,omitempty"` // contains filtered or unexported fields }
func (*GetDataKeyRequest) Descriptor
deprecated
func (*GetDataKeyRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetDataKeyRequest.ProtoReflect.Descriptor instead.
func (*GetDataKeyRequest) GetDataKeyId ¶
func (x *GetDataKeyRequest) GetDataKeyId() string
func (*GetDataKeyRequest) GetLength ¶
func (x *GetDataKeyRequest) GetLength() uint32
func (*GetDataKeyRequest) ProtoMessage ¶
func (*GetDataKeyRequest) ProtoMessage()
func (*GetDataKeyRequest) ProtoReflect ¶
func (x *GetDataKeyRequest) ProtoReflect() protoreflect.Message
func (*GetDataKeyRequest) Reset ¶
func (x *GetDataKeyRequest) Reset()
func (*GetDataKeyRequest) String ¶
func (x *GetDataKeyRequest) String() string
type GetDataKeyResponse ¶
type GetDataKeyResponse struct { DataKey []byte `protobuf:"bytes,1,opt,name=data_key,json=dataKey,proto3" json:"data_key,omitempty"` // contains filtered or unexported fields }
func (*GetDataKeyResponse) Descriptor
deprecated
func (*GetDataKeyResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetDataKeyResponse.ProtoReflect.Descriptor instead.
func (*GetDataKeyResponse) GetDataKey ¶
func (x *GetDataKeyResponse) GetDataKey() []byte
func (*GetDataKeyResponse) ProtoMessage ¶
func (*GetDataKeyResponse) ProtoMessage()
func (*GetDataKeyResponse) ProtoReflect ¶
func (x *GetDataKeyResponse) ProtoReflect() protoreflect.Message
func (*GetDataKeyResponse) Reset ¶
func (x *GetDataKeyResponse) Reset()
func (*GetDataKeyResponse) String ¶
func (x *GetDataKeyResponse) String() string
type UnimplementedAPIServer ¶
type UnimplementedAPIServer struct { }
UnimplementedAPIServer can be embedded to have forward compatible implementations.
func (*UnimplementedAPIServer) GetDataKey ¶
func (*UnimplementedAPIServer) GetDataKey(context.Context, *GetDataKeyRequest) (*GetDataKeyResponse, error)
Click to show internal directories.
Click to hide internal directories.