Repository navigation
Expand file tree
/
Copy patharke.pb.go
More file actions
2129 lines (1849 loc) · 65.4 KB
/
Copy patharke.pb.go
File metadata and controls
2129 lines (1849 loc) · 65.4 KB
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
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
//*
// Arke message broker proxy messages.
//
// This file outlines the gRPC interface for the Arke proxy.
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.36.12
// protoc v7.36.0
// source: arke.proto
package api
import (
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
timestamppb "google.golang.org/protobuf/types/known/timestamppb"
reflect "reflect"
sync "sync"
unsafe "unsafe"
)
const (
// Verify that this generated code is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
// Verify that runtime/protoimpl is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
)
type Address_TargetType int32
const (
Address_TOPIC Address_TargetType = 0 // The address is a message topic.
Address_QUEUE Address_TargetType = 1 // The address is a message queue.
Address_FILTER Address_TargetType = 2 // The address is a filtered queue.
Address_STREAM Address_TargetType = 3 // The address is a stream.
)
// Enum value maps for Address_TargetType.
var (
Address_TargetType_name = map[int32]string{
0: "TOPIC",
1: "QUEUE",
2: "FILTER",
3: "STREAM",
}
Address_TargetType_value = map[string]int32{
"TOPIC": 0,
"QUEUE": 1,
"FILTER": 2,
"STREAM": 3,
}
)
func (x Address_TargetType) Enum() *Address_TargetType {
p := new(Address_TargetType)
*p = x
return p
}
func (x Address_TargetType) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (Address_TargetType) Descriptor() protoreflect.EnumDescriptor {
return file_arke_proto_enumTypes[0].Descriptor()
}
func (Address_TargetType) Type() protoreflect.EnumType {
return &file_arke_proto_enumTypes[0]
}
func (x Address_TargetType) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use Address_TargetType.Descriptor instead.
func (Address_TargetType) EnumDescriptor() ([]byte, []int) {
return file_arke_proto_rawDescGZIP(), []int{5, 0}
}
type Source_TargetType int32
const (
Source_QUEUE Source_TargetType = 0 // The Source is a HA queue
Source_TEMPORARY Source_TargetType = 1 // The Source is a temporary queue
Source_STREAM Source_TargetType = 2 // The Source is a stream
)
// Enum value maps for Source_TargetType.
var (
Source_TargetType_name = map[int32]string{
0: "QUEUE",
1: "TEMPORARY",
2: "STREAM",
}
Source_TargetType_value = map[string]int32{
"QUEUE": 0,
"TEMPORARY": 1,
"STREAM": 2,
}
)
func (x Source_TargetType) Enum() *Source_TargetType {
p := new(Source_TargetType)
*p = x
return p
}
func (x Source_TargetType) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (Source_TargetType) Descriptor() protoreflect.EnumDescriptor {
return file_arke_proto_enumTypes[1].Descriptor()
}
func (Source_TargetType) Type() protoreflect.EnumType {
return &file_arke_proto_enumTypes[1]
}
func (x Source_TargetType) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use Source_TargetType.Descriptor instead.
func (Source_TargetType) EnumDescriptor() ([]byte, []int) {
return file_arke_proto_rawDescGZIP(), []int{6, 0}
}
type Filter_MatchType int32
const (
Filter_ALL Filter_MatchType = 0 // All matches must match for a successful filter.
Filter_ANY Filter_MatchType = 1 // Any match can match for a successful filter.
)
// Enum value maps for Filter_MatchType.
var (
Filter_MatchType_name = map[int32]string{
0: "ALL",
1: "ANY",
}
Filter_MatchType_value = map[string]int32{
"ALL": 0,
"ANY": 1,
}
)
func (x Filter_MatchType) Enum() *Filter_MatchType {
p := new(Filter_MatchType)
*p = x
return p
}
func (x Filter_MatchType) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (Filter_MatchType) Descriptor() protoreflect.EnumDescriptor {
return file_arke_proto_enumTypes[2].Descriptor()
}
func (Filter_MatchType) Type() protoreflect.EnumType {
return &file_arke_proto_enumTypes[2]
}
func (x Filter_MatchType) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use Filter_MatchType.Descriptor instead.
func (Filter_MatchType) EnumDescriptor() ([]byte, []int) {
return file_arke_proto_rawDescGZIP(), []int{7, 0}
}
type HealthStatus_Code int32
const (
HealthStatus_OK HealthStatus_Code = 0 // Everything is fine.
HealthStatus_UNHEALTHY HealthStatus_Code = 1 // Everything is not fine (cpu/memory high) but we are operational.
HealthStatus_GOAWAY HealthStatus_Code = 2 // Please go away and come back.
)
// Enum value maps for HealthStatus_Code.
var (
HealthStatus_Code_name = map[int32]string{
0: "OK",
1: "UNHEALTHY",
2: "GOAWAY",
}
HealthStatus_Code_value = map[string]int32{
"OK": 0,
"UNHEALTHY": 1,
"GOAWAY": 2,
}
)
func (x HealthStatus_Code) Enum() *HealthStatus_Code {
p := new(HealthStatus_Code)
*p = x
return p
}
func (x HealthStatus_Code) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (HealthStatus_Code) Descriptor() protoreflect.EnumDescriptor {
return file_arke_proto_enumTypes[3].Descriptor()
}
func (HealthStatus_Code) Type() protoreflect.EnumType {
return &file_arke_proto_enumTypes[3]
}
func (x HealthStatus_Code) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use HealthStatus_Code.Descriptor instead.
func (HealthStatus_Code) EnumDescriptor() ([]byte, []int) {
return file_arke_proto_rawDescGZIP(), []int{20, 0}
}
// *
// Represents the broker connection information. This is passed
// in by the client allowing us to remain a proxy, but also
// allowing us to support multiple providers at once such as
// RabbitMQ and Kafka.
type ConnectionConfiguration struct {
state protoimpl.MessageState `protogen:"open.v1"`
Host string `protobuf:"bytes,1,opt,name=host,proto3" json:"host,omitempty"` // Broker hostname or IP address.
Port int32 `protobuf:"varint,2,opt,name=port,proto3" json:"port,omitempty"` // Broker port.
Provider string `protobuf:"bytes,3,opt,name=provider,proto3" json:"provider,omitempty"` // Provider type, currently only amqp091.
Tenant string `protobuf:"bytes,4,opt,name=tenant,proto3" json:"tenant,omitempty"` // Tenant name for this connection. Tenant is not required
Credentials *Credentials `protobuf:"bytes,5,opt,name=credentials,proto3" json:"credentials,omitempty"` // Authentication credentials.
Tls bool `protobuf:"varint,8,opt,name=tls,proto3" json:"tls,omitempty"` // Should this provider connection use TLS.
ClientName string `protobuf:"bytes,9,opt,name=client_name,json=clientName,proto3" json:"client_name,omitempty"` // The name of the client connecting.
AdminPort int32 `protobuf:"varint,10,opt,name=admin_port,json=adminPort,proto3" json:"admin_port,omitempty"` // The administrative port for the provider (eg. RabbitMQ management port) for any actions needing to be performed by the provider (eg. modifying bindings for RabbitMQ)
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *ConnectionConfiguration) Reset() {
*x = ConnectionConfiguration{}
mi := &file_arke_proto_msgTypes[0]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *ConnectionConfiguration) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*ConnectionConfiguration) ProtoMessage() {}
func (x *ConnectionConfiguration) ProtoReflect() protoreflect.Message {
mi := &file_arke_proto_msgTypes[0]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use ConnectionConfiguration.ProtoReflect.Descriptor instead.
func (*ConnectionConfiguration) Descriptor() ([]byte, []int) {
return file_arke_proto_rawDescGZIP(), []int{0}
}
func (x *ConnectionConfiguration) GetHost() string {
if x != nil {
return x.Host
}
return ""
}
func (x *ConnectionConfiguration) GetPort() int32 {
if x != nil {
return x.Port
}
return 0
}
func (x *ConnectionConfiguration) GetProvider() string {
if x != nil {
return x.Provider
}
return ""
}
func (x *ConnectionConfiguration) GetTenant() string {
if x != nil {
return x.Tenant
}
return ""
}
func (x *ConnectionConfiguration) GetCredentials() *Credentials {
if x != nil {
return x.Credentials
}
return nil
}
func (x *ConnectionConfiguration) GetTls() bool {
if x != nil {
return x.Tls
}
return false
}
func (x *ConnectionConfiguration) GetClientName() string {
if x != nil {
return x.ClientName
}
return ""
}
func (x *ConnectionConfiguration) GetAdminPort() int32 {
if x != nil {
return x.AdminPort
}
return 0
}
// *
// Represents the broker authentication information.
type Credentials struct {
state protoimpl.MessageState `protogen:"open.v1"`
Username string `protobuf:"bytes,1,opt,name=username,proto3" json:"username,omitempty"` // Username for authenticating to broker.
Password string `protobuf:"bytes,2,opt,name=password,proto3" json:"password,omitempty"` // Password for authenticating to broker.
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *Credentials) Reset() {
*x = Credentials{}
mi := &file_arke_proto_msgTypes[1]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *Credentials) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*Credentials) ProtoMessage() {}
func (x *Credentials) ProtoReflect() protoreflect.Message {
mi := &file_arke_proto_msgTypes[1]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use Credentials.ProtoReflect.Descriptor instead.
func (*Credentials) Descriptor() ([]byte, []int) {
return file_arke_proto_rawDescGZIP(), []int{1}
}
func (x *Credentials) GetUsername() string {
if x != nil {
return x.Username
}
return ""
}
func (x *Credentials) GetPassword() string {
if x != nil {
return x.Password
}
return ""
}
// *
// Represents the connection response
type ConnectResponse struct {
state protoimpl.MessageState `protogen:"open.v1"`
Success bool `protobuf:"varint,1,opt,name=success,proto3" json:"success,omitempty"` // Indicates whether the connection was successful.
Error *Error `protobuf:"bytes,2,opt,name=error,proto3" json:"error,omitempty"` // Error if the connection failed.
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *ConnectResponse) Reset() {
*x = ConnectResponse{}
mi := &file_arke_proto_msgTypes[2]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *ConnectResponse) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*ConnectResponse) ProtoMessage() {}
func (x *ConnectResponse) ProtoReflect() protoreflect.Message {
mi := &file_arke_proto_msgTypes[2]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use ConnectResponse.ProtoReflect.Descriptor instead.
func (*ConnectResponse) Descriptor() ([]byte, []int) {
return file_arke_proto_rawDescGZIP(), []int{2}
}
func (x *ConnectResponse) GetSuccess() bool {
if x != nil {
return x.Success
}
return false
}
func (x *ConnectResponse) GetError() *Error {
if x != nil {
return x.Error
}
return nil
}
// *
// Represents a message that is being produced or consumed. The
// error property is set by the proxy when an error occurs during
// the consumer process.
type Message struct {
state protoimpl.MessageState `protogen:"open.v1"`
Uuid string `protobuf:"bytes,1,opt,name=uuid,proto3" json:"uuid,omitempty"` // The proxy sets this UUID when the message is consumed. It should be returned when a message is Ack/Nack'ed.
Headers map[string]string `protobuf:"bytes,2,rep,name=headers,proto3" json:"headers,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"` // The message headers.
Body []byte `protobuf:"bytes,3,opt,name=body,proto3" json:"body,omitempty"` // The message body.
Address *Address `protobuf:"bytes,4,opt,name=address,proto3" json:"address,omitempty"` // The distination for a published message.
Persistent bool `protobuf:"varint,5,opt,name=persistent,proto3" json:"persistent,omitempty"` // Indicates whether to persist the message.
Error *Error `protobuf:"bytes,6,opt,name=error,proto3" json:"error,omitempty"` // Error message if consuming failed.
Confirm bool `protobuf:"varint,7,opt,name=confirm,proto3" json:"confirm,omitempty"` // Enables guaranteed delivery to the broker.
PublishId int64 `protobuf:"varint,8,opt,name=publish_id,json=publishId,proto3" json:"publish_id,omitempty"` // Combined with the publisher_name to provide publishing deduplication. The publish_id is a strictly increasing sequence.
PublisherName string `protobuf:"bytes,11,opt,name=publisher_name,json=publisherName,proto3" json:"publisher_name,omitempty"` // The publisher_name is used in conjunction with publish_id to provide message deduplication on Streams ONLY.
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *Message) Reset() {
*x = Message{}
mi := &file_arke_proto_msgTypes[3]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *Message) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*Message) ProtoMessage() {}
func (x *Message) ProtoReflect() protoreflect.Message {
mi := &file_arke_proto_msgTypes[3]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use Message.ProtoReflect.Descriptor instead.
func (*Message) Descriptor() ([]byte, []int) {
return file_arke_proto_rawDescGZIP(), []int{3}
}
func (x *Message) GetUuid() string {
if x != nil {
return x.Uuid
}
return ""
}
func (x *Message) GetHeaders() map[string]string {
if x != nil {
return x.Headers
}
return nil
}
func (x *Message) GetBody() []byte {
if x != nil {
return x.Body
}
return nil
}
func (x *Message) GetAddress() *Address {
if x != nil {
return x.Address
}
return nil
}
func (x *Message) GetPersistent() bool {
if x != nil {
return x.Persistent
}
return false
}
func (x *Message) GetError() *Error {
if x != nil {
return x.Error
}
return nil
}
func (x *Message) GetConfirm() bool {
if x != nil {
return x.Confirm
}
return false
}
func (x *Message) GetPublishId() int64 {
if x != nil {
return x.PublishId
}
return 0
}
func (x *Message) GetPublisherName() string {
if x != nil {
return x.PublisherName
}
return ""
}
// *
// Represents the response from publishing a message.
type MessageResponse struct {
state protoimpl.MessageState `protogen:"open.v1"`
Success bool `protobuf:"varint,1,opt,name=success,proto3" json:"success,omitempty"` // Indicates whether the message was published successfully.
Error *Error `protobuf:"bytes,2,opt,name=error,proto3" json:"error,omitempty"` // Error if publishing failed.
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *MessageResponse) Reset() {
*x = MessageResponse{}
mi := &file_arke_proto_msgTypes[4]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *MessageResponse) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*MessageResponse) ProtoMessage() {}
func (x *MessageResponse) ProtoReflect() protoreflect.Message {
mi := &file_arke_proto_msgTypes[4]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use MessageResponse.ProtoReflect.Descriptor instead.
func (*MessageResponse) Descriptor() ([]byte, []int) {
return file_arke_proto_rawDescGZIP(), []int{4}
}
func (x *MessageResponse) GetSuccess() bool {
if x != nil {
return x.Success
}
return false
}
func (x *MessageResponse) GetError() *Error {
if x != nil {
return x.Error
}
return nil
}
// *
// Represents the publishing destination for a message.
type Address struct {
state protoimpl.MessageState `protogen:"open.v1"`
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // The name of this destination address.
Subjects []string `protobuf:"bytes,2,rep,name=subjects,proto3" json:"subjects,omitempty"` // The subjects of the address. Multiple subjects are allowed on Subscribe, but not on Publish.
Type Address_TargetType `protobuf:"varint,3,opt,name=type,proto3,enum=arke.Address_TargetType" json:"type,omitempty"` // Target type, default is TOPIC.
// Deprecated: Marked as deprecated in arke.proto.
Durable bool `protobuf:"varint,4,opt,name=durable,proto3" json:"durable,omitempty"`
AutoDelete bool `protobuf:"varint,5,opt,name=auto_delete,json=autoDelete,proto3" json:"auto_delete,omitempty"` // Should the address automatically delete.
ParentAddress *Address `protobuf:"bytes,6,opt,name=parent_address,json=parentAddress,proto3" json:"parent_address,omitempty"` // A parent Address. Usage includes Address to Address binding.
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *Address) Reset() {
*x = Address{}
mi := &file_arke_proto_msgTypes[5]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *Address) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*Address) ProtoMessage() {}
func (x *Address) ProtoReflect() protoreflect.Message {
mi := &file_arke_proto_msgTypes[5]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use Address.ProtoReflect.Descriptor instead.
func (*Address) Descriptor() ([]byte, []int) {
return file_arke_proto_rawDescGZIP(), []int{5}
}
func (x *Address) GetName() string {
if x != nil {
return x.Name
}
return ""
}
func (x *Address) GetSubjects() []string {
if x != nil {
return x.Subjects
}
return nil
}
func (x *Address) GetType() Address_TargetType {
if x != nil {
return x.Type
}
return Address_TOPIC
}
// Deprecated: Marked as deprecated in arke.proto.
func (x *Address) GetDurable() bool {
if x != nil {
return x.Durable
}
return false
}
func (x *Address) GetAutoDelete() bool {
if x != nil {
return x.AutoDelete
}
return false
}
func (x *Address) GetParentAddress() *Address {
if x != nil {
return x.ParentAddress
}
return nil
}
// *
// Represents the source for consumer subscriptions. The Stream TargetType
// does not support exclusive or auto_delete. Streams also do not support the
// following Options: Exclusive, DeadLetterAdress or DeadLetterSubject.
type Source struct {
state protoimpl.MessageState `protogen:"open.v1"`
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // The name of this source.
Address *Address `protobuf:"bytes,3,opt,name=address,proto3" json:"address,omitempty"` // The Address associated with this source.
// Deprecated: Marked as deprecated in arke.proto.
Durable bool `protobuf:"varint,4,opt,name=durable,proto3" json:"durable,omitempty"`
AutoDelete bool `protobuf:"varint,5,opt,name=auto_delete,json=autoDelete,proto3" json:"auto_delete,omitempty"` // Should this Source automatically delete.
Options map[string]string `protobuf:"bytes,7,rep,name=options,proto3" json:"options,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"` // Additional options for this Source. Option keys include: MessageTTL, Expires, DeadLetterAddress, DeadLetterSubject, Offset(Valid values: first, continue, next, or a quoted integer), ConsumerGroup.
Exclusive bool `protobuf:"varint,8,opt,name=exclusive,proto3" json:"exclusive,omitempty"` // Should this source be exclusive to the subscriber.
PrefetchCount int32 `protobuf:"varint,9,opt,name=prefetch_count,json=prefetchCount,proto3" json:"prefetch_count,omitempty"` // Set the prefetch count for this subscriber. Must be greater than 0. Defaults to 1.
Filters []*Filter `protobuf:"bytes,10,rep,name=filters,proto3" json:"filters,omitempty"` // Filters for this Source.
Type Source_TargetType `protobuf:"varint,11,opt,name=type,proto3,enum=arke.Source_TargetType" json:"type,omitempty"` // Target type, default is QUEUE.
DeclareOnly bool `protobuf:"varint,12,opt,name=declare_only,json=declareOnly,proto3" json:"declare_only,omitempty"` // Declare the source and any bindings but do not actually consume any messages.
SingleActiveConsumer bool `protobuf:"varint,13,opt,name=single_active_consumer,json=singleActiveConsumer,proto3" json:"single_active_consumer,omitempty"` // Only one consumer should be allowed to subscribe to this source. For queues, this applies to all consumers on the queue. For streams this option must be paired with the ConsumerGroup option.
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *Source) Reset() {
*x = Source{}
mi := &file_arke_proto_msgTypes[6]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *Source) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*Source) ProtoMessage() {}
func (x *Source) ProtoReflect() protoreflect.Message {
mi := &file_arke_proto_msgTypes[6]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use Source.ProtoReflect.Descriptor instead.
func (*Source) Descriptor() ([]byte, []int) {
return file_arke_proto_rawDescGZIP(), []int{6}
}
func (x *Source) GetName() string {
if x != nil {
return x.Name
}
return ""
}
func (x *Source) GetAddress() *Address {
if x != nil {
return x.Address
}
return nil
}
// Deprecated: Marked as deprecated in arke.proto.
func (x *Source) GetDurable() bool {
if x != nil {
return x.Durable
}
return false
}
func (x *Source) GetAutoDelete() bool {
if x != nil {
return x.AutoDelete
}
return false
}
func (x *Source) GetOptions() map[string]string {
if x != nil {
return x.Options
}
return nil
}
func (x *Source) GetExclusive() bool {
if x != nil {
return x.Exclusive
}
return false
}
func (x *Source) GetPrefetchCount() int32 {
if x != nil {
return x.PrefetchCount
}
return 0
}
func (x *Source) GetFilters() []*Filter {
if x != nil {
return x.Filters
}
return nil
}
func (x *Source) GetType() Source_TargetType {
if x != nil {
return x.Type
}
return Source_QUEUE
}
func (x *Source) GetDeclareOnly() bool {
if x != nil {
return x.DeclareOnly
}
return false
}
func (x *Source) GetSingleActiveConsumer() bool {
if x != nil {
return x.SingleActiveConsumer
}
return false
}
// *
// Represents a filter for Message.headers. The Filter will prevent a consumer
// from consuming all messages from a Source.
type Filter struct {
state protoimpl.MessageState `protogen:"open.v1"`
Matches []*Match `protobuf:"bytes,1,rep,name=matches,proto3" json:"matches,omitempty"` // One or more filter Matches.
Type Filter_MatchType `protobuf:"varint,2,opt,name=type,proto3,enum=arke.Filter_MatchType" json:"type,omitempty"` // The MatchType for this filter. Default is ALL.
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *Filter) Reset() {
*x = Filter{}
mi := &file_arke_proto_msgTypes[7]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *Filter) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*Filter) ProtoMessage() {}
func (x *Filter) ProtoReflect() protoreflect.Message {
mi := &file_arke_proto_msgTypes[7]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use Filter.ProtoReflect.Descriptor instead.
func (*Filter) Descriptor() ([]byte, []int) {
return file_arke_proto_rawDescGZIP(), []int{7}
}
func (x *Filter) GetMatches() []*Match {
if x != nil {
return x.Matches
}
return nil
}
func (x *Filter) GetType() Filter_MatchType {
if x != nil {
return x.Type
}
return Filter_ALL
}
// *
// Represents the key/value match for Message.headers. Currently only an
// exact match is supported.
type Match struct {
state protoimpl.MessageState `protogen:"open.v1"`
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // The Message.headers key
Value string `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"` // The Message.headers value
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *Match) Reset() {
*x = Match{}
mi := &file_arke_proto_msgTypes[8]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *Match) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*Match) ProtoMessage() {}
func (x *Match) ProtoReflect() protoreflect.Message {
mi := &file_arke_proto_msgTypes[8]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use Match.ProtoReflect.Descriptor instead.
func (*Match) Descriptor() ([]byte, []int) {
return file_arke_proto_rawDescGZIP(), []int{8}
}
func (x *Match) GetName() string {
if x != nil {
return x.Name
}
return ""
}
func (x *Match) GetValue() string {
if x != nil {
return x.Value
}
return ""
}
// *
// No parameters or return value.
type Empty struct {
state protoimpl.MessageState `protogen:"open.v1"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *Empty) Reset() {
*x = Empty{}
mi := &file_arke_proto_msgTypes[9]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *Empty) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*Empty) ProtoMessage() {}
func (x *Empty) ProtoReflect() protoreflect.Message {
mi := &file_arke_proto_msgTypes[9]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use Empty.ProtoReflect.Descriptor instead.
func (*Empty) Descriptor() ([]byte, []int) {
return file_arke_proto_rawDescGZIP(), []int{9}
}
// *
// Represents a generic error message.
type Error struct {
state protoimpl.MessageState `protogen:"open.v1"`
Message string `protobuf:"bytes,1,opt,name=message,proto3" json:"message,omitempty"` // The text error message.
Code int32 `protobuf:"varint,2,opt,name=code,proto3" json:"code,omitempty"` // The error code.
IsFatal bool `protobuf:"varint,3,opt,name=is_fatal,json=isFatal,proto3" json:"is_fatal,omitempty"` // Indicator that a fatal error has occured, and a reconnect is required on this connection.
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *Error) Reset() {
*x = Error{}
mi := &file_arke_proto_msgTypes[10]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *Error) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*Error) ProtoMessage() {}
func (x *Error) ProtoReflect() protoreflect.Message {
mi := &file_arke_proto_msgTypes[10]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)