• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

lightningnetwork / lnd / 13481890706

23 Feb 2025 09:53AM UTC coverage: 46.221% (-12.6%) from 58.825%
13481890706

Pull #9521

github

web-flow
Merge 9fb980a6f into 5fe900d18
Pull Request #9521: unit: remove GOACC, use Go 1.20 native coverage functionality

105094 of 227374 relevant lines covered (46.22%)

19705.84 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

0.0
/lnrpc/devrpc/dev_grpc.pb.go
1
// Code generated by protoc-gen-go-grpc. DO NOT EDIT.
2

3
package devrpc
4

5
import (
6
        context "context"
7
        lnrpc "github.com/lightningnetwork/lnd/lnrpc"
8
        grpc "google.golang.org/grpc"
9
        codes "google.golang.org/grpc/codes"
10
        status "google.golang.org/grpc/status"
11
)
12

13
// This is a compile-time assertion to ensure that this generated file
14
// is compatible with the grpc package it is being compiled against.
15
// Requires gRPC-Go v1.32.0 or later.
16
const _ = grpc.SupportPackageIsVersion7
17

18
// DevClient is the client API for Dev service.
19
//
20
// 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.
21
type DevClient interface {
22
        // lncli: `importgraph`
23
        // ImportGraph imports a ChannelGraph into the graph database. Should only be
24
        // used for development.
25
        ImportGraph(ctx context.Context, in *lnrpc.ChannelGraph, opts ...grpc.CallOption) (*ImportGraphResponse, error)
26
        // Quiesce instructs a channel to initiate the quiescence (stfu) protocol. This
27
        // RPC is for testing purposes only. The commit that adds it will be removed
28
        // once interop is confirmed.
29
        Quiesce(ctx context.Context, in *QuiescenceRequest, opts ...grpc.CallOption) (*QuiescenceResponse, error)
30
}
31

32
type devClient struct {
33
        cc grpc.ClientConnInterface
34
}
35

36
func NewDevClient(cc grpc.ClientConnInterface) DevClient {
×
37
        return &devClient{cc}
×
38
}
×
39

40
func (c *devClient) ImportGraph(ctx context.Context, in *lnrpc.ChannelGraph, opts ...grpc.CallOption) (*ImportGraphResponse, error) {
×
41
        out := new(ImportGraphResponse)
×
42
        err := c.cc.Invoke(ctx, "/devrpc.Dev/ImportGraph", in, out, opts...)
×
43
        if err != nil {
×
44
                return nil, err
×
45
        }
×
46
        return out, nil
×
47
}
48

49
func (c *devClient) Quiesce(ctx context.Context, in *QuiescenceRequest, opts ...grpc.CallOption) (*QuiescenceResponse, error) {
×
50
        out := new(QuiescenceResponse)
×
51
        err := c.cc.Invoke(ctx, "/devrpc.Dev/Quiesce", in, out, opts...)
×
52
        if err != nil {
×
53
                return nil, err
×
54
        }
×
55
        return out, nil
×
56
}
57

58
// DevServer is the server API for Dev service.
59
// All implementations must embed UnimplementedDevServer
60
// for forward compatibility
61
type DevServer interface {
62
        // lncli: `importgraph`
63
        // ImportGraph imports a ChannelGraph into the graph database. Should only be
64
        // used for development.
65
        ImportGraph(context.Context, *lnrpc.ChannelGraph) (*ImportGraphResponse, error)
66
        // Quiesce instructs a channel to initiate the quiescence (stfu) protocol. This
67
        // RPC is for testing purposes only. The commit that adds it will be removed
68
        // once interop is confirmed.
69
        Quiesce(context.Context, *QuiescenceRequest) (*QuiescenceResponse, error)
70
        mustEmbedUnimplementedDevServer()
71
}
72

73
// UnimplementedDevServer must be embedded to have forward compatible implementations.
74
type UnimplementedDevServer struct {
75
}
76

77
func (UnimplementedDevServer) ImportGraph(context.Context, *lnrpc.ChannelGraph) (*ImportGraphResponse, error) {
×
78
        return nil, status.Errorf(codes.Unimplemented, "method ImportGraph not implemented")
×
79
}
×
80
func (UnimplementedDevServer) Quiesce(context.Context, *QuiescenceRequest) (*QuiescenceResponse, error) {
×
81
        return nil, status.Errorf(codes.Unimplemented, "method Quiesce not implemented")
×
82
}
×
83
func (UnimplementedDevServer) mustEmbedUnimplementedDevServer() {}
×
84

85
// UnsafeDevServer may be embedded to opt out of forward compatibility for this service.
86
// Use of this interface is not recommended, as added methods to DevServer will
87
// result in compilation errors.
88
type UnsafeDevServer interface {
89
        mustEmbedUnimplementedDevServer()
90
}
91

92
func RegisterDevServer(s grpc.ServiceRegistrar, srv DevServer) {
×
93
        s.RegisterService(&Dev_ServiceDesc, srv)
×
94
}
×
95

96
func _Dev_ImportGraph_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
×
97
        in := new(lnrpc.ChannelGraph)
×
98
        if err := dec(in); err != nil {
×
99
                return nil, err
×
100
        }
×
101
        if interceptor == nil {
×
102
                return srv.(DevServer).ImportGraph(ctx, in)
×
103
        }
×
104
        info := &grpc.UnaryServerInfo{
×
105
                Server:     srv,
×
106
                FullMethod: "/devrpc.Dev/ImportGraph",
×
107
        }
×
108
        handler := func(ctx context.Context, req interface{}) (interface{}, error) {
×
109
                return srv.(DevServer).ImportGraph(ctx, req.(*lnrpc.ChannelGraph))
×
110
        }
×
111
        return interceptor(ctx, in, info, handler)
×
112
}
113

114
func _Dev_Quiesce_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
×
115
        in := new(QuiescenceRequest)
×
116
        if err := dec(in); err != nil {
×
117
                return nil, err
×
118
        }
×
119
        if interceptor == nil {
×
120
                return srv.(DevServer).Quiesce(ctx, in)
×
121
        }
×
122
        info := &grpc.UnaryServerInfo{
×
123
                Server:     srv,
×
124
                FullMethod: "/devrpc.Dev/Quiesce",
×
125
        }
×
126
        handler := func(ctx context.Context, req interface{}) (interface{}, error) {
×
127
                return srv.(DevServer).Quiesce(ctx, req.(*QuiescenceRequest))
×
128
        }
×
129
        return interceptor(ctx, in, info, handler)
×
130
}
131

132
// Dev_ServiceDesc is the grpc.ServiceDesc for Dev service.
133
// It's only intended for direct use with grpc.RegisterService,
134
// and not to be introspected or modified (even as a copy)
135
var Dev_ServiceDesc = grpc.ServiceDesc{
136
        ServiceName: "devrpc.Dev",
137
        HandlerType: (*DevServer)(nil),
138
        Methods: []grpc.MethodDesc{
139
                {
140
                        MethodName: "ImportGraph",
141
                        Handler:    _Dev_ImportGraph_Handler,
142
                },
143
                {
144
                        MethodName: "Quiesce",
145
                        Handler:    _Dev_Quiesce_Handler,
146
                },
147
        },
148
        Streams:  []grpc.StreamDesc{},
149
        Metadata: "devrpc/dev.proto",
150
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc