Fix proto file generation (#155)

* Fix kms export path

* Regenerate proto files

Signed-off-by: Daniel Weiße <dw@edgeless.systems>
This commit is contained in:
Daniel Weiße 2022-05-17 15:02:14 +02:00 committed by GitHub
parent 08f4f4e0aa
commit 7ba2fdd1a1
3 changed files with 65 additions and 62 deletions

View file

@ -1,4 +1,8 @@
// Code generated by protoc-gen-go-grpc. DO NOT EDIT.
// versions:
// - protoc-gen-go-grpc v1.2.0
// - protoc v3.20.1
// source: kmsapi.proto
package kmsproto
@ -31,7 +35,7 @@ func NewAPIClient(cc grpc.ClientConnInterface) APIClient {
func (c *aPIClient) GetDataKey(ctx context.Context, in *GetDataKeyRequest, opts ...grpc.CallOption) (*GetDataKeyResponse, error) {
out := new(GetDataKeyResponse)
err := c.cc.Invoke(ctx, "/pubapi.API/GetDataKey", in, out, opts...)
err := c.cc.Invoke(ctx, "/kmsapi.API/GetDataKey", in, out, opts...)
if err != nil {
return nil, err
}
@ -76,7 +80,7 @@ func _API_GetDataKey_Handler(srv interface{}, ctx context.Context, dec func(inte
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/pubapi.API/GetDataKey",
FullMethod: "/kmsapi.API/GetDataKey",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(APIServer).GetDataKey(ctx, req.(*GetDataKeyRequest))
@ -88,7 +92,7 @@ func _API_GetDataKey_Handler(srv interface{}, ctx context.Context, dec func(inte
// It's only intended for direct use with grpc.RegisterService,
// and not to be introspected or modified (even as a copy)
var API_ServiceDesc = grpc.ServiceDesc{
ServiceName: "pubapi.API",
ServiceName: "kmsapi.API",
HandlerType: (*APIServer)(nil),
Methods: []grpc.MethodDesc{
{
@ -97,5 +101,5 @@ var API_ServiceDesc = grpc.ServiceDesc{
},
},
Streams: []grpc.StreamDesc{},
Metadata: "kmsproto/kmsapi.proto",
Metadata: "kmsapi.proto",
}