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

lightningnetwork / lnd / 13408822928

19 Feb 2025 08:59AM UTC coverage: 41.123% (-17.7%) from 58.794%
13408822928

Pull #9521

github

web-flow
Merge d2f397b3c into 0e8786348
Pull Request #9521: unit: remove GOACC, use Go 1.20 native coverage functionality

92496 of 224923 relevant lines covered (41.12%)

18825.83 hits per line

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

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

3
package watchtowerrpc
4

5
import (
6
        context "context"
7
        grpc "google.golang.org/grpc"
8
        codes "google.golang.org/grpc/codes"
9
        status "google.golang.org/grpc/status"
10
)
11

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

17
// WatchtowerClient is the client API for Watchtower service.
18
//
19
// 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.
20
type WatchtowerClient interface {
21
        // lncli: `tower info`
22
        // GetInfo returns general information concerning the companion watchtower
23
        // including its public key and URIs where the server is currently
24
        // listening for clients.
25
        GetInfo(ctx context.Context, in *GetInfoRequest, opts ...grpc.CallOption) (*GetInfoResponse, error)
26
}
27

28
type watchtowerClient struct {
29
        cc grpc.ClientConnInterface
30
}
31

32
func NewWatchtowerClient(cc grpc.ClientConnInterface) WatchtowerClient {
×
33
        return &watchtowerClient{cc}
×
34
}
×
35

36
func (c *watchtowerClient) GetInfo(ctx context.Context, in *GetInfoRequest, opts ...grpc.CallOption) (*GetInfoResponse, error) {
×
37
        out := new(GetInfoResponse)
×
38
        err := c.cc.Invoke(ctx, "/watchtowerrpc.Watchtower/GetInfo", in, out, opts...)
×
39
        if err != nil {
×
40
                return nil, err
×
41
        }
×
42
        return out, nil
×
43
}
44

45
// WatchtowerServer is the server API for Watchtower service.
46
// All implementations must embed UnimplementedWatchtowerServer
47
// for forward compatibility
48
type WatchtowerServer interface {
49
        // lncli: `tower info`
50
        // GetInfo returns general information concerning the companion watchtower
51
        // including its public key and URIs where the server is currently
52
        // listening for clients.
53
        GetInfo(context.Context, *GetInfoRequest) (*GetInfoResponse, error)
54
        mustEmbedUnimplementedWatchtowerServer()
55
}
56

57
// UnimplementedWatchtowerServer must be embedded to have forward compatible implementations.
58
type UnimplementedWatchtowerServer struct {
59
}
60

61
func (UnimplementedWatchtowerServer) GetInfo(context.Context, *GetInfoRequest) (*GetInfoResponse, error) {
×
62
        return nil, status.Errorf(codes.Unimplemented, "method GetInfo not implemented")
×
63
}
×
64
func (UnimplementedWatchtowerServer) mustEmbedUnimplementedWatchtowerServer() {}
×
65

66
// UnsafeWatchtowerServer may be embedded to opt out of forward compatibility for this service.
67
// Use of this interface is not recommended, as added methods to WatchtowerServer will
68
// result in compilation errors.
69
type UnsafeWatchtowerServer interface {
70
        mustEmbedUnimplementedWatchtowerServer()
71
}
72

73
func RegisterWatchtowerServer(s grpc.ServiceRegistrar, srv WatchtowerServer) {
×
74
        s.RegisterService(&Watchtower_ServiceDesc, srv)
×
75
}
×
76

77
func _Watchtower_GetInfo_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
×
78
        in := new(GetInfoRequest)
×
79
        if err := dec(in); err != nil {
×
80
                return nil, err
×
81
        }
×
82
        if interceptor == nil {
×
83
                return srv.(WatchtowerServer).GetInfo(ctx, in)
×
84
        }
×
85
        info := &grpc.UnaryServerInfo{
×
86
                Server:     srv,
×
87
                FullMethod: "/watchtowerrpc.Watchtower/GetInfo",
×
88
        }
×
89
        handler := func(ctx context.Context, req interface{}) (interface{}, error) {
×
90
                return srv.(WatchtowerServer).GetInfo(ctx, req.(*GetInfoRequest))
×
91
        }
×
92
        return interceptor(ctx, in, info, handler)
×
93
}
94

95
// Watchtower_ServiceDesc is the grpc.ServiceDesc for Watchtower service.
96
// It's only intended for direct use with grpc.RegisterService,
97
// and not to be introspected or modified (even as a copy)
98
var Watchtower_ServiceDesc = grpc.ServiceDesc{
99
        ServiceName: "watchtowerrpc.Watchtower",
100
        HandlerType: (*WatchtowerServer)(nil),
101
        Methods: []grpc.MethodDesc{
102
                {
103
                        MethodName: "GetInfo",
104
                        Handler:    _Watchtower_GetInfo_Handler,
105
                },
106
        },
107
        Streams:  []grpc.StreamDesc{},
108
        Metadata: "watchtowerrpc/watchtower.proto",
109
}
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