-
Notifications
You must be signed in to change notification settings - Fork 312
/
dmmaster.pb.go
14366 lines (13734 loc) · 343 KB
/
dmmaster.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
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
// Code generated by protoc-gen-gogo. DO NOT EDIT.
// source: dmmaster.proto
package dmpb
import (
context "context"
fmt "fmt"
io "io"
math "math"
math_bits "math/bits"
proto "github.com/gogo/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"
)
// Reference imports to suppress errors if they are not otherwise used.
var _ = 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
type SourceOp int32
const (
SourceOp_InvalidSourceOp SourceOp = 0
SourceOp_StartSource SourceOp = 1
SourceOp_UpdateSource SourceOp = 2
SourceOp_StopSource SourceOp = 3
SourceOp_ShowSource SourceOp = 4
)
var SourceOp_name = map[int32]string{
0: "InvalidSourceOp",
1: "StartSource",
2: "UpdateSource",
3: "StopSource",
4: "ShowSource",
}
var SourceOp_value = map[string]int32{
"InvalidSourceOp": 0,
"StartSource": 1,
"UpdateSource": 2,
"StopSource": 3,
"ShowSource": 4,
}
func (x SourceOp) String() string {
return proto.EnumName(SourceOp_name, int32(x))
}
func (SourceOp) EnumDescriptor() ([]byte, []int) {
return fileDescriptor_f9bef11f2a341f03, []int{0}
}
type LeaderOp int32
const (
LeaderOp_InvalidLeaderOp LeaderOp = 0
LeaderOp_EvictLeaderOp LeaderOp = 1
LeaderOp_CancelEvictLeaderOp LeaderOp = 2
)
var LeaderOp_name = map[int32]string{
0: "InvalidLeaderOp",
1: "EvictLeaderOp",
2: "CancelEvictLeaderOp",
}
var LeaderOp_value = map[string]int32{
"InvalidLeaderOp": 0,
"EvictLeaderOp": 1,
"CancelEvictLeaderOp": 2,
}
func (x LeaderOp) String() string {
return proto.EnumName(LeaderOp_name, int32(x))
}
func (LeaderOp) EnumDescriptor() ([]byte, []int) {
return fileDescriptor_f9bef11f2a341f03, []int{1}
}
type CfgType int32
const (
CfgType_InvalidType CfgType = 0
CfgType_TaskType CfgType = 1
CfgType_MasterType CfgType = 2
CfgType_WorkerType CfgType = 3
CfgType_SourceType CfgType = 4
CfgType_TaskTemplateType CfgType = 5
)
var CfgType_name = map[int32]string{
0: "InvalidType",
1: "TaskType",
2: "MasterType",
3: "WorkerType",
4: "SourceType",
5: "TaskTemplateType",
}
var CfgType_value = map[string]int32{
"InvalidType": 0,
"TaskType": 1,
"MasterType": 2,
"WorkerType": 3,
"SourceType": 4,
"TaskTemplateType": 5,
}
func (x CfgType) String() string {
return proto.EnumName(CfgType_name, int32(x))
}
func (CfgType) EnumDescriptor() ([]byte, []int) {
return fileDescriptor_f9bef11f2a341f03, []int{2}
}
type RelayOpV2 int32
const (
RelayOpV2_InvalidRelayOpV2 RelayOpV2 = 0
RelayOpV2_StartRelayV2 RelayOpV2 = 1
RelayOpV2_StopRelayV2 RelayOpV2 = 2
)
var RelayOpV2_name = map[int32]string{
0: "InvalidRelayOpV2",
1: "StartRelayV2",
2: "StopRelayV2",
}
var RelayOpV2_value = map[string]int32{
"InvalidRelayOpV2": 0,
"StartRelayV2": 1,
"StopRelayV2": 2,
}
func (x RelayOpV2) String() string {
return proto.EnumName(RelayOpV2_name, int32(x))
}
func (RelayOpV2) EnumDescriptor() ([]byte, []int) {
return fileDescriptor_f9bef11f2a341f03, []int{3}
}
type StartTaskRequest struct {
Task string `protobuf:"bytes,1,opt,name=task,proto3" json:"task,omitempty"`
Sources []string `protobuf:"bytes,2,rep,name=sources,proto3" json:"sources,omitempty"`
RemoveMeta bool `protobuf:"varint,3,opt,name=removeMeta,proto3" json:"removeMeta,omitempty"`
StartTime string `protobuf:"bytes,4,opt,name=startTime,proto3" json:"startTime,omitempty"`
}
func (m *StartTaskRequest) Reset() { *m = StartTaskRequest{} }
func (m *StartTaskRequest) String() string { return proto.CompactTextString(m) }
func (*StartTaskRequest) ProtoMessage() {}
func (*StartTaskRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_f9bef11f2a341f03, []int{0}
}
func (m *StartTaskRequest) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *StartTaskRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_StartTaskRequest.Marshal(b, m, deterministic)
} else {
b = b[:cap(b)]
n, err := m.MarshalToSizedBuffer(b)
if err != nil {
return nil, err
}
return b[:n], nil
}
}
func (m *StartTaskRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_StartTaskRequest.Merge(m, src)
}
func (m *StartTaskRequest) XXX_Size() int {
return m.Size()
}
func (m *StartTaskRequest) XXX_DiscardUnknown() {
xxx_messageInfo_StartTaskRequest.DiscardUnknown(m)
}
var xxx_messageInfo_StartTaskRequest proto.InternalMessageInfo
func (m *StartTaskRequest) GetTask() string {
if m != nil {
return m.Task
}
return ""
}
func (m *StartTaskRequest) GetSources() []string {
if m != nil {
return m.Sources
}
return nil
}
func (m *StartTaskRequest) GetRemoveMeta() bool {
if m != nil {
return m.RemoveMeta
}
return false
}
func (m *StartTaskRequest) GetStartTime() string {
if m != nil {
return m.StartTime
}
return ""
}
type StartTaskResponse struct {
Result bool `protobuf:"varint,1,opt,name=result,proto3" json:"result,omitempty"`
Msg string `protobuf:"bytes,2,opt,name=msg,proto3" json:"msg,omitempty"`
Sources []*CommonWorkerResponse `protobuf:"bytes,3,rep,name=sources,proto3" json:"sources,omitempty"`
}
func (m *StartTaskResponse) Reset() { *m = StartTaskResponse{} }
func (m *StartTaskResponse) String() string { return proto.CompactTextString(m) }
func (*StartTaskResponse) ProtoMessage() {}
func (*StartTaskResponse) Descriptor() ([]byte, []int) {
return fileDescriptor_f9bef11f2a341f03, []int{1}
}
func (m *StartTaskResponse) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *StartTaskResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_StartTaskResponse.Marshal(b, m, deterministic)
} else {
b = b[:cap(b)]
n, err := m.MarshalToSizedBuffer(b)
if err != nil {
return nil, err
}
return b[:n], nil
}
}
func (m *StartTaskResponse) XXX_Merge(src proto.Message) {
xxx_messageInfo_StartTaskResponse.Merge(m, src)
}
func (m *StartTaskResponse) XXX_Size() int {
return m.Size()
}
func (m *StartTaskResponse) XXX_DiscardUnknown() {
xxx_messageInfo_StartTaskResponse.DiscardUnknown(m)
}
var xxx_messageInfo_StartTaskResponse proto.InternalMessageInfo
func (m *StartTaskResponse) GetResult() bool {
if m != nil {
return m.Result
}
return false
}
func (m *StartTaskResponse) GetMsg() string {
if m != nil {
return m.Msg
}
return ""
}
func (m *StartTaskResponse) GetSources() []*CommonWorkerResponse {
if m != nil {
return m.Sources
}
return nil
}
type OperateTaskRequest struct {
Op TaskOp `protobuf:"varint,1,opt,name=op,proto3,enum=pb.TaskOp" json:"op,omitempty"`
Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
Sources []string `protobuf:"bytes,3,rep,name=sources,proto3" json:"sources,omitempty"`
}
func (m *OperateTaskRequest) Reset() { *m = OperateTaskRequest{} }
func (m *OperateTaskRequest) String() string { return proto.CompactTextString(m) }
func (*OperateTaskRequest) ProtoMessage() {}
func (*OperateTaskRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_f9bef11f2a341f03, []int{2}
}
func (m *OperateTaskRequest) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *OperateTaskRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_OperateTaskRequest.Marshal(b, m, deterministic)
} else {
b = b[:cap(b)]
n, err := m.MarshalToSizedBuffer(b)
if err != nil {
return nil, err
}
return b[:n], nil
}
}
func (m *OperateTaskRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_OperateTaskRequest.Merge(m, src)
}
func (m *OperateTaskRequest) XXX_Size() int {
return m.Size()
}
func (m *OperateTaskRequest) XXX_DiscardUnknown() {
xxx_messageInfo_OperateTaskRequest.DiscardUnknown(m)
}
var xxx_messageInfo_OperateTaskRequest proto.InternalMessageInfo
func (m *OperateTaskRequest) GetOp() TaskOp {
if m != nil {
return m.Op
}
return TaskOp_InvalidOp
}
func (m *OperateTaskRequest) GetName() string {
if m != nil {
return m.Name
}
return ""
}
func (m *OperateTaskRequest) GetSources() []string {
if m != nil {
return m.Sources
}
return nil
}
type OperateTaskResponse struct {
Op TaskOp `protobuf:"varint,1,opt,name=op,proto3,enum=pb.TaskOp" json:"op,omitempty"`
Result bool `protobuf:"varint,2,opt,name=result,proto3" json:"result,omitempty"`
Msg string `protobuf:"bytes,3,opt,name=msg,proto3" json:"msg,omitempty"`
Sources []*CommonWorkerResponse `protobuf:"bytes,4,rep,name=sources,proto3" json:"sources,omitempty"`
}
func (m *OperateTaskResponse) Reset() { *m = OperateTaskResponse{} }
func (m *OperateTaskResponse) String() string { return proto.CompactTextString(m) }
func (*OperateTaskResponse) ProtoMessage() {}
func (*OperateTaskResponse) Descriptor() ([]byte, []int) {
return fileDescriptor_f9bef11f2a341f03, []int{3}
}
func (m *OperateTaskResponse) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *OperateTaskResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_OperateTaskResponse.Marshal(b, m, deterministic)
} else {
b = b[:cap(b)]
n, err := m.MarshalToSizedBuffer(b)
if err != nil {
return nil, err
}
return b[:n], nil
}
}
func (m *OperateTaskResponse) XXX_Merge(src proto.Message) {
xxx_messageInfo_OperateTaskResponse.Merge(m, src)
}
func (m *OperateTaskResponse) XXX_Size() int {
return m.Size()
}
func (m *OperateTaskResponse) XXX_DiscardUnknown() {
xxx_messageInfo_OperateTaskResponse.DiscardUnknown(m)
}
var xxx_messageInfo_OperateTaskResponse proto.InternalMessageInfo
func (m *OperateTaskResponse) GetOp() TaskOp {
if m != nil {
return m.Op
}
return TaskOp_InvalidOp
}
func (m *OperateTaskResponse) GetResult() bool {
if m != nil {
return m.Result
}
return false
}
func (m *OperateTaskResponse) GetMsg() string {
if m != nil {
return m.Msg
}
return ""
}
func (m *OperateTaskResponse) GetSources() []*CommonWorkerResponse {
if m != nil {
return m.Sources
}
return nil
}
// UpdateTaskRequest used to update task after it has beed started
// task: task's configuration, yaml format
//
// now, only support to update config for routes, filters, column-mappings, block-allow-list
// support update partial config for syncer, loader, etc later
//
// sources need to do update, empty for all sources in processing the task
type UpdateTaskRequest struct {
Task string `protobuf:"bytes,1,opt,name=task,proto3" json:"task,omitempty"`
Sources []string `protobuf:"bytes,2,rep,name=sources,proto3" json:"sources,omitempty"`
}
func (m *UpdateTaskRequest) Reset() { *m = UpdateTaskRequest{} }
func (m *UpdateTaskRequest) String() string { return proto.CompactTextString(m) }
func (*UpdateTaskRequest) ProtoMessage() {}
func (*UpdateTaskRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_f9bef11f2a341f03, []int{4}
}
func (m *UpdateTaskRequest) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *UpdateTaskRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_UpdateTaskRequest.Marshal(b, m, deterministic)
} else {
b = b[:cap(b)]
n, err := m.MarshalToSizedBuffer(b)
if err != nil {
return nil, err
}
return b[:n], nil
}
}
func (m *UpdateTaskRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_UpdateTaskRequest.Merge(m, src)
}
func (m *UpdateTaskRequest) XXX_Size() int {
return m.Size()
}
func (m *UpdateTaskRequest) XXX_DiscardUnknown() {
xxx_messageInfo_UpdateTaskRequest.DiscardUnknown(m)
}
var xxx_messageInfo_UpdateTaskRequest proto.InternalMessageInfo
func (m *UpdateTaskRequest) GetTask() string {
if m != nil {
return m.Task
}
return ""
}
func (m *UpdateTaskRequest) GetSources() []string {
if m != nil {
return m.Sources
}
return nil
}
type UpdateTaskResponse struct {
Result bool `protobuf:"varint,1,opt,name=result,proto3" json:"result,omitempty"`
Msg string `protobuf:"bytes,2,opt,name=msg,proto3" json:"msg,omitempty"`
Sources []*CommonWorkerResponse `protobuf:"bytes,3,rep,name=sources,proto3" json:"sources,omitempty"`
}
func (m *UpdateTaskResponse) Reset() { *m = UpdateTaskResponse{} }
func (m *UpdateTaskResponse) String() string { return proto.CompactTextString(m) }
func (*UpdateTaskResponse) ProtoMessage() {}
func (*UpdateTaskResponse) Descriptor() ([]byte, []int) {
return fileDescriptor_f9bef11f2a341f03, []int{5}
}
func (m *UpdateTaskResponse) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *UpdateTaskResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_UpdateTaskResponse.Marshal(b, m, deterministic)
} else {
b = b[:cap(b)]
n, err := m.MarshalToSizedBuffer(b)
if err != nil {
return nil, err
}
return b[:n], nil
}
}
func (m *UpdateTaskResponse) XXX_Merge(src proto.Message) {
xxx_messageInfo_UpdateTaskResponse.Merge(m, src)
}
func (m *UpdateTaskResponse) XXX_Size() int {
return m.Size()
}
func (m *UpdateTaskResponse) XXX_DiscardUnknown() {
xxx_messageInfo_UpdateTaskResponse.DiscardUnknown(m)
}
var xxx_messageInfo_UpdateTaskResponse proto.InternalMessageInfo
func (m *UpdateTaskResponse) GetResult() bool {
if m != nil {
return m.Result
}
return false
}
func (m *UpdateTaskResponse) GetMsg() string {
if m != nil {
return m.Msg
}
return ""
}
func (m *UpdateTaskResponse) GetSources() []*CommonWorkerResponse {
if m != nil {
return m.Sources
}
return nil
}
type QueryStatusListRequest struct {
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
Sources []string `protobuf:"bytes,2,rep,name=sources,proto3" json:"sources,omitempty"`
}
func (m *QueryStatusListRequest) Reset() { *m = QueryStatusListRequest{} }
func (m *QueryStatusListRequest) String() string { return proto.CompactTextString(m) }
func (*QueryStatusListRequest) ProtoMessage() {}
func (*QueryStatusListRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_f9bef11f2a341f03, []int{6}
}
func (m *QueryStatusListRequest) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *QueryStatusListRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_QueryStatusListRequest.Marshal(b, m, deterministic)
} else {
b = b[:cap(b)]
n, err := m.MarshalToSizedBuffer(b)
if err != nil {
return nil, err
}
return b[:n], nil
}
}
func (m *QueryStatusListRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_QueryStatusListRequest.Merge(m, src)
}
func (m *QueryStatusListRequest) XXX_Size() int {
return m.Size()
}
func (m *QueryStatusListRequest) XXX_DiscardUnknown() {
xxx_messageInfo_QueryStatusListRequest.DiscardUnknown(m)
}
var xxx_messageInfo_QueryStatusListRequest proto.InternalMessageInfo
func (m *QueryStatusListRequest) GetName() string {
if m != nil {
return m.Name
}
return ""
}
func (m *QueryStatusListRequest) GetSources() []string {
if m != nil {
return m.Sources
}
return nil
}
type QueryStatusListResponse struct {
Result bool `protobuf:"varint,1,opt,name=result,proto3" json:"result,omitempty"`
Msg string `protobuf:"bytes,2,opt,name=msg,proto3" json:"msg,omitempty"`
Sources []*QueryStatusResponse `protobuf:"bytes,3,rep,name=sources,proto3" json:"sources,omitempty"`
}
func (m *QueryStatusListResponse) Reset() { *m = QueryStatusListResponse{} }
func (m *QueryStatusListResponse) String() string { return proto.CompactTextString(m) }
func (*QueryStatusListResponse) ProtoMessage() {}
func (*QueryStatusListResponse) Descriptor() ([]byte, []int) {
return fileDescriptor_f9bef11f2a341f03, []int{7}
}
func (m *QueryStatusListResponse) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *QueryStatusListResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_QueryStatusListResponse.Marshal(b, m, deterministic)
} else {
b = b[:cap(b)]
n, err := m.MarshalToSizedBuffer(b)
if err != nil {
return nil, err
}
return b[:n], nil
}
}
func (m *QueryStatusListResponse) XXX_Merge(src proto.Message) {
xxx_messageInfo_QueryStatusListResponse.Merge(m, src)
}
func (m *QueryStatusListResponse) XXX_Size() int {
return m.Size()
}
func (m *QueryStatusListResponse) XXX_DiscardUnknown() {
xxx_messageInfo_QueryStatusListResponse.DiscardUnknown(m)
}
var xxx_messageInfo_QueryStatusListResponse proto.InternalMessageInfo
func (m *QueryStatusListResponse) GetResult() bool {
if m != nil {
return m.Result
}
return false
}
func (m *QueryStatusListResponse) GetMsg() string {
if m != nil {
return m.Msg
}
return ""
}
func (m *QueryStatusListResponse) GetSources() []*QueryStatusResponse {
if m != nil {
return m.Sources
}
return nil
}
// ShowDDLLocksRequest used to query DDL locks which are un-resolved
// task: task's name, empty for all tasks
// sources: source need to query, empty for all sources
//
// any DDL lock in which the source is synced or unsynced will return
//
// if specify task and sources both, and sources not doing the task , it will return empty DDL locks
type ShowDDLLocksRequest struct {
Task string `protobuf:"bytes,1,opt,name=task,proto3" json:"task,omitempty"`
Sources []string `protobuf:"bytes,2,rep,name=sources,proto3" json:"sources,omitempty"`
}
func (m *ShowDDLLocksRequest) Reset() { *m = ShowDDLLocksRequest{} }
func (m *ShowDDLLocksRequest) String() string { return proto.CompactTextString(m) }
func (*ShowDDLLocksRequest) ProtoMessage() {}
func (*ShowDDLLocksRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_f9bef11f2a341f03, []int{8}
}
func (m *ShowDDLLocksRequest) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *ShowDDLLocksRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_ShowDDLLocksRequest.Marshal(b, m, deterministic)
} else {
b = b[:cap(b)]
n, err := m.MarshalToSizedBuffer(b)
if err != nil {
return nil, err
}
return b[:n], nil
}
}
func (m *ShowDDLLocksRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_ShowDDLLocksRequest.Merge(m, src)
}
func (m *ShowDDLLocksRequest) XXX_Size() int {
return m.Size()
}
func (m *ShowDDLLocksRequest) XXX_DiscardUnknown() {
xxx_messageInfo_ShowDDLLocksRequest.DiscardUnknown(m)
}
var xxx_messageInfo_ShowDDLLocksRequest proto.InternalMessageInfo
func (m *ShowDDLLocksRequest) GetTask() string {
if m != nil {
return m.Task
}
return ""
}
func (m *ShowDDLLocksRequest) GetSources() []string {
if m != nil {
return m.Sources
}
return nil
}
// DDLLock represents a DDL lock info (I known the name confused with DDLLockInfo, any suggestion?)
// it been sent from dm-master to dmctl
// ID: DDL lock generated ID
// task: lock's corresponding task name
// mode: the shard DDL mode, `pessimistic` or `optimistic`.
// owner: lock's owner, a dm-worker
// DDL: DDL statement
// synced: already synced dm-workers
// unsynced: pending to sync dm-workers
type DDLLock struct {
ID string `protobuf:"bytes,1,opt,name=ID,proto3" json:"ID,omitempty"`
Task string `protobuf:"bytes,2,opt,name=task,proto3" json:"task,omitempty"`
Mode string `protobuf:"bytes,3,opt,name=mode,proto3" json:"mode,omitempty"`
Owner string `protobuf:"bytes,4,opt,name=owner,proto3" json:"owner,omitempty"`
DDLs []string `protobuf:"bytes,5,rep,name=DDLs,proto3" json:"DDLs,omitempty"`
Synced []string `protobuf:"bytes,6,rep,name=synced,proto3" json:"synced,omitempty"`
Unsynced []string `protobuf:"bytes,7,rep,name=unsynced,proto3" json:"unsynced,omitempty"`
}
func (m *DDLLock) Reset() { *m = DDLLock{} }
func (m *DDLLock) String() string { return proto.CompactTextString(m) }
func (*DDLLock) ProtoMessage() {}
func (*DDLLock) Descriptor() ([]byte, []int) {
return fileDescriptor_f9bef11f2a341f03, []int{9}
}
func (m *DDLLock) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *DDLLock) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_DDLLock.Marshal(b, m, deterministic)
} else {
b = b[:cap(b)]
n, err := m.MarshalToSizedBuffer(b)
if err != nil {
return nil, err
}
return b[:n], nil
}
}
func (m *DDLLock) XXX_Merge(src proto.Message) {
xxx_messageInfo_DDLLock.Merge(m, src)
}
func (m *DDLLock) XXX_Size() int {
return m.Size()
}
func (m *DDLLock) XXX_DiscardUnknown() {
xxx_messageInfo_DDLLock.DiscardUnknown(m)
}
var xxx_messageInfo_DDLLock proto.InternalMessageInfo
func (m *DDLLock) GetID() string {
if m != nil {
return m.ID
}
return ""
}
func (m *DDLLock) GetTask() string {
if m != nil {
return m.Task
}
return ""
}
func (m *DDLLock) GetMode() string {
if m != nil {
return m.Mode
}
return ""
}
func (m *DDLLock) GetOwner() string {
if m != nil {
return m.Owner
}
return ""
}
func (m *DDLLock) GetDDLs() []string {
if m != nil {
return m.DDLs
}
return nil
}
func (m *DDLLock) GetSynced() []string {
if m != nil {
return m.Synced
}
return nil
}
func (m *DDLLock) GetUnsynced() []string {
if m != nil {
return m.Unsynced
}
return nil
}
type ShowDDLLocksResponse struct {
Result bool `protobuf:"varint,1,opt,name=result,proto3" json:"result,omitempty"`
Msg string `protobuf:"bytes,2,opt,name=msg,proto3" json:"msg,omitempty"`
Locks []*DDLLock `protobuf:"bytes,3,rep,name=locks,proto3" json:"locks,omitempty"`
}
func (m *ShowDDLLocksResponse) Reset() { *m = ShowDDLLocksResponse{} }
func (m *ShowDDLLocksResponse) String() string { return proto.CompactTextString(m) }
func (*ShowDDLLocksResponse) ProtoMessage() {}
func (*ShowDDLLocksResponse) Descriptor() ([]byte, []int) {
return fileDescriptor_f9bef11f2a341f03, []int{10}
}
func (m *ShowDDLLocksResponse) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *ShowDDLLocksResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_ShowDDLLocksResponse.Marshal(b, m, deterministic)
} else {
b = b[:cap(b)]
n, err := m.MarshalToSizedBuffer(b)
if err != nil {
return nil, err
}
return b[:n], nil
}
}
func (m *ShowDDLLocksResponse) XXX_Merge(src proto.Message) {
xxx_messageInfo_ShowDDLLocksResponse.Merge(m, src)
}
func (m *ShowDDLLocksResponse) XXX_Size() int {
return m.Size()
}
func (m *ShowDDLLocksResponse) XXX_DiscardUnknown() {
xxx_messageInfo_ShowDDLLocksResponse.DiscardUnknown(m)
}
var xxx_messageInfo_ShowDDLLocksResponse proto.InternalMessageInfo
func (m *ShowDDLLocksResponse) GetResult() bool {
if m != nil {
return m.Result
}
return false
}
func (m *ShowDDLLocksResponse) GetMsg() string {
if m != nil {
return m.Msg
}
return ""
}
func (m *ShowDDLLocksResponse) GetLocks() []*DDLLock {
if m != nil {
return m.Locks
}
return nil
}
// UnlockDDLLockRequest used to unlock (resolve) DDL lock manually
// ID: DDL lock ID
// replaceOwner: dm-worker used to replace the original DDL lock's owner
// forceRemove: force to remove the DDL lock even fail to execute the DDL for the owner.
type UnlockDDLLockRequest struct {
ID string `protobuf:"bytes,1,opt,name=ID,proto3" json:"ID,omitempty"`
ReplaceOwner string `protobuf:"bytes,2,opt,name=replaceOwner,proto3" json:"replaceOwner,omitempty"`
ForceRemove bool `protobuf:"varint,3,opt,name=forceRemove,proto3" json:"forceRemove,omitempty"`
}
func (m *UnlockDDLLockRequest) Reset() { *m = UnlockDDLLockRequest{} }
func (m *UnlockDDLLockRequest) String() string { return proto.CompactTextString(m) }
func (*UnlockDDLLockRequest) ProtoMessage() {}
func (*UnlockDDLLockRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_f9bef11f2a341f03, []int{11}
}
func (m *UnlockDDLLockRequest) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *UnlockDDLLockRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_UnlockDDLLockRequest.Marshal(b, m, deterministic)
} else {
b = b[:cap(b)]
n, err := m.MarshalToSizedBuffer(b)
if err != nil {
return nil, err
}
return b[:n], nil
}
}
func (m *UnlockDDLLockRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_UnlockDDLLockRequest.Merge(m, src)
}
func (m *UnlockDDLLockRequest) XXX_Size() int {
return m.Size()
}
func (m *UnlockDDLLockRequest) XXX_DiscardUnknown() {
xxx_messageInfo_UnlockDDLLockRequest.DiscardUnknown(m)
}
var xxx_messageInfo_UnlockDDLLockRequest proto.InternalMessageInfo
func (m *UnlockDDLLockRequest) GetID() string {
if m != nil {
return m.ID
}
return ""
}
func (m *UnlockDDLLockRequest) GetReplaceOwner() string {
if m != nil {
return m.ReplaceOwner
}
return ""
}
func (m *UnlockDDLLockRequest) GetForceRemove() bool {
if m != nil {
return m.ForceRemove
}
return false
}
type UnlockDDLLockResponse struct {
Result bool `protobuf:"varint,1,opt,name=result,proto3" json:"result,omitempty"`
Msg string `protobuf:"bytes,2,opt,name=msg,proto3" json:"msg,omitempty"`
}
func (m *UnlockDDLLockResponse) Reset() { *m = UnlockDDLLockResponse{} }
func (m *UnlockDDLLockResponse) String() string { return proto.CompactTextString(m) }
func (*UnlockDDLLockResponse) ProtoMessage() {}
func (*UnlockDDLLockResponse) Descriptor() ([]byte, []int) {
return fileDescriptor_f9bef11f2a341f03, []int{12}
}
func (m *UnlockDDLLockResponse) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *UnlockDDLLockResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_UnlockDDLLockResponse.Marshal(b, m, deterministic)
} else {
b = b[:cap(b)]
n, err := m.MarshalToSizedBuffer(b)
if err != nil {
return nil, err
}
return b[:n], nil
}
}
func (m *UnlockDDLLockResponse) XXX_Merge(src proto.Message) {
xxx_messageInfo_UnlockDDLLockResponse.Merge(m, src)
}
func (m *UnlockDDLLockResponse) XXX_Size() int {
return m.Size()
}
func (m *UnlockDDLLockResponse) XXX_DiscardUnknown() {
xxx_messageInfo_UnlockDDLLockResponse.DiscardUnknown(m)
}
var xxx_messageInfo_UnlockDDLLockResponse proto.InternalMessageInfo
func (m *UnlockDDLLockResponse) GetResult() bool {
if m != nil {
return m.Result
}
return false
}
func (m *UnlockDDLLockResponse) GetMsg() string {
if m != nil {
return m.Msg
}
return ""
}
// OperateWorkerRelayRequest represents a request for some dm-workers to operate relay unit
type OperateWorkerRelayRequest struct {
Op RelayOp `protobuf:"varint,1,opt,name=op,proto3,enum=pb.RelayOp" json:"op,omitempty"`
Sources []string `protobuf:"bytes,2,rep,name=sources,proto3" json:"sources,omitempty"`
}
func (m *OperateWorkerRelayRequest) Reset() { *m = OperateWorkerRelayRequest{} }
func (m *OperateWorkerRelayRequest) String() string { return proto.CompactTextString(m) }
func (*OperateWorkerRelayRequest) ProtoMessage() {}
func (*OperateWorkerRelayRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_f9bef11f2a341f03, []int{13}
}
func (m *OperateWorkerRelayRequest) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *OperateWorkerRelayRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_OperateWorkerRelayRequest.Marshal(b, m, deterministic)
} else {
b = b[:cap(b)]