cleanup: remove openchannel rpc

This commit is contained in:
Jesse de Wit
2024-02-08 10:45:40 +01:00
parent a072e5c090
commit 31bf2a885a
13 changed files with 87 additions and 444 deletions

View File

@@ -1,7 +1,7 @@
// Code generated by protoc-gen-go-grpc. DO NOT EDIT.
// versions:
// - protoc-gen-go-grpc v1.2.0
// - protoc v3.21.12
// - protoc v4.25.2
// source: lspd.proto
package lspd
@@ -23,7 +23,6 @@ const _ = grpc.SupportPackageIsVersion7
// 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.
type ChannelOpenerClient interface {
ChannelInformation(ctx context.Context, in *ChannelInformationRequest, opts ...grpc.CallOption) (*ChannelInformationReply, error)
OpenChannel(ctx context.Context, in *OpenChannelRequest, opts ...grpc.CallOption) (*OpenChannelReply, error)
RegisterPayment(ctx context.Context, in *RegisterPaymentRequest, opts ...grpc.CallOption) (*RegisterPaymentReply, error)
CheckChannels(ctx context.Context, in *Encrypted, opts ...grpc.CallOption) (*Encrypted, error)
}
@@ -45,15 +44,6 @@ func (c *channelOpenerClient) ChannelInformation(ctx context.Context, in *Channe
return out, nil
}
func (c *channelOpenerClient) OpenChannel(ctx context.Context, in *OpenChannelRequest, opts ...grpc.CallOption) (*OpenChannelReply, error) {
out := new(OpenChannelReply)
err := c.cc.Invoke(ctx, "/lspd.ChannelOpener/OpenChannel", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *channelOpenerClient) RegisterPayment(ctx context.Context, in *RegisterPaymentRequest, opts ...grpc.CallOption) (*RegisterPaymentReply, error) {
out := new(RegisterPaymentReply)
err := c.cc.Invoke(ctx, "/lspd.ChannelOpener/RegisterPayment", in, out, opts...)
@@ -77,7 +67,6 @@ func (c *channelOpenerClient) CheckChannels(ctx context.Context, in *Encrypted,
// for forward compatibility
type ChannelOpenerServer interface {
ChannelInformation(context.Context, *ChannelInformationRequest) (*ChannelInformationReply, error)
OpenChannel(context.Context, *OpenChannelRequest) (*OpenChannelReply, error)
RegisterPayment(context.Context, *RegisterPaymentRequest) (*RegisterPaymentReply, error)
CheckChannels(context.Context, *Encrypted) (*Encrypted, error)
mustEmbedUnimplementedChannelOpenerServer()
@@ -90,9 +79,6 @@ type UnimplementedChannelOpenerServer struct {
func (UnimplementedChannelOpenerServer) ChannelInformation(context.Context, *ChannelInformationRequest) (*ChannelInformationReply, error) {
return nil, status.Errorf(codes.Unimplemented, "method ChannelInformation not implemented")
}
func (UnimplementedChannelOpenerServer) OpenChannel(context.Context, *OpenChannelRequest) (*OpenChannelReply, error) {
return nil, status.Errorf(codes.Unimplemented, "method OpenChannel not implemented")
}
func (UnimplementedChannelOpenerServer) RegisterPayment(context.Context, *RegisterPaymentRequest) (*RegisterPaymentReply, error) {
return nil, status.Errorf(codes.Unimplemented, "method RegisterPayment not implemented")
}
@@ -130,24 +116,6 @@ func _ChannelOpener_ChannelInformation_Handler(srv interface{}, ctx context.Cont
return interceptor(ctx, in, info, handler)
}
func _ChannelOpener_OpenChannel_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(OpenChannelRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(ChannelOpenerServer).OpenChannel(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/lspd.ChannelOpener/OpenChannel",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(ChannelOpenerServer).OpenChannel(ctx, req.(*OpenChannelRequest))
}
return interceptor(ctx, in, info, handler)
}
func _ChannelOpener_RegisterPayment_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(RegisterPaymentRequest)
if err := dec(in); err != nil {
@@ -195,10 +163,6 @@ var ChannelOpener_ServiceDesc = grpc.ServiceDesc{
MethodName: "ChannelInformation",
Handler: _ChannelOpener_ChannelInformation_Handler,
},
{
MethodName: "OpenChannel",
Handler: _ChannelOpener_OpenChannel_Handler,
},
{
MethodName: "RegisterPayment",
Handler: _ChannelOpener_RegisterPayment_Handler,