-
Notifications
You must be signed in to change notification settings - Fork 302
/
gatewayserver.pb.go
690 lines (616 loc) · 27.5 KB
/
gatewayserver.pb.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
// Code generated by protoc-gen-gogo. DO NOT EDIT.
// source: lorawan-stack/api/gatewayserver.proto
package ttnpb
import (
context "context"
fmt "fmt"
_ "github.com/envoyproxy/protoc-gen-validate/validate"
_ "github.com/gogo/protobuf/gogoproto"
proto "github.com/gogo/protobuf/proto"
types "github.com/gogo/protobuf/types"
golang_proto "github.com/golang/protobuf/proto"
_ "google.golang.org/genproto/googleapis/api/annotations"
grpc "google.golang.org/grpc"
codes "google.golang.org/grpc/codes"
status "google.golang.org/grpc/status"
math "math"
)
// Reference imports to suppress errors if they are not otherwise used.
var _ = proto.Marshal
var _ = golang_proto.Marshal
var _ = fmt.Errorf
var _ = math.Inf
// This is a compile-time assertion to ensure that this generated file
// is compatible with the proto package it is being compiled against.
// A compilation error at this line likely means your copy of the
// proto package needs to be updated.
const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package
// GatewayUp may contain zero or more uplink messages and/or a status message for the gateway.
type GatewayUp struct {
// Uplink messages received by the gateway.
UplinkMessages []*UplinkMessage `protobuf:"bytes,1,rep,name=uplink_messages,json=uplinkMessages,proto3" json:"uplink_messages,omitempty"`
// Gateway status produced by the gateway.
GatewayStatus *GatewayStatus `protobuf:"bytes,2,opt,name=gateway_status,json=gatewayStatus,proto3" json:"gateway_status,omitempty"`
// A Tx acknowledgment or error.
TxAcknowledgment *TxAcknowledgment `protobuf:"bytes,3,opt,name=tx_acknowledgment,json=txAcknowledgment,proto3" json:"tx_acknowledgment,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *GatewayUp) Reset() { *m = GatewayUp{} }
func (m *GatewayUp) String() string { return proto.CompactTextString(m) }
func (*GatewayUp) ProtoMessage() {}
func (*GatewayUp) Descriptor() ([]byte, []int) {
return fileDescriptor_62b07a36420f2d6d, []int{0}
}
func (m *GatewayUp) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_GatewayUp.Unmarshal(m, b)
}
func (m *GatewayUp) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_GatewayUp.Marshal(b, m, deterministic)
}
func (m *GatewayUp) XXX_Merge(src proto.Message) {
xxx_messageInfo_GatewayUp.Merge(m, src)
}
func (m *GatewayUp) XXX_Size() int {
return xxx_messageInfo_GatewayUp.Size(m)
}
func (m *GatewayUp) XXX_DiscardUnknown() {
xxx_messageInfo_GatewayUp.DiscardUnknown(m)
}
var xxx_messageInfo_GatewayUp proto.InternalMessageInfo
func (m *GatewayUp) GetUplinkMessages() []*UplinkMessage {
if m != nil {
return m.UplinkMessages
}
return nil
}
func (m *GatewayUp) GetGatewayStatus() *GatewayStatus {
if m != nil {
return m.GatewayStatus
}
return nil
}
func (m *GatewayUp) GetTxAcknowledgment() *TxAcknowledgment {
if m != nil {
return m.TxAcknowledgment
}
return nil
}
// GatewayDown contains downlink messages for the gateway.
type GatewayDown struct {
// DownlinkMessage for the gateway.
DownlinkMessage *DownlinkMessage `protobuf:"bytes,1,opt,name=downlink_message,json=downlinkMessage,proto3" json:"downlink_message,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *GatewayDown) Reset() { *m = GatewayDown{} }
func (m *GatewayDown) String() string { return proto.CompactTextString(m) }
func (*GatewayDown) ProtoMessage() {}
func (*GatewayDown) Descriptor() ([]byte, []int) {
return fileDescriptor_62b07a36420f2d6d, []int{1}
}
func (m *GatewayDown) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_GatewayDown.Unmarshal(m, b)
}
func (m *GatewayDown) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_GatewayDown.Marshal(b, m, deterministic)
}
func (m *GatewayDown) XXX_Merge(src proto.Message) {
xxx_messageInfo_GatewayDown.Merge(m, src)
}
func (m *GatewayDown) XXX_Size() int {
return xxx_messageInfo_GatewayDown.Size(m)
}
func (m *GatewayDown) XXX_DiscardUnknown() {
xxx_messageInfo_GatewayDown.DiscardUnknown(m)
}
var xxx_messageInfo_GatewayDown proto.InternalMessageInfo
func (m *GatewayDown) GetDownlinkMessage() *DownlinkMessage {
if m != nil {
return m.DownlinkMessage
}
return nil
}
type ScheduleDownlinkResponse struct {
// The amount of time between the message has been scheduled and it will be transmitted by the gateway.
Delay *types.Duration `protobuf:"bytes,1,opt,name=delay,proto3" json:"delay,omitempty"`
// Downlink path chosen by the Gateway Server.
DownlinkPath *DownlinkPath `protobuf:"bytes,2,opt,name=downlink_path,json=downlinkPath,proto3" json:"downlink_path,omitempty"`
// Whether RX1 has been chosen for the downlink message.
// Both RX1 and RX2 can be used for transmitting the same message by the same gateway.
Rx1 bool `protobuf:"varint,3,opt,name=rx1,proto3" json:"rx1,omitempty"`
// Whether RX2 has been chosen for the downlink message.
// Both RX1 and RX2 can be used for transmitting the same message by the same gateway.
Rx2 bool `protobuf:"varint,4,opt,name=rx2,proto3" json:"rx2,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *ScheduleDownlinkResponse) Reset() { *m = ScheduleDownlinkResponse{} }
func (m *ScheduleDownlinkResponse) String() string { return proto.CompactTextString(m) }
func (*ScheduleDownlinkResponse) ProtoMessage() {}
func (*ScheduleDownlinkResponse) Descriptor() ([]byte, []int) {
return fileDescriptor_62b07a36420f2d6d, []int{2}
}
func (m *ScheduleDownlinkResponse) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ScheduleDownlinkResponse.Unmarshal(m, b)
}
func (m *ScheduleDownlinkResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ScheduleDownlinkResponse.Marshal(b, m, deterministic)
}
func (m *ScheduleDownlinkResponse) XXX_Merge(src proto.Message) {
xxx_messageInfo_ScheduleDownlinkResponse.Merge(m, src)
}
func (m *ScheduleDownlinkResponse) XXX_Size() int {
return xxx_messageInfo_ScheduleDownlinkResponse.Size(m)
}
func (m *ScheduleDownlinkResponse) XXX_DiscardUnknown() {
xxx_messageInfo_ScheduleDownlinkResponse.DiscardUnknown(m)
}
var xxx_messageInfo_ScheduleDownlinkResponse proto.InternalMessageInfo
func (m *ScheduleDownlinkResponse) GetDelay() *types.Duration {
if m != nil {
return m.Delay
}
return nil
}
func (m *ScheduleDownlinkResponse) GetDownlinkPath() *DownlinkPath {
if m != nil {
return m.DownlinkPath
}
return nil
}
func (m *ScheduleDownlinkResponse) GetRx1() bool {
if m != nil {
return m.Rx1
}
return false
}
func (m *ScheduleDownlinkResponse) GetRx2() bool {
if m != nil {
return m.Rx2
}
return false
}
type ScheduleDownlinkErrorDetails struct {
// Errors per path when downlink scheduling failed.
PathErrors []*ErrorDetails `protobuf:"bytes,1,rep,name=path_errors,json=pathErrors,proto3" json:"path_errors,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *ScheduleDownlinkErrorDetails) Reset() { *m = ScheduleDownlinkErrorDetails{} }
func (m *ScheduleDownlinkErrorDetails) String() string { return proto.CompactTextString(m) }
func (*ScheduleDownlinkErrorDetails) ProtoMessage() {}
func (*ScheduleDownlinkErrorDetails) Descriptor() ([]byte, []int) {
return fileDescriptor_62b07a36420f2d6d, []int{3}
}
func (m *ScheduleDownlinkErrorDetails) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ScheduleDownlinkErrorDetails.Unmarshal(m, b)
}
func (m *ScheduleDownlinkErrorDetails) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ScheduleDownlinkErrorDetails.Marshal(b, m, deterministic)
}
func (m *ScheduleDownlinkErrorDetails) XXX_Merge(src proto.Message) {
xxx_messageInfo_ScheduleDownlinkErrorDetails.Merge(m, src)
}
func (m *ScheduleDownlinkErrorDetails) XXX_Size() int {
return xxx_messageInfo_ScheduleDownlinkErrorDetails.Size(m)
}
func (m *ScheduleDownlinkErrorDetails) XXX_DiscardUnknown() {
xxx_messageInfo_ScheduleDownlinkErrorDetails.DiscardUnknown(m)
}
var xxx_messageInfo_ScheduleDownlinkErrorDetails proto.InternalMessageInfo
func (m *ScheduleDownlinkErrorDetails) GetPathErrors() []*ErrorDetails {
if m != nil {
return m.PathErrors
}
return nil
}
func init() {
proto.RegisterType((*GatewayUp)(nil), "ttn.lorawan.v3.GatewayUp")
golang_proto.RegisterType((*GatewayUp)(nil), "ttn.lorawan.v3.GatewayUp")
proto.RegisterType((*GatewayDown)(nil), "ttn.lorawan.v3.GatewayDown")
golang_proto.RegisterType((*GatewayDown)(nil), "ttn.lorawan.v3.GatewayDown")
proto.RegisterType((*ScheduleDownlinkResponse)(nil), "ttn.lorawan.v3.ScheduleDownlinkResponse")
golang_proto.RegisterType((*ScheduleDownlinkResponse)(nil), "ttn.lorawan.v3.ScheduleDownlinkResponse")
proto.RegisterType((*ScheduleDownlinkErrorDetails)(nil), "ttn.lorawan.v3.ScheduleDownlinkErrorDetails")
golang_proto.RegisterType((*ScheduleDownlinkErrorDetails)(nil), "ttn.lorawan.v3.ScheduleDownlinkErrorDetails")
}
func init() {
proto.RegisterFile("lorawan-stack/api/gatewayserver.proto", fileDescriptor_62b07a36420f2d6d)
}
func init() {
golang_proto.RegisterFile("lorawan-stack/api/gatewayserver.proto", fileDescriptor_62b07a36420f2d6d)
}
var fileDescriptor_62b07a36420f2d6d = []byte{
// 783 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xb4, 0x54, 0xcf, 0x6e, 0xdb, 0x36,
0x18, 0x87, 0xec, 0x64, 0xc8, 0xe8, 0x25, 0xf1, 0x08, 0x6c, 0x73, 0x1c, 0x27, 0x31, 0x34, 0x6c,
0x08, 0x86, 0x59, 0xca, 0x14, 0x6c, 0xd8, 0x0e, 0x3b, 0x24, 0x71, 0x6a, 0xa4, 0x68, 0x8a, 0x56,
0x49, 0x0a, 0xb4, 0x40, 0x60, 0xd0, 0x12, 0x4d, 0x0b, 0x96, 0x49, 0x55, 0xa4, 0xff, 0xa1, 0xe8,
0xa5, 0xaf, 0xd0, 0x43, 0x0f, 0xbd, 0xf5, 0xd8, 0x67, 0xe8, 0xa1, 0xef, 0xd0, 0x07, 0xe8, 0xa1,
0x3d, 0xf4, 0x19, 0x7a, 0x2a, 0x44, 0x51, 0x8e, 0x2d, 0x45, 0x6d, 0x2f, 0xbd, 0x91, 0xfc, 0x7e,
0xdf, 0xef, 0xfb, 0xf1, 0xc7, 0xef, 0x23, 0xf8, 0xcd, 0x67, 0x21, 0x1a, 0x23, 0xda, 0xe0, 0x02,
0x39, 0x7d, 0x13, 0x05, 0x9e, 0x49, 0x90, 0xc0, 0x63, 0x34, 0xe5, 0x38, 0x1c, 0xe1, 0xd0, 0x08,
0x42, 0x26, 0x18, 0x5c, 0x13, 0x82, 0x1a, 0x0a, 0x6a, 0x8c, 0xf6, 0xab, 0x07, 0xc4, 0x13, 0xbd,
0x61, 0xc7, 0x70, 0xd8, 0xc0, 0xc4, 0x74, 0xc4, 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x11,
0x7d, 0x1b, 0xfc, 0xab, 0xdc, 0xf8, 0x3d, 0x07, 0x93, 0xe2, 0xd2, 0x2d, 0xe9, 0xc8, 0x9f, 0xf0,
0x8f, 0x7c, 0x47, 0xae, 0xac, 0x30, 0xa3, 0xaf, 0x8e, 0x1f, 0xfe, 0xfd, 0xfa, 0xdd, 0xb6, 0xf6,
0xc0, 0x24, 0xcc, 0x10, 0x3d, 0x2c, 0x7a, 0x1e, 0x25, 0xdc, 0xa0, 0x58, 0x8c, 0x59, 0xd8, 0x37,
0x17, 0xbf, 0xe3, 0xd1, 0xbe, 0x19, 0xf4, 0x89, 0x29, 0x04, 0x0d, 0x3a, 0x9d, 0xef, 0x64, 0xbb,
0xee, 0x7f, 0x0a, 0x00, 0x00, 0xff, 0xff, 0x63, 0x6c, 0x96, 0xa2, 0x7d, 0x07, 0x00, 0x00,
}
// Reference imports to suppress errors if they are not otherwise used.
var _ context.Context
var _ grpc.ClientConn
// This is a compile-time assertion to ensure that this generated file
// is compatible with the grpc package it is being compiled against.
const _ = grpc.SupportPackageIsVersion4
// GtwGsClient is the client API for GtwGs service.
//
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
type GtwGsClient interface {
// Link a gateway to the Gateway Server for streaming upstream messages and downstream messages.
LinkGateway(ctx context.Context, opts ...grpc.CallOption) (GtwGs_LinkGatewayClient, error)
// Get configuration for the concentrator.
GetConcentratorConfig(ctx context.Context, in *types.Empty, opts ...grpc.CallOption) (*ConcentratorConfig, error)
// Get connection information to connect an MQTT gateway.
GetMQTTConnectionInfo(ctx context.Context, in *GatewayIdentifiers, opts ...grpc.CallOption) (*MQTTConnectionInfo, error)
// Get legacy connection information to connect a The Things Network Stack V2 MQTT gateway.
GetMQTTV2ConnectionInfo(ctx context.Context, in *GatewayIdentifiers, opts ...grpc.CallOption) (*MQTTConnectionInfo, error)
}
type gtwGsClient struct {
cc *grpc.ClientConn
}
func NewGtwGsClient(cc *grpc.ClientConn) GtwGsClient {
return >wGsClient{cc}
}
func (c *gtwGsClient) LinkGateway(ctx context.Context, opts ...grpc.CallOption) (GtwGs_LinkGatewayClient, error) {
stream, err := c.cc.NewStream(ctx, &_GtwGs_serviceDesc.Streams[0], "/ttn.lorawan.v3.GtwGs/LinkGateway", opts...)
if err != nil {
return nil, err
}
x := >wGsLinkGatewayClient{stream}
return x, nil
}
type GtwGs_LinkGatewayClient interface {
Send(*GatewayUp) error
Recv() (*GatewayDown, error)
grpc.ClientStream
}
type gtwGsLinkGatewayClient struct {
grpc.ClientStream
}
func (x *gtwGsLinkGatewayClient) Send(m *GatewayUp) error {
return x.ClientStream.SendMsg(m)
}
func (x *gtwGsLinkGatewayClient) Recv() (*GatewayDown, error) {
m := new(GatewayDown)
if err := x.ClientStream.RecvMsg(m); err != nil {
return nil, err
}
return m, nil
}
func (c *gtwGsClient) GetConcentratorConfig(ctx context.Context, in *types.Empty, opts ...grpc.CallOption) (*ConcentratorConfig, error) {
out := new(ConcentratorConfig)
err := c.cc.Invoke(ctx, "/ttn.lorawan.v3.GtwGs/GetConcentratorConfig", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *gtwGsClient) GetMQTTConnectionInfo(ctx context.Context, in *GatewayIdentifiers, opts ...grpc.CallOption) (*MQTTConnectionInfo, error) {
out := new(MQTTConnectionInfo)
err := c.cc.Invoke(ctx, "/ttn.lorawan.v3.GtwGs/GetMQTTConnectionInfo", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *gtwGsClient) GetMQTTV2ConnectionInfo(ctx context.Context, in *GatewayIdentifiers, opts ...grpc.CallOption) (*MQTTConnectionInfo, error) {
out := new(MQTTConnectionInfo)
err := c.cc.Invoke(ctx, "/ttn.lorawan.v3.GtwGs/GetMQTTV2ConnectionInfo", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
// GtwGsServer is the server API for GtwGs service.
type GtwGsServer interface {
// Link a gateway to the Gateway Server for streaming upstream messages and downstream messages.
LinkGateway(GtwGs_LinkGatewayServer) error
// Get configuration for the concentrator.
GetConcentratorConfig(context.Context, *types.Empty) (*ConcentratorConfig, error)
// Get connection information to connect an MQTT gateway.
GetMQTTConnectionInfo(context.Context, *GatewayIdentifiers) (*MQTTConnectionInfo, error)
// Get legacy connection information to connect a The Things Network Stack V2 MQTT gateway.
GetMQTTV2ConnectionInfo(context.Context, *GatewayIdentifiers) (*MQTTConnectionInfo, error)
}
// UnimplementedGtwGsServer can be embedded to have forward compatible implementations.
type UnimplementedGtwGsServer struct {
}
func (*UnimplementedGtwGsServer) LinkGateway(srv GtwGs_LinkGatewayServer) error {
return status.Errorf(codes.Unimplemented, "method LinkGateway not implemented")
}
func (*UnimplementedGtwGsServer) GetConcentratorConfig(ctx context.Context, req *types.Empty) (*ConcentratorConfig, error) {
return nil, status.Errorf(codes.Unimplemented, "method GetConcentratorConfig not implemented")
}
func (*UnimplementedGtwGsServer) GetMQTTConnectionInfo(ctx context.Context, req *GatewayIdentifiers) (*MQTTConnectionInfo, error) {
return nil, status.Errorf(codes.Unimplemented, "method GetMQTTConnectionInfo not implemented")
}
func (*UnimplementedGtwGsServer) GetMQTTV2ConnectionInfo(ctx context.Context, req *GatewayIdentifiers) (*MQTTConnectionInfo, error) {
return nil, status.Errorf(codes.Unimplemented, "method GetMQTTV2ConnectionInfo not implemented")
}
func RegisterGtwGsServer(s *grpc.Server, srv GtwGsServer) {
s.RegisterService(&_GtwGs_serviceDesc, srv)
}
func _GtwGs_LinkGateway_Handler(srv interface{}, stream grpc.ServerStream) error {
return srv.(GtwGsServer).LinkGateway(>wGsLinkGatewayServer{stream})
}
type GtwGs_LinkGatewayServer interface {
Send(*GatewayDown) error
Recv() (*GatewayUp, error)
grpc.ServerStream
}
type gtwGsLinkGatewayServer struct {
grpc.ServerStream
}
func (x *gtwGsLinkGatewayServer) Send(m *GatewayDown) error {
return x.ServerStream.SendMsg(m)
}
func (x *gtwGsLinkGatewayServer) Recv() (*GatewayUp, error) {
m := new(GatewayUp)
if err := x.ServerStream.RecvMsg(m); err != nil {
return nil, err
}
return m, nil
}
func _GtwGs_GetConcentratorConfig_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(types.Empty)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(GtwGsServer).GetConcentratorConfig(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/ttn.lorawan.v3.GtwGs/GetConcentratorConfig",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(GtwGsServer).GetConcentratorConfig(ctx, req.(*types.Empty))
}
return interceptor(ctx, in, info, handler)
}
func _GtwGs_GetMQTTConnectionInfo_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(GatewayIdentifiers)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(GtwGsServer).GetMQTTConnectionInfo(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/ttn.lorawan.v3.GtwGs/GetMQTTConnectionInfo",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(GtwGsServer).GetMQTTConnectionInfo(ctx, req.(*GatewayIdentifiers))
}
return interceptor(ctx, in, info, handler)
}
func _GtwGs_GetMQTTV2ConnectionInfo_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(GatewayIdentifiers)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(GtwGsServer).GetMQTTV2ConnectionInfo(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/ttn.lorawan.v3.GtwGs/GetMQTTV2ConnectionInfo",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(GtwGsServer).GetMQTTV2ConnectionInfo(ctx, req.(*GatewayIdentifiers))
}
return interceptor(ctx, in, info, handler)
}
var _GtwGs_serviceDesc = grpc.ServiceDesc{
ServiceName: "ttn.lorawan.v3.GtwGs",
HandlerType: (*GtwGsServer)(nil),
Methods: []grpc.MethodDesc{
{
MethodName: "GetConcentratorConfig",
Handler: _GtwGs_GetConcentratorConfig_Handler,
},
{
MethodName: "GetMQTTConnectionInfo",
Handler: _GtwGs_GetMQTTConnectionInfo_Handler,
},
{
MethodName: "GetMQTTV2ConnectionInfo",
Handler: _GtwGs_GetMQTTV2ConnectionInfo_Handler,
},
},
Streams: []grpc.StreamDesc{
{
StreamName: "LinkGateway",
Handler: _GtwGs_LinkGateway_Handler,
ServerStreams: true,
ClientStreams: true,
},
},
Metadata: "lorawan-stack/api/gatewayserver.proto",
}
// NsGsClient is the client API for NsGs service.
//
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
type NsGsClient interface {
// Instructs the Gateway Server to schedule a downlink message.
// The Gateway Server may refuse if there are any conflicts in the schedule or
// if a duty cycle prevents the gateway from transmitting.
ScheduleDownlink(ctx context.Context, in *DownlinkMessage, opts ...grpc.CallOption) (*ScheduleDownlinkResponse, error)
}
type nsGsClient struct {
cc *grpc.ClientConn
}
func NewNsGsClient(cc *grpc.ClientConn) NsGsClient {
return &nsGsClient{cc}
}
func (c *nsGsClient) ScheduleDownlink(ctx context.Context, in *DownlinkMessage, opts ...grpc.CallOption) (*ScheduleDownlinkResponse, error) {
out := new(ScheduleDownlinkResponse)
err := c.cc.Invoke(ctx, "/ttn.lorawan.v3.NsGs/ScheduleDownlink", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
// NsGsServer is the server API for NsGs service.
type NsGsServer interface {
// Instructs the Gateway Server to schedule a downlink message.
// The Gateway Server may refuse if there are any conflicts in the schedule or
// if a duty cycle prevents the gateway from transmitting.
ScheduleDownlink(context.Context, *DownlinkMessage) (*ScheduleDownlinkResponse, error)
}
// UnimplementedNsGsServer can be embedded to have forward compatible implementations.
type UnimplementedNsGsServer struct {
}
func (*UnimplementedNsGsServer) ScheduleDownlink(ctx context.Context, req *DownlinkMessage) (*ScheduleDownlinkResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method ScheduleDownlink not implemented")
}
func RegisterNsGsServer(s *grpc.Server, srv NsGsServer) {
s.RegisterService(&_NsGs_serviceDesc, srv)
}
func _NsGs_ScheduleDownlink_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(DownlinkMessage)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(NsGsServer).ScheduleDownlink(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/ttn.lorawan.v3.NsGs/ScheduleDownlink",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(NsGsServer).ScheduleDownlink(ctx, req.(*DownlinkMessage))
}
return interceptor(ctx, in, info, handler)
}
var _NsGs_serviceDesc = grpc.ServiceDesc{
ServiceName: "ttn.lorawan.v3.NsGs",
HandlerType: (*NsGsServer)(nil),
Methods: []grpc.MethodDesc{
{
MethodName: "ScheduleDownlink",
Handler: _NsGs_ScheduleDownlink_Handler,
},
},
Streams: []grpc.StreamDesc{},
Metadata: "lorawan-stack/api/gatewayserver.proto",
}
// GsClient is the client API for Gs service.
//
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
type GsClient interface {
// Get statistics about the current gateway connection to the Gateway Server.
// This is not persisted between reconnects.
GetGatewayConnectionStats(ctx context.Context, in *GatewayIdentifiers, opts ...grpc.CallOption) (*GatewayConnectionStats, error)
}
type gsClient struct {
cc *grpc.ClientConn
}
func NewGsClient(cc *grpc.ClientConn) GsClient {
return &gsClient{cc}
}
func (c *gsClient) GetGatewayConnectionStats(ctx context.Context, in *GatewayIdentifiers, opts ...grpc.CallOption) (*GatewayConnectionStats, error) {
out := new(GatewayConnectionStats)
err := c.cc.Invoke(ctx, "/ttn.lorawan.v3.Gs/GetGatewayConnectionStats", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
// GsServer is the server API for Gs service.
type GsServer interface {
// Get statistics about the current gateway connection to the Gateway Server.
// This is not persisted between reconnects.
GetGatewayConnectionStats(context.Context, *GatewayIdentifiers) (*GatewayConnectionStats, error)
}
// UnimplementedGsServer can be embedded to have forward compatible implementations.
type UnimplementedGsServer struct {
}
func (*UnimplementedGsServer) GetGatewayConnectionStats(ctx context.Context, req *GatewayIdentifiers) (*GatewayConnectionStats, error) {
return nil, status.Errorf(codes.Unimplemented, "method GetGatewayConnectionStats not implemented")
}
func RegisterGsServer(s *grpc.Server, srv GsServer) {
s.RegisterService(&_Gs_serviceDesc, srv)
}
func _Gs_GetGatewayConnectionStats_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(GatewayIdentifiers)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(GsServer).GetGatewayConnectionStats(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/ttn.lorawan.v3.Gs/GetGatewayConnectionStats",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(GsServer).GetGatewayConnectionStats(ctx, req.(*GatewayIdentifiers))
}
return interceptor(ctx, in, info, handler)
}
var _Gs_serviceDesc = grpc.ServiceDesc{
ServiceName: "ttn.lorawan.v3.Gs",
HandlerType: (*GsServer)(nil),
Methods: []grpc.MethodDesc{
{
MethodName: "GetGatewayConnectionStats",
Handler: _Gs_GetGatewayConnectionStats_Handler,
},
},
Streams: []grpc.StreamDesc{},
Metadata: "lorawan-stack/api/gatewayserver.proto",
}