/
rpc_mock.go
654 lines (564 loc) · 26.7 KB
/
rpc_mock.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
// Code generated by MockGen. DO NOT EDIT.
// Source: github.com/m3db/m3/src/dbnode/generated/thrift/rpc/tchan-go
// Copyright (c) 2021 Uber Technologies, Inc.
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
// copies of the Software, and to permit persons to whom the Software is
// furnished to do so, subject to the following conditions:
//
// The above copyright notice and this permission notice shall be included in
// all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
// THE SOFTWARE.
// Package rpc is a generated GoMock package.
package rpc
import (
"reflect"
"github.com/golang/mock/gomock"
"github.com/uber/tchannel-go/thrift"
)
// MockTChanCluster is a mock of TChanCluster interface.
type MockTChanCluster struct {
ctrl *gomock.Controller
recorder *MockTChanClusterMockRecorder
}
// MockTChanClusterMockRecorder is the mock recorder for MockTChanCluster.
type MockTChanClusterMockRecorder struct {
mock *MockTChanCluster
}
// NewMockTChanCluster creates a new mock instance.
func NewMockTChanCluster(ctrl *gomock.Controller) *MockTChanCluster {
mock := &MockTChanCluster{ctrl: ctrl}
mock.recorder = &MockTChanClusterMockRecorder{mock}
return mock
}
// EXPECT returns an object that allows the caller to indicate expected use.
func (m *MockTChanCluster) EXPECT() *MockTChanClusterMockRecorder {
return m.recorder
}
// Aggregate mocks base method.
func (m *MockTChanCluster) Aggregate(ctx thrift.Context, req *AggregateQueryRequest) (*AggregateQueryResult_, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "Aggregate", ctx, req)
ret0, _ := ret[0].(*AggregateQueryResult_)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// Aggregate indicates an expected call of Aggregate.
func (mr *MockTChanClusterMockRecorder) Aggregate(ctx, req interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Aggregate", reflect.TypeOf((*MockTChanCluster)(nil).Aggregate), ctx, req)
}
// Fetch mocks base method.
func (m *MockTChanCluster) Fetch(ctx thrift.Context, req *FetchRequest) (*FetchResult_, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "Fetch", ctx, req)
ret0, _ := ret[0].(*FetchResult_)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// Fetch indicates an expected call of Fetch.
func (mr *MockTChanClusterMockRecorder) Fetch(ctx, req interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Fetch", reflect.TypeOf((*MockTChanCluster)(nil).Fetch), ctx, req)
}
// Health mocks base method.
func (m *MockTChanCluster) Health(ctx thrift.Context) (*HealthResult_, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "Health", ctx)
ret0, _ := ret[0].(*HealthResult_)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// Health indicates an expected call of Health.
func (mr *MockTChanClusterMockRecorder) Health(ctx interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Health", reflect.TypeOf((*MockTChanCluster)(nil).Health), ctx)
}
// Query mocks base method.
func (m *MockTChanCluster) Query(ctx thrift.Context, req *QueryRequest) (*QueryResult_, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "Query", ctx, req)
ret0, _ := ret[0].(*QueryResult_)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// Query indicates an expected call of Query.
func (mr *MockTChanClusterMockRecorder) Query(ctx, req interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Query", reflect.TypeOf((*MockTChanCluster)(nil).Query), ctx, req)
}
// Truncate mocks base method.
func (m *MockTChanCluster) Truncate(ctx thrift.Context, req *TruncateRequest) (*TruncateResult_, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "Truncate", ctx, req)
ret0, _ := ret[0].(*TruncateResult_)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// Truncate indicates an expected call of Truncate.
func (mr *MockTChanClusterMockRecorder) Truncate(ctx, req interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Truncate", reflect.TypeOf((*MockTChanCluster)(nil).Truncate), ctx, req)
}
// Write mocks base method.
func (m *MockTChanCluster) Write(ctx thrift.Context, req *WriteRequest) error {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "Write", ctx, req)
ret0, _ := ret[0].(error)
return ret0
}
// Write indicates an expected call of Write.
func (mr *MockTChanClusterMockRecorder) Write(ctx, req interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Write", reflect.TypeOf((*MockTChanCluster)(nil).Write), ctx, req)
}
// WriteTagged mocks base method.
func (m *MockTChanCluster) WriteTagged(ctx thrift.Context, req *WriteTaggedRequest) error {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "WriteTagged", ctx, req)
ret0, _ := ret[0].(error)
return ret0
}
// WriteTagged indicates an expected call of WriteTagged.
func (mr *MockTChanClusterMockRecorder) WriteTagged(ctx, req interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "WriteTagged", reflect.TypeOf((*MockTChanCluster)(nil).WriteTagged), ctx, req)
}
// MockTChanNode is a mock of TChanNode interface.
type MockTChanNode struct {
ctrl *gomock.Controller
recorder *MockTChanNodeMockRecorder
}
// MockTChanNodeMockRecorder is the mock recorder for MockTChanNode.
type MockTChanNodeMockRecorder struct {
mock *MockTChanNode
}
// NewMockTChanNode creates a new mock instance.
func NewMockTChanNode(ctrl *gomock.Controller) *MockTChanNode {
mock := &MockTChanNode{ctrl: ctrl}
mock.recorder = &MockTChanNodeMockRecorder{mock}
return mock
}
// EXPECT returns an object that allows the caller to indicate expected use.
func (m *MockTChanNode) EXPECT() *MockTChanNodeMockRecorder {
return m.recorder
}
// Aggregate mocks base method.
func (m *MockTChanNode) Aggregate(ctx thrift.Context, req *AggregateQueryRequest) (*AggregateQueryResult_, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "Aggregate", ctx, req)
ret0, _ := ret[0].(*AggregateQueryResult_)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// Aggregate indicates an expected call of Aggregate.
func (mr *MockTChanNodeMockRecorder) Aggregate(ctx, req interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Aggregate", reflect.TypeOf((*MockTChanNode)(nil).Aggregate), ctx, req)
}
// AggregateRaw mocks base method.
func (m *MockTChanNode) AggregateRaw(ctx thrift.Context, req *AggregateQueryRawRequest) (*AggregateQueryRawResult_, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "AggregateRaw", ctx, req)
ret0, _ := ret[0].(*AggregateQueryRawResult_)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// AggregateRaw indicates an expected call of AggregateRaw.
func (mr *MockTChanNodeMockRecorder) AggregateRaw(ctx, req interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AggregateRaw", reflect.TypeOf((*MockTChanNode)(nil).AggregateRaw), ctx, req)
}
// AggregateTiles mocks base method.
func (m *MockTChanNode) AggregateTiles(ctx thrift.Context, req *AggregateTilesRequest) (*AggregateTilesResult_, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "AggregateTiles", ctx, req)
ret0, _ := ret[0].(*AggregateTilesResult_)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// AggregateTiles indicates an expected call of AggregateTiles.
func (mr *MockTChanNodeMockRecorder) AggregateTiles(ctx, req interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AggregateTiles", reflect.TypeOf((*MockTChanNode)(nil).AggregateTiles), ctx, req)
}
// Bootstrapped mocks base method.
func (m *MockTChanNode) Bootstrapped(ctx thrift.Context) (*NodeBootstrappedResult_, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "Bootstrapped", ctx)
ret0, _ := ret[0].(*NodeBootstrappedResult_)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// Bootstrapped indicates an expected call of Bootstrapped.
func (mr *MockTChanNodeMockRecorder) Bootstrapped(ctx interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Bootstrapped", reflect.TypeOf((*MockTChanNode)(nil).Bootstrapped), ctx)
}
// BootstrappedInPlacementOrNoPlacement mocks base method.
func (m *MockTChanNode) BootstrappedInPlacementOrNoPlacement(ctx thrift.Context) (*NodeBootstrappedInPlacementOrNoPlacementResult_, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "BootstrappedInPlacementOrNoPlacement", ctx)
ret0, _ := ret[0].(*NodeBootstrappedInPlacementOrNoPlacementResult_)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// BootstrappedInPlacementOrNoPlacement indicates an expected call of BootstrappedInPlacementOrNoPlacement.
func (mr *MockTChanNodeMockRecorder) BootstrappedInPlacementOrNoPlacement(ctx interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "BootstrappedInPlacementOrNoPlacement", reflect.TypeOf((*MockTChanNode)(nil).BootstrappedInPlacementOrNoPlacement), ctx)
}
// DebugIndexMemorySegments mocks base method.
func (m *MockTChanNode) DebugIndexMemorySegments(ctx thrift.Context, req *DebugIndexMemorySegmentsRequest) (*DebugIndexMemorySegmentsResult_, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "DebugIndexMemorySegments", ctx, req)
ret0, _ := ret[0].(*DebugIndexMemorySegmentsResult_)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// DebugIndexMemorySegments indicates an expected call of DebugIndexMemorySegments.
func (mr *MockTChanNodeMockRecorder) DebugIndexMemorySegments(ctx, req interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DebugIndexMemorySegments", reflect.TypeOf((*MockTChanNode)(nil).DebugIndexMemorySegments), ctx, req)
}
// DebugProfileStart mocks base method.
func (m *MockTChanNode) DebugProfileStart(ctx thrift.Context, req *DebugProfileStartRequest) (*DebugProfileStartResult_, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "DebugProfileStart", ctx, req)
ret0, _ := ret[0].(*DebugProfileStartResult_)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// DebugProfileStart indicates an expected call of DebugProfileStart.
func (mr *MockTChanNodeMockRecorder) DebugProfileStart(ctx, req interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DebugProfileStart", reflect.TypeOf((*MockTChanNode)(nil).DebugProfileStart), ctx, req)
}
// DebugProfileStop mocks base method.
func (m *MockTChanNode) DebugProfileStop(ctx thrift.Context, req *DebugProfileStopRequest) (*DebugProfileStopResult_, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "DebugProfileStop", ctx, req)
ret0, _ := ret[0].(*DebugProfileStopResult_)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// DebugProfileStop indicates an expected call of DebugProfileStop.
func (mr *MockTChanNodeMockRecorder) DebugProfileStop(ctx, req interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DebugProfileStop", reflect.TypeOf((*MockTChanNode)(nil).DebugProfileStop), ctx, req)
}
// Fetch mocks base method.
func (m *MockTChanNode) Fetch(ctx thrift.Context, req *FetchRequest) (*FetchResult_, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "Fetch", ctx, req)
ret0, _ := ret[0].(*FetchResult_)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// Fetch indicates an expected call of Fetch.
func (mr *MockTChanNodeMockRecorder) Fetch(ctx, req interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Fetch", reflect.TypeOf((*MockTChanNode)(nil).Fetch), ctx, req)
}
// FetchBatchRaw mocks base method.
func (m *MockTChanNode) FetchBatchRaw(ctx thrift.Context, req *FetchBatchRawRequest) (*FetchBatchRawResult_, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "FetchBatchRaw", ctx, req)
ret0, _ := ret[0].(*FetchBatchRawResult_)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// FetchBatchRaw indicates an expected call of FetchBatchRaw.
func (mr *MockTChanNodeMockRecorder) FetchBatchRaw(ctx, req interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "FetchBatchRaw", reflect.TypeOf((*MockTChanNode)(nil).FetchBatchRaw), ctx, req)
}
// FetchBatchRawV2 mocks base method.
func (m *MockTChanNode) FetchBatchRawV2(ctx thrift.Context, req *FetchBatchRawV2Request) (*FetchBatchRawResult_, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "FetchBatchRawV2", ctx, req)
ret0, _ := ret[0].(*FetchBatchRawResult_)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// FetchBatchRawV2 indicates an expected call of FetchBatchRawV2.
func (mr *MockTChanNodeMockRecorder) FetchBatchRawV2(ctx, req interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "FetchBatchRawV2", reflect.TypeOf((*MockTChanNode)(nil).FetchBatchRawV2), ctx, req)
}
// FetchBlocksMetadataRawV2 mocks base method.
func (m *MockTChanNode) FetchBlocksMetadataRawV2(ctx thrift.Context, req *FetchBlocksMetadataRawV2Request) (*FetchBlocksMetadataRawV2Result_, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "FetchBlocksMetadataRawV2", ctx, req)
ret0, _ := ret[0].(*FetchBlocksMetadataRawV2Result_)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// FetchBlocksMetadataRawV2 indicates an expected call of FetchBlocksMetadataRawV2.
func (mr *MockTChanNodeMockRecorder) FetchBlocksMetadataRawV2(ctx, req interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "FetchBlocksMetadataRawV2", reflect.TypeOf((*MockTChanNode)(nil).FetchBlocksMetadataRawV2), ctx, req)
}
// FetchBlocksRaw mocks base method.
func (m *MockTChanNode) FetchBlocksRaw(ctx thrift.Context, req *FetchBlocksRawRequest) (*FetchBlocksRawResult_, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "FetchBlocksRaw", ctx, req)
ret0, _ := ret[0].(*FetchBlocksRawResult_)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// FetchBlocksRaw indicates an expected call of FetchBlocksRaw.
func (mr *MockTChanNodeMockRecorder) FetchBlocksRaw(ctx, req interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "FetchBlocksRaw", reflect.TypeOf((*MockTChanNode)(nil).FetchBlocksRaw), ctx, req)
}
// FetchTagged mocks base method.
func (m *MockTChanNode) FetchTagged(ctx thrift.Context, req *FetchTaggedRequest) (*FetchTaggedResult_, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "FetchTagged", ctx, req)
ret0, _ := ret[0].(*FetchTaggedResult_)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// FetchTagged indicates an expected call of FetchTagged.
func (mr *MockTChanNodeMockRecorder) FetchTagged(ctx, req interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "FetchTagged", reflect.TypeOf((*MockTChanNode)(nil).FetchTagged), ctx, req)
}
// GetPersistRateLimit mocks base method.
func (m *MockTChanNode) GetPersistRateLimit(ctx thrift.Context) (*NodePersistRateLimitResult_, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "GetPersistRateLimit", ctx)
ret0, _ := ret[0].(*NodePersistRateLimitResult_)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// GetPersistRateLimit indicates an expected call of GetPersistRateLimit.
func (mr *MockTChanNodeMockRecorder) GetPersistRateLimit(ctx interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetPersistRateLimit", reflect.TypeOf((*MockTChanNode)(nil).GetPersistRateLimit), ctx)
}
// GetWriteNewSeriesAsync mocks base method.
func (m *MockTChanNode) GetWriteNewSeriesAsync(ctx thrift.Context) (*NodeWriteNewSeriesAsyncResult_, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "GetWriteNewSeriesAsync", ctx)
ret0, _ := ret[0].(*NodeWriteNewSeriesAsyncResult_)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// GetWriteNewSeriesAsync indicates an expected call of GetWriteNewSeriesAsync.
func (mr *MockTChanNodeMockRecorder) GetWriteNewSeriesAsync(ctx interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetWriteNewSeriesAsync", reflect.TypeOf((*MockTChanNode)(nil).GetWriteNewSeriesAsync), ctx)
}
// GetWriteNewSeriesBackoffDuration mocks base method.
func (m *MockTChanNode) GetWriteNewSeriesBackoffDuration(ctx thrift.Context) (*NodeWriteNewSeriesBackoffDurationResult_, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "GetWriteNewSeriesBackoffDuration", ctx)
ret0, _ := ret[0].(*NodeWriteNewSeriesBackoffDurationResult_)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// GetWriteNewSeriesBackoffDuration indicates an expected call of GetWriteNewSeriesBackoffDuration.
func (mr *MockTChanNodeMockRecorder) GetWriteNewSeriesBackoffDuration(ctx interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetWriteNewSeriesBackoffDuration", reflect.TypeOf((*MockTChanNode)(nil).GetWriteNewSeriesBackoffDuration), ctx)
}
// GetWriteNewSeriesLimitPerShardPerSecond mocks base method.
func (m *MockTChanNode) GetWriteNewSeriesLimitPerShardPerSecond(ctx thrift.Context) (*NodeWriteNewSeriesLimitPerShardPerSecondResult_, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "GetWriteNewSeriesLimitPerShardPerSecond", ctx)
ret0, _ := ret[0].(*NodeWriteNewSeriesLimitPerShardPerSecondResult_)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// GetWriteNewSeriesLimitPerShardPerSecond indicates an expected call of GetWriteNewSeriesLimitPerShardPerSecond.
func (mr *MockTChanNodeMockRecorder) GetWriteNewSeriesLimitPerShardPerSecond(ctx interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetWriteNewSeriesLimitPerShardPerSecond", reflect.TypeOf((*MockTChanNode)(nil).GetWriteNewSeriesLimitPerShardPerSecond), ctx)
}
// Health mocks base method.
func (m *MockTChanNode) Health(ctx thrift.Context) (*NodeHealthResult_, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "Health", ctx)
ret0, _ := ret[0].(*NodeHealthResult_)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// Health indicates an expected call of Health.
func (mr *MockTChanNodeMockRecorder) Health(ctx interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Health", reflect.TypeOf((*MockTChanNode)(nil).Health), ctx)
}
// Query mocks base method.
func (m *MockTChanNode) Query(ctx thrift.Context, req *QueryRequest) (*QueryResult_, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "Query", ctx, req)
ret0, _ := ret[0].(*QueryResult_)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// Query indicates an expected call of Query.
func (mr *MockTChanNodeMockRecorder) Query(ctx, req interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Query", reflect.TypeOf((*MockTChanNode)(nil).Query), ctx, req)
}
// Repair mocks base method.
func (m *MockTChanNode) Repair(ctx thrift.Context) error {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "Repair", ctx)
ret0, _ := ret[0].(error)
return ret0
}
// Repair indicates an expected call of Repair.
func (mr *MockTChanNodeMockRecorder) Repair(ctx interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Repair", reflect.TypeOf((*MockTChanNode)(nil).Repair), ctx)
}
// SetPersistRateLimit mocks base method.
func (m *MockTChanNode) SetPersistRateLimit(ctx thrift.Context, req *NodeSetPersistRateLimitRequest) (*NodePersistRateLimitResult_, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "SetPersistRateLimit", ctx, req)
ret0, _ := ret[0].(*NodePersistRateLimitResult_)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// SetPersistRateLimit indicates an expected call of SetPersistRateLimit.
func (mr *MockTChanNodeMockRecorder) SetPersistRateLimit(ctx, req interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetPersistRateLimit", reflect.TypeOf((*MockTChanNode)(nil).SetPersistRateLimit), ctx, req)
}
// SetWriteNewSeriesAsync mocks base method.
func (m *MockTChanNode) SetWriteNewSeriesAsync(ctx thrift.Context, req *NodeSetWriteNewSeriesAsyncRequest) (*NodeWriteNewSeriesAsyncResult_, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "SetWriteNewSeriesAsync", ctx, req)
ret0, _ := ret[0].(*NodeWriteNewSeriesAsyncResult_)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// SetWriteNewSeriesAsync indicates an expected call of SetWriteNewSeriesAsync.
func (mr *MockTChanNodeMockRecorder) SetWriteNewSeriesAsync(ctx, req interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetWriteNewSeriesAsync", reflect.TypeOf((*MockTChanNode)(nil).SetWriteNewSeriesAsync), ctx, req)
}
// SetWriteNewSeriesBackoffDuration mocks base method.
func (m *MockTChanNode) SetWriteNewSeriesBackoffDuration(ctx thrift.Context, req *NodeSetWriteNewSeriesBackoffDurationRequest) (*NodeWriteNewSeriesBackoffDurationResult_, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "SetWriteNewSeriesBackoffDuration", ctx, req)
ret0, _ := ret[0].(*NodeWriteNewSeriesBackoffDurationResult_)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// SetWriteNewSeriesBackoffDuration indicates an expected call of SetWriteNewSeriesBackoffDuration.
func (mr *MockTChanNodeMockRecorder) SetWriteNewSeriesBackoffDuration(ctx, req interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetWriteNewSeriesBackoffDuration", reflect.TypeOf((*MockTChanNode)(nil).SetWriteNewSeriesBackoffDuration), ctx, req)
}
// SetWriteNewSeriesLimitPerShardPerSecond mocks base method.
func (m *MockTChanNode) SetWriteNewSeriesLimitPerShardPerSecond(ctx thrift.Context, req *NodeSetWriteNewSeriesLimitPerShardPerSecondRequest) (*NodeWriteNewSeriesLimitPerShardPerSecondResult_, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "SetWriteNewSeriesLimitPerShardPerSecond", ctx, req)
ret0, _ := ret[0].(*NodeWriteNewSeriesLimitPerShardPerSecondResult_)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// SetWriteNewSeriesLimitPerShardPerSecond indicates an expected call of SetWriteNewSeriesLimitPerShardPerSecond.
func (mr *MockTChanNodeMockRecorder) SetWriteNewSeriesLimitPerShardPerSecond(ctx, req interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetWriteNewSeriesLimitPerShardPerSecond", reflect.TypeOf((*MockTChanNode)(nil).SetWriteNewSeriesLimitPerShardPerSecond), ctx, req)
}
// Truncate mocks base method.
func (m *MockTChanNode) Truncate(ctx thrift.Context, req *TruncateRequest) (*TruncateResult_, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "Truncate", ctx, req)
ret0, _ := ret[0].(*TruncateResult_)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// Truncate indicates an expected call of Truncate.
func (mr *MockTChanNodeMockRecorder) Truncate(ctx, req interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Truncate", reflect.TypeOf((*MockTChanNode)(nil).Truncate), ctx, req)
}
// Write mocks base method.
func (m *MockTChanNode) Write(ctx thrift.Context, req *WriteRequest) error {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "Write", ctx, req)
ret0, _ := ret[0].(error)
return ret0
}
// Write indicates an expected call of Write.
func (mr *MockTChanNodeMockRecorder) Write(ctx, req interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Write", reflect.TypeOf((*MockTChanNode)(nil).Write), ctx, req)
}
// WriteBatchRaw mocks base method.
func (m *MockTChanNode) WriteBatchRaw(ctx thrift.Context, req *WriteBatchRawRequest) error {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "WriteBatchRaw", ctx, req)
ret0, _ := ret[0].(error)
return ret0
}
// WriteBatchRaw indicates an expected call of WriteBatchRaw.
func (mr *MockTChanNodeMockRecorder) WriteBatchRaw(ctx, req interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "WriteBatchRaw", reflect.TypeOf((*MockTChanNode)(nil).WriteBatchRaw), ctx, req)
}
// WriteBatchRawV2 mocks base method.
func (m *MockTChanNode) WriteBatchRawV2(ctx thrift.Context, req *WriteBatchRawV2Request) error {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "WriteBatchRawV2", ctx, req)
ret0, _ := ret[0].(error)
return ret0
}
// WriteBatchRawV2 indicates an expected call of WriteBatchRawV2.
func (mr *MockTChanNodeMockRecorder) WriteBatchRawV2(ctx, req interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "WriteBatchRawV2", reflect.TypeOf((*MockTChanNode)(nil).WriteBatchRawV2), ctx, req)
}
// WriteTagged mocks base method.
func (m *MockTChanNode) WriteTagged(ctx thrift.Context, req *WriteTaggedRequest) error {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "WriteTagged", ctx, req)
ret0, _ := ret[0].(error)
return ret0
}
// WriteTagged indicates an expected call of WriteTagged.
func (mr *MockTChanNodeMockRecorder) WriteTagged(ctx, req interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "WriteTagged", reflect.TypeOf((*MockTChanNode)(nil).WriteTagged), ctx, req)
}
// WriteTaggedBatchRaw mocks base method.
func (m *MockTChanNode) WriteTaggedBatchRaw(ctx thrift.Context, req *WriteTaggedBatchRawRequest) error {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "WriteTaggedBatchRaw", ctx, req)
ret0, _ := ret[0].(error)
return ret0
}
// WriteTaggedBatchRaw indicates an expected call of WriteTaggedBatchRaw.
func (mr *MockTChanNodeMockRecorder) WriteTaggedBatchRaw(ctx, req interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "WriteTaggedBatchRaw", reflect.TypeOf((*MockTChanNode)(nil).WriteTaggedBatchRaw), ctx, req)
}
// WriteTaggedBatchRawV2 mocks base method.
func (m *MockTChanNode) WriteTaggedBatchRawV2(ctx thrift.Context, req *WriteTaggedBatchRawV2Request) error {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "WriteTaggedBatchRawV2", ctx, req)
ret0, _ := ret[0].(error)
return ret0
}
// WriteTaggedBatchRawV2 indicates an expected call of WriteTaggedBatchRawV2.
func (mr *MockTChanNodeMockRecorder) WriteTaggedBatchRawV2(ctx, req interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "WriteTaggedBatchRawV2", reflect.TypeOf((*MockTChanNode)(nil).WriteTaggedBatchRawV2), ctx, req)
}