Documentation ¶
Index ¶
- Variables
- func RegisterKeyAPIServer(s grpc.ServiceRegistrar, srv KeyAPIServer)
- type GetKeySetRequest
- func (*GetKeySetRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetKeySetRequest) GetKikId() string
- func (x *GetKeySetRequest) GetNonce() []byte
- func (*GetKeySetRequest) ProtoMessage()
- func (x *GetKeySetRequest) ProtoReflect() protoreflect.Message
- func (x *GetKeySetRequest) Reset()
- func (x *GetKeySetRequest) String() string
- type GetKeySetResponse
- func (*GetKeySetResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetKeySetResponse) GetNonce() []byte
- func (x *GetKeySetResponse) GetWrappedKeys() []byte
- func (*GetKeySetResponse) ProtoMessage()
- func (x *GetKeySetResponse) ProtoReflect() protoreflect.Message
- func (x *GetKeySetResponse) Reset()
- func (x *GetKeySetResponse) String() string
- type KeyAPIClient
- type KeyAPIServer
- type UnimplementedKeyAPIServer
- type UnsafeKeyAPIServer
Constants ¶
This section is empty.
Variables ¶
var File_key_proto protoreflect.FileDescriptor
var KeyAPI_ServiceDesc = grpc.ServiceDesc{ ServiceName: "k1.KeyAPI", HandlerType: (*KeyAPIServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "GetKeySet", Handler: _KeyAPI_GetKeySet_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "key.proto", }
KeyAPI_ServiceDesc is the grpc.ServiceDesc for KeyAPI service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterKeyAPIServer ¶
func RegisterKeyAPIServer(s grpc.ServiceRegistrar, srv KeyAPIServer)
Types ¶
type GetKeySetRequest ¶
type GetKeySetRequest struct { KikId string `protobuf:"bytes,1,opt,name=kik_id,json=kikId,proto3" json:"kik_id,omitempty"` Nonce []byte `protobuf:"bytes,2,opt,name=nonce,proto3" json:"nonce,omitempty"` // contains filtered or unexported fields }
The request message for retrieving wrapped key set.
func (*GetKeySetRequest) Descriptor
deprecated
func (*GetKeySetRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetKeySetRequest.ProtoReflect.Descriptor instead.
func (*GetKeySetRequest) GetKikId ¶
func (x *GetKeySetRequest) GetKikId() string
func (*GetKeySetRequest) GetNonce ¶
func (x *GetKeySetRequest) GetNonce() []byte
func (*GetKeySetRequest) ProtoMessage ¶
func (*GetKeySetRequest) ProtoMessage()
func (*GetKeySetRequest) ProtoReflect ¶
func (x *GetKeySetRequest) ProtoReflect() protoreflect.Message
func (*GetKeySetRequest) Reset ¶
func (x *GetKeySetRequest) Reset()
func (*GetKeySetRequest) String ¶
func (x *GetKeySetRequest) String() string
type GetKeySetResponse ¶
type GetKeySetResponse struct { Nonce []byte `protobuf:"bytes,1,opt,name=nonce,proto3" json:"nonce,omitempty"` WrappedKeys []byte `protobuf:"bytes,2,opt,name=wrapped_keys,json=wrappedKeys,proto3" json:"wrapped_keys,omitempty"` // contains filtered or unexported fields }
The response message containing the nonce and wrapped key set.
func (*GetKeySetResponse) Descriptor
deprecated
func (*GetKeySetResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetKeySetResponse.ProtoReflect.Descriptor instead.
func (*GetKeySetResponse) GetNonce ¶
func (x *GetKeySetResponse) GetNonce() []byte
func (*GetKeySetResponse) GetWrappedKeys ¶
func (x *GetKeySetResponse) GetWrappedKeys() []byte
func (*GetKeySetResponse) ProtoMessage ¶
func (*GetKeySetResponse) ProtoMessage()
func (*GetKeySetResponse) ProtoReflect ¶
func (x *GetKeySetResponse) ProtoReflect() protoreflect.Message
func (*GetKeySetResponse) Reset ¶
func (x *GetKeySetResponse) Reset()
func (*GetKeySetResponse) String ¶
func (x *GetKeySetResponse) String() string
type KeyAPIClient ¶
type KeyAPIClient interface { // GetKeySet returns a nonce and wrapped key set per given Key Initialization Key ID. GetKeySet(ctx context.Context, in *GetKeySetRequest, opts ...grpc.CallOption) (*GetKeySetResponse, error) }
KeyAPIClient is the client API for KeyAPI 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 NewKeyAPIClient ¶
func NewKeyAPIClient(cc grpc.ClientConnInterface) KeyAPIClient
type KeyAPIServer ¶
type KeyAPIServer interface { // GetKeySet returns a nonce and wrapped key set per given Key Initialization Key ID. GetKeySet(context.Context, *GetKeySetRequest) (*GetKeySetResponse, error) // contains filtered or unexported methods }
KeyAPIServer is the server API for KeyAPI service. All implementations must embed UnimplementedKeyAPIServer for forward compatibility
type UnimplementedKeyAPIServer ¶
type UnimplementedKeyAPIServer struct { }
UnimplementedKeyAPIServer must be embedded to have forward compatible implementations.
func (UnimplementedKeyAPIServer) GetKeySet ¶
func (UnimplementedKeyAPIServer) GetKeySet(context.Context, *GetKeySetRequest) (*GetKeySetResponse, error)
type UnsafeKeyAPIServer ¶
type UnsafeKeyAPIServer interface {
// contains filtered or unexported methods
}
UnsafeKeyAPIServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to KeyAPIServer will result in compilation errors.