-
Notifications
You must be signed in to change notification settings - Fork 312
/
dmworker.pb.go
10899 lines (10434 loc) · 258 KB
/
dmworker.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: dmworker.proto
package dmpb
import (
context "context"
encoding_binary "encoding/binary"
fmt "fmt"
io "io"
math "math"
math_bits "math/bits"
proto "github.com/gogo/protobuf/proto"
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 TaskOp int32
const (
TaskOp_InvalidOp TaskOp = 0
TaskOp_Stop TaskOp = 1
TaskOp_Pause TaskOp = 2
TaskOp_Resume TaskOp = 3
TaskOp_Start TaskOp = 4
TaskOp_Update TaskOp = 5
TaskOp_AutoResume TaskOp = 6
)
var TaskOp_name = map[int32]string{
0: "InvalidOp",
1: "Stop",
2: "Pause",
3: "Resume",
4: "Start",
5: "Update",
6: "AutoResume",
}
var TaskOp_value = map[string]int32{
"InvalidOp": 0,
"Stop": 1,
"Pause": 2,
"Resume": 3,
"Start": 4,
"Update": 5,
"AutoResume": 6,
}
func (x TaskOp) String() string {
return proto.EnumName(TaskOp_name, int32(x))
}
func (TaskOp) EnumDescriptor() ([]byte, []int) {
return fileDescriptor_51a1b9e17fd67b10, []int{0}
}
// Stage represents current stage for a (sub) task
// a (sub) task should be always in one stage of the following stages
// (sub) task can transfer from on stage to some special other stages
// New: initial stage when a sub task is created
//
// can not be transferred from other stages
// transfers to Running when initialize with no error
//
// Running: indicates the sub task is processing
//
// is transferred from New when created successfully
// is transferred from Paused when resuming is requested
// transfers to Paused when error occurred or requested from external
// transfers to Stopped when requested from external
// transfers to Finished when sub task processing completed (no Syncer used)
//
// Paused: indicates the processing is paused, and can be resume from external request
//
// is transferred from Running when error occurred or requested from external
// transfers to Running when resuming is requested from external
// transfers to Stopped when requested from external
//
// Stopped: indicates the processing is stopped, and can not be resume (or re-run) again
//
// is transferred from Running / Paused when requested from external
// can not transfer to any stages
//
// Finished: indicates the processing is finished, and no need to re-run
//
// is transferred from Running when processing completed
// should not transfer to any stages
type Stage int32
const (
Stage_InvalidStage Stage = 0
Stage_New Stage = 1
Stage_Running Stage = 2
Stage_Paused Stage = 3
Stage_Stopped Stage = 4
Stage_Finished Stage = 5
Stage_Pausing Stage = 6
Stage_Resuming Stage = 7
Stage_Stopping Stage = 8
)
var Stage_name = map[int32]string{
0: "InvalidStage",
1: "New",
2: "Running",
3: "Paused",
4: "Stopped",
5: "Finished",
6: "Pausing",
7: "Resuming",
8: "Stopping",
}
var Stage_value = map[string]int32{
"InvalidStage": 0,
"New": 1,
"Running": 2,
"Paused": 3,
"Stopped": 4,
"Finished": 5,
"Pausing": 6,
"Resuming": 7,
"Stopping": 8,
}
func (x Stage) String() string {
return proto.EnumName(Stage_name, int32(x))
}
func (Stage) EnumDescriptor() ([]byte, []int) {
return fileDescriptor_51a1b9e17fd67b10, []int{1}
}
// UnitType represents the dm unit's type
type UnitType int32
const (
UnitType_InvalidUnit UnitType = 0
UnitType_Check UnitType = 1
UnitType_Dump UnitType = 2
UnitType_Load UnitType = 3
UnitType_Sync UnitType = 4
UnitType_Relay UnitType = 100
)
var UnitType_name = map[int32]string{
0: "InvalidUnit",
1: "Check",
2: "Dump",
3: "Load",
4: "Sync",
100: "Relay",
}
var UnitType_value = map[string]int32{
"InvalidUnit": 0,
"Check": 1,
"Dump": 2,
"Load": 3,
"Sync": 4,
"Relay": 100,
}
func (x UnitType) String() string {
return proto.EnumName(UnitType_name, int32(x))
}
func (UnitType) EnumDescriptor() ([]byte, []int) {
return fileDescriptor_51a1b9e17fd67b10, []int{2}
}
// RelayOp differs from TaskOp
type RelayOp int32
const (
RelayOp_InvalidRelayOp RelayOp = 0
RelayOp_StopRelay RelayOp = 1
RelayOp_PauseRelay RelayOp = 2
RelayOp_ResumeRelay RelayOp = 3
)
var RelayOp_name = map[int32]string{
0: "InvalidRelayOp",
1: "StopRelay",
2: "PauseRelay",
3: "ResumeRelay",
}
var RelayOp_value = map[string]int32{
"InvalidRelayOp": 0,
"StopRelay": 1,
"PauseRelay": 2,
"ResumeRelay": 3,
}
func (x RelayOp) String() string {
return proto.EnumName(RelayOp_name, int32(x))
}
func (RelayOp) EnumDescriptor() ([]byte, []int) {
return fileDescriptor_51a1b9e17fd67b10, []int{3}
}
type SchemaOp int32
const (
SchemaOp_InvalidSchemaOp SchemaOp = 0
SchemaOp_GetSchema SchemaOp = 1
SchemaOp_SetSchema SchemaOp = 2
SchemaOp_RemoveSchema SchemaOp = 3
SchemaOp_ListSchema SchemaOp = 4
SchemaOp_ListTable SchemaOp = 5
)
var SchemaOp_name = map[int32]string{
0: "InvalidSchemaOp",
1: "GetSchema",
2: "SetSchema",
3: "RemoveSchema",
4: "ListSchema",
5: "ListTable",
}
var SchemaOp_value = map[string]int32{
"InvalidSchemaOp": 0,
"GetSchema": 1,
"SetSchema": 2,
"RemoveSchema": 3,
"ListSchema": 4,
"ListTable": 5,
}
func (x SchemaOp) String() string {
return proto.EnumName(SchemaOp_name, int32(x))
}
func (SchemaOp) EnumDescriptor() ([]byte, []int) {
return fileDescriptor_51a1b9e17fd67b10, []int{4}
}
type V1MetaOp int32
const (
V1MetaOp_InvalidV1MetaOp V1MetaOp = 0
V1MetaOp_GetV1Meta V1MetaOp = 1
V1MetaOp_RemoveV1Meta V1MetaOp = 2
)
var V1MetaOp_name = map[int32]string{
0: "InvalidV1MetaOp",
1: "GetV1Meta",
2: "RemoveV1Meta",
}
var V1MetaOp_value = map[string]int32{
"InvalidV1MetaOp": 0,
"GetV1Meta": 1,
"RemoveV1Meta": 2,
}
func (x V1MetaOp) String() string {
return proto.EnumName(V1MetaOp_name, int32(x))
}
func (V1MetaOp) EnumDescriptor() ([]byte, []int) {
return fileDescriptor_51a1b9e17fd67b10, []int{5}
}
type ErrorOp int32
const (
ErrorOp_InvalidErrorOp ErrorOp = 0
ErrorOp_Skip ErrorOp = 1
ErrorOp_Replace ErrorOp = 2
ErrorOp_Revert ErrorOp = 3
ErrorOp_Inject ErrorOp = 4
ErrorOp_List ErrorOp = 5
)
var ErrorOp_name = map[int32]string{
0: "InvalidErrorOp",
1: "Skip",
2: "Replace",
3: "Revert",
4: "Inject",
5: "List",
}
var ErrorOp_value = map[string]int32{
"InvalidErrorOp": 0,
"Skip": 1,
"Replace": 2,
"Revert": 3,
"Inject": 4,
"List": 5,
}
func (x ErrorOp) String() string {
return proto.EnumName(ErrorOp_name, int32(x))
}
func (ErrorOp) EnumDescriptor() ([]byte, []int) {
return fileDescriptor_51a1b9e17fd67b10, []int{6}
}
type QueryStatusRequest struct {
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
}
func (m *QueryStatusRequest) Reset() { *m = QueryStatusRequest{} }
func (m *QueryStatusRequest) String() string { return proto.CompactTextString(m) }
func (*QueryStatusRequest) ProtoMessage() {}
func (*QueryStatusRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_51a1b9e17fd67b10, []int{0}
}
func (m *QueryStatusRequest) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *QueryStatusRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_QueryStatusRequest.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 *QueryStatusRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_QueryStatusRequest.Merge(m, src)
}
func (m *QueryStatusRequest) XXX_Size() int {
return m.Size()
}
func (m *QueryStatusRequest) XXX_DiscardUnknown() {
xxx_messageInfo_QueryStatusRequest.DiscardUnknown(m)
}
var xxx_messageInfo_QueryStatusRequest proto.InternalMessageInfo
func (m *QueryStatusRequest) GetName() string {
if m != nil {
return m.Name
}
return ""
}
type CommonWorkerResponse 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"`
Source string `protobuf:"bytes,3,opt,name=source,proto3" json:"source,omitempty"`
Worker string `protobuf:"bytes,4,opt,name=worker,proto3" json:"worker,omitempty"`
}
func (m *CommonWorkerResponse) Reset() { *m = CommonWorkerResponse{} }
func (m *CommonWorkerResponse) String() string { return proto.CompactTextString(m) }
func (*CommonWorkerResponse) ProtoMessage() {}
func (*CommonWorkerResponse) Descriptor() ([]byte, []int) {
return fileDescriptor_51a1b9e17fd67b10, []int{1}
}
func (m *CommonWorkerResponse) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *CommonWorkerResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_CommonWorkerResponse.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 *CommonWorkerResponse) XXX_Merge(src proto.Message) {
xxx_messageInfo_CommonWorkerResponse.Merge(m, src)
}
func (m *CommonWorkerResponse) XXX_Size() int {
return m.Size()
}
func (m *CommonWorkerResponse) XXX_DiscardUnknown() {
xxx_messageInfo_CommonWorkerResponse.DiscardUnknown(m)
}
var xxx_messageInfo_CommonWorkerResponse proto.InternalMessageInfo
func (m *CommonWorkerResponse) GetResult() bool {
if m != nil {
return m.Result
}
return false
}
func (m *CommonWorkerResponse) GetMsg() string {
if m != nil {
return m.Msg
}
return ""
}
func (m *CommonWorkerResponse) GetSource() string {
if m != nil {
return m.Source
}
return ""
}
func (m *CommonWorkerResponse) GetWorker() string {
if m != nil {
return m.Worker
}
return ""
}
// QueryStatusResponse represents status response for query on a dm-worker
// status: dm-worker's current sub tasks' status
type QueryStatusResponse 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"`
SourceStatus *SourceStatus `protobuf:"bytes,3,opt,name=sourceStatus,proto3" json:"sourceStatus,omitempty"`
SubTaskStatus []*SubTaskStatus `protobuf:"bytes,4,rep,name=subTaskStatus,proto3" json:"subTaskStatus,omitempty"`
}
func (m *QueryStatusResponse) Reset() { *m = QueryStatusResponse{} }
func (m *QueryStatusResponse) String() string { return proto.CompactTextString(m) }
func (*QueryStatusResponse) ProtoMessage() {}
func (*QueryStatusResponse) Descriptor() ([]byte, []int) {
return fileDescriptor_51a1b9e17fd67b10, []int{2}
}
func (m *QueryStatusResponse) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *QueryStatusResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_QueryStatusResponse.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 *QueryStatusResponse) XXX_Merge(src proto.Message) {
xxx_messageInfo_QueryStatusResponse.Merge(m, src)
}
func (m *QueryStatusResponse) XXX_Size() int {
return m.Size()
}
func (m *QueryStatusResponse) XXX_DiscardUnknown() {
xxx_messageInfo_QueryStatusResponse.DiscardUnknown(m)
}
var xxx_messageInfo_QueryStatusResponse proto.InternalMessageInfo
func (m *QueryStatusResponse) GetResult() bool {
if m != nil {
return m.Result
}
return false
}
func (m *QueryStatusResponse) GetMsg() string {
if m != nil {
return m.Msg
}
return ""
}
func (m *QueryStatusResponse) GetSourceStatus() *SourceStatus {
if m != nil {
return m.SourceStatus
}
return nil
}
func (m *QueryStatusResponse) GetSubTaskStatus() []*SubTaskStatus {
if m != nil {
return m.SubTaskStatus
}
return nil
}
// CheckStatus represents status for check unit
// adds fields later
type CheckStatus struct {
Passed bool `protobuf:"varint,1,opt,name=passed,proto3" json:"passed,omitempty"`
Total int32 `protobuf:"varint,2,opt,name=total,proto3" json:"total,omitempty"`
Successful int32 `protobuf:"varint,3,opt,name=successful,proto3" json:"successful,omitempty"`
Failed int32 `protobuf:"varint,4,opt,name=failed,proto3" json:"failed,omitempty"`
Warning int32 `protobuf:"varint,5,opt,name=warning,proto3" json:"warning,omitempty"`
Detail []byte `protobuf:"bytes,6,opt,name=detail,proto3" json:"detail,omitempty"`
}
func (m *CheckStatus) Reset() { *m = CheckStatus{} }
func (m *CheckStatus) String() string { return proto.CompactTextString(m) }
func (*CheckStatus) ProtoMessage() {}
func (*CheckStatus) Descriptor() ([]byte, []int) {
return fileDescriptor_51a1b9e17fd67b10, []int{3}
}
func (m *CheckStatus) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *CheckStatus) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_CheckStatus.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 *CheckStatus) XXX_Merge(src proto.Message) {
xxx_messageInfo_CheckStatus.Merge(m, src)
}
func (m *CheckStatus) XXX_Size() int {
return m.Size()
}
func (m *CheckStatus) XXX_DiscardUnknown() {
xxx_messageInfo_CheckStatus.DiscardUnknown(m)
}
var xxx_messageInfo_CheckStatus proto.InternalMessageInfo
func (m *CheckStatus) GetPassed() bool {
if m != nil {
return m.Passed
}
return false
}
func (m *CheckStatus) GetTotal() int32 {
if m != nil {
return m.Total
}
return 0
}
func (m *CheckStatus) GetSuccessful() int32 {
if m != nil {
return m.Successful
}
return 0
}
func (m *CheckStatus) GetFailed() int32 {
if m != nil {
return m.Failed
}
return 0
}
func (m *CheckStatus) GetWarning() int32 {
if m != nil {
return m.Warning
}
return 0
}
func (m *CheckStatus) GetDetail() []byte {
if m != nil {
return m.Detail
}
return nil
}
// DumpStatus represents status for dump unit
// add fields later
type DumpStatus struct {
TotalTables int64 `protobuf:"varint,1,opt,name=totalTables,proto3" json:"totalTables,omitempty"`
CompletedTables float64 `protobuf:"fixed64,2,opt,name=completedTables,proto3" json:"completedTables,omitempty"`
FinishedBytes float64 `protobuf:"fixed64,3,opt,name=finishedBytes,proto3" json:"finishedBytes,omitempty"`
FinishedRows float64 `protobuf:"fixed64,4,opt,name=finishedRows,proto3" json:"finishedRows,omitempty"`
EstimateTotalRows float64 `protobuf:"fixed64,5,opt,name=estimateTotalRows,proto3" json:"estimateTotalRows,omitempty"`
}
func (m *DumpStatus) Reset() { *m = DumpStatus{} }
func (m *DumpStatus) String() string { return proto.CompactTextString(m) }
func (*DumpStatus) ProtoMessage() {}
func (*DumpStatus) Descriptor() ([]byte, []int) {
return fileDescriptor_51a1b9e17fd67b10, []int{4}
}
func (m *DumpStatus) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *DumpStatus) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_DumpStatus.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 *DumpStatus) XXX_Merge(src proto.Message) {
xxx_messageInfo_DumpStatus.Merge(m, src)
}
func (m *DumpStatus) XXX_Size() int {
return m.Size()
}
func (m *DumpStatus) XXX_DiscardUnknown() {
xxx_messageInfo_DumpStatus.DiscardUnknown(m)
}
var xxx_messageInfo_DumpStatus proto.InternalMessageInfo
func (m *DumpStatus) GetTotalTables() int64 {
if m != nil {
return m.TotalTables
}
return 0
}
func (m *DumpStatus) GetCompletedTables() float64 {
if m != nil {
return m.CompletedTables
}
return 0
}
func (m *DumpStatus) GetFinishedBytes() float64 {
if m != nil {
return m.FinishedBytes
}
return 0
}
func (m *DumpStatus) GetFinishedRows() float64 {
if m != nil {
return m.FinishedRows
}
return 0
}
func (m *DumpStatus) GetEstimateTotalRows() float64 {
if m != nil {
return m.EstimateTotalRows
}
return 0
}
// LoadStatus represents status for load unit
type LoadStatus struct {
FinishedBytes int64 `protobuf:"varint,1,opt,name=finishedBytes,proto3" json:"finishedBytes,omitempty"`
TotalBytes int64 `protobuf:"varint,2,opt,name=totalBytes,proto3" json:"totalBytes,omitempty"`
Progress string `protobuf:"bytes,3,opt,name=progress,proto3" json:"progress,omitempty"`
MetaBinlog string `protobuf:"bytes,4,opt,name=metaBinlog,proto3" json:"metaBinlog,omitempty"`
MetaBinlogGTID string `protobuf:"bytes,5,opt,name=metaBinlogGTID,proto3" json:"metaBinlogGTID,omitempty"`
}
func (m *LoadStatus) Reset() { *m = LoadStatus{} }
func (m *LoadStatus) String() string { return proto.CompactTextString(m) }
func (*LoadStatus) ProtoMessage() {}
func (*LoadStatus) Descriptor() ([]byte, []int) {
return fileDescriptor_51a1b9e17fd67b10, []int{5}
}
func (m *LoadStatus) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *LoadStatus) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_LoadStatus.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 *LoadStatus) XXX_Merge(src proto.Message) {
xxx_messageInfo_LoadStatus.Merge(m, src)
}
func (m *LoadStatus) XXX_Size() int {
return m.Size()
}
func (m *LoadStatus) XXX_DiscardUnknown() {
xxx_messageInfo_LoadStatus.DiscardUnknown(m)
}
var xxx_messageInfo_LoadStatus proto.InternalMessageInfo
func (m *LoadStatus) GetFinishedBytes() int64 {
if m != nil {
return m.FinishedBytes
}
return 0
}
func (m *LoadStatus) GetTotalBytes() int64 {
if m != nil {
return m.TotalBytes
}
return 0
}
func (m *LoadStatus) GetProgress() string {
if m != nil {
return m.Progress
}
return ""
}
func (m *LoadStatus) GetMetaBinlog() string {
if m != nil {
return m.MetaBinlog
}
return ""
}
func (m *LoadStatus) GetMetaBinlogGTID() string {
if m != nil {
return m.MetaBinlogGTID
}
return ""
}
// ShardingGroup represents a DDL sharding group, this is used by SyncStatus, and is differ from ShardingGroup in syncer pkg
// target: target table name
// DDL: in syncing DDL
// firstPos: first DDL binlog pos for this group
// synced: synced source tables
// unsynced: unsynced source tables
type ShardingGroup struct {
Target string `protobuf:"bytes,1,opt,name=target,proto3" json:"target,omitempty"`
DDLs []string `protobuf:"bytes,2,rep,name=DDLs,proto3" json:"DDLs,omitempty"`
FirstLocation string `protobuf:"bytes,3,opt,name=firstLocation,proto3" json:"firstLocation,omitempty"`
Synced []string `protobuf:"bytes,4,rep,name=synced,proto3" json:"synced,omitempty"`
Unsynced []string `protobuf:"bytes,5,rep,name=unsynced,proto3" json:"unsynced,omitempty"`
}
func (m *ShardingGroup) Reset() { *m = ShardingGroup{} }
func (m *ShardingGroup) String() string { return proto.CompactTextString(m) }
func (*ShardingGroup) ProtoMessage() {}
func (*ShardingGroup) Descriptor() ([]byte, []int) {
return fileDescriptor_51a1b9e17fd67b10, []int{6}
}
func (m *ShardingGroup) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *ShardingGroup) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_ShardingGroup.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 *ShardingGroup) XXX_Merge(src proto.Message) {
xxx_messageInfo_ShardingGroup.Merge(m, src)
}
func (m *ShardingGroup) XXX_Size() int {
return m.Size()
}
func (m *ShardingGroup) XXX_DiscardUnknown() {
xxx_messageInfo_ShardingGroup.DiscardUnknown(m)
}
var xxx_messageInfo_ShardingGroup proto.InternalMessageInfo
func (m *ShardingGroup) GetTarget() string {
if m != nil {
return m.Target
}
return ""
}
func (m *ShardingGroup) GetDDLs() []string {
if m != nil {
return m.DDLs
}
return nil
}
func (m *ShardingGroup) GetFirstLocation() string {
if m != nil {
return m.FirstLocation
}
return ""
}
func (m *ShardingGroup) GetSynced() []string {
if m != nil {
return m.Synced
}
return nil
}
func (m *ShardingGroup) GetUnsynced() []string {
if m != nil {
return m.Unsynced
}
return nil
}
// SyncStatus represents status for sync unit
type SyncStatus struct {
TotalEvents int64 `protobuf:"varint,1,opt,name=totalEvents,proto3" json:"totalEvents,omitempty"`
TotalTps int64 `protobuf:"varint,2,opt,name=totalTps,proto3" json:"totalTps,omitempty"`
RecentTps int64 `protobuf:"varint,3,opt,name=recentTps,proto3" json:"recentTps,omitempty"`
MasterBinlog string `protobuf:"bytes,4,opt,name=masterBinlog,proto3" json:"masterBinlog,omitempty"`
MasterBinlogGtid string `protobuf:"bytes,5,opt,name=masterBinlogGtid,proto3" json:"masterBinlogGtid,omitempty"`
SyncerBinlog string `protobuf:"bytes,6,opt,name=syncerBinlog,proto3" json:"syncerBinlog,omitempty"`
SyncerBinlogGtid string `protobuf:"bytes,7,opt,name=syncerBinlogGtid,proto3" json:"syncerBinlogGtid,omitempty"`
BlockingDDLs []string `protobuf:"bytes,8,rep,name=blockingDDLs,proto3" json:"blockingDDLs,omitempty"`
UnresolvedGroups []*ShardingGroup `protobuf:"bytes,9,rep,name=unresolvedGroups,proto3" json:"unresolvedGroups,omitempty"`
Synced bool `protobuf:"varint,10,opt,name=synced,proto3" json:"synced,omitempty"`
BinlogType string `protobuf:"bytes,11,opt,name=binlogType,proto3" json:"binlogType,omitempty"`
SecondsBehindMaster int64 `protobuf:"varint,12,opt,name=secondsBehindMaster,proto3" json:"secondsBehindMaster,omitempty"`
}
func (m *SyncStatus) Reset() { *m = SyncStatus{} }
func (m *SyncStatus) String() string { return proto.CompactTextString(m) }
func (*SyncStatus) ProtoMessage() {}
func (*SyncStatus) Descriptor() ([]byte, []int) {
return fileDescriptor_51a1b9e17fd67b10, []int{7}
}
func (m *SyncStatus) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *SyncStatus) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_SyncStatus.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 *SyncStatus) XXX_Merge(src proto.Message) {
xxx_messageInfo_SyncStatus.Merge(m, src)
}
func (m *SyncStatus) XXX_Size() int {
return m.Size()
}
func (m *SyncStatus) XXX_DiscardUnknown() {
xxx_messageInfo_SyncStatus.DiscardUnknown(m)
}
var xxx_messageInfo_SyncStatus proto.InternalMessageInfo
func (m *SyncStatus) GetTotalEvents() int64 {
if m != nil {
return m.TotalEvents
}
return 0
}
func (m *SyncStatus) GetTotalTps() int64 {
if m != nil {
return m.TotalTps
}
return 0
}
func (m *SyncStatus) GetRecentTps() int64 {
if m != nil {
return m.RecentTps
}
return 0
}
func (m *SyncStatus) GetMasterBinlog() string {
if m != nil {
return m.MasterBinlog
}
return ""
}
func (m *SyncStatus) GetMasterBinlogGtid() string {
if m != nil {
return m.MasterBinlogGtid
}
return ""
}
func (m *SyncStatus) GetSyncerBinlog() string {
if m != nil {
return m.SyncerBinlog
}
return ""
}
func (m *SyncStatus) GetSyncerBinlogGtid() string {
if m != nil {
return m.SyncerBinlogGtid
}
return ""
}
func (m *SyncStatus) GetBlockingDDLs() []string {
if m != nil {
return m.BlockingDDLs
}
return nil
}
func (m *SyncStatus) GetUnresolvedGroups() []*ShardingGroup {
if m != nil {
return m.UnresolvedGroups
}
return nil
}
func (m *SyncStatus) GetSynced() bool {
if m != nil {
return m.Synced
}
return false
}
func (m *SyncStatus) GetBinlogType() string {
if m != nil {
return m.BinlogType
}
return ""
}
func (m *SyncStatus) GetSecondsBehindMaster() int64 {
if m != nil {
return m.SecondsBehindMaster
}
return 0
}
// SourceStatus represents status for source runing on dm-worker
type SourceStatus struct {
Source string `protobuf:"bytes,1,opt,name=source,proto3" json:"source,omitempty"`
Worker string `protobuf:"bytes,2,opt,name=worker,proto3" json:"worker,omitempty"`
Result *ProcessResult `protobuf:"bytes,3,opt,name=result,proto3" json:"result,omitempty"`
RelayStatus *RelayStatus `protobuf:"bytes,4,opt,name=relayStatus,proto3" json:"relayStatus,omitempty"`
}
func (m *SourceStatus) Reset() { *m = SourceStatus{} }
func (m *SourceStatus) String() string { return proto.CompactTextString(m) }
func (*SourceStatus) ProtoMessage() {}
func (*SourceStatus) Descriptor() ([]byte, []int) {
return fileDescriptor_51a1b9e17fd67b10, []int{8}
}
func (m *SourceStatus) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *SourceStatus) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_SourceStatus.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 *SourceStatus) XXX_Merge(src proto.Message) {
xxx_messageInfo_SourceStatus.Merge(m, src)
}
func (m *SourceStatus) XXX_Size() int {
return m.Size()
}
func (m *SourceStatus) XXX_DiscardUnknown() {
xxx_messageInfo_SourceStatus.DiscardUnknown(m)
}
var xxx_messageInfo_SourceStatus proto.InternalMessageInfo
func (m *SourceStatus) GetSource() string {
if m != nil {