github.com/m3db/m3@v1.5.1-0.20231129193456-75a402aa583b/src/dbnode/generated/thrift/rpc/rpc_mock.go (about) 1 // Code generated by MockGen. DO NOT EDIT. 2 // Source: ../../generated/thrift/rpc/tchan-go 3 4 // Copyright (c) 2022 Uber Technologies, Inc. 5 // 6 // Permission is hereby granted, free of charge, to any person obtaining a copy 7 // of this software and associated documentation files (the "Software"), to deal 8 // in the Software without restriction, including without limitation the rights 9 // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 10 // copies of the Software, and to permit persons to whom the Software is 11 // furnished to do so, subject to the following conditions: 12 // 13 // The above copyright notice and this permission notice shall be included in 14 // all copies or substantial portions of the Software. 15 // 16 // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 17 // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 18 // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 19 // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 20 // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 21 // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 22 // THE SOFTWARE. 23 24 // Package rpc is a generated GoMock package. 25 package rpc 26 27 import ( 28 "reflect" 29 30 "github.com/golang/mock/gomock" 31 "github.com/uber/tchannel-go/thrift" 32 ) 33 34 // MockTChanCluster is a mock of TChanCluster interface. 35 type MockTChanCluster struct { 36 ctrl *gomock.Controller 37 recorder *MockTChanClusterMockRecorder 38 } 39 40 // MockTChanClusterMockRecorder is the mock recorder for MockTChanCluster. 41 type MockTChanClusterMockRecorder struct { 42 mock *MockTChanCluster 43 } 44 45 // NewMockTChanCluster creates a new mock instance. 46 func NewMockTChanCluster(ctrl *gomock.Controller) *MockTChanCluster { 47 mock := &MockTChanCluster{ctrl: ctrl} 48 mock.recorder = &MockTChanClusterMockRecorder{mock} 49 return mock 50 } 51 52 // EXPECT returns an object that allows the caller to indicate expected use. 53 func (m *MockTChanCluster) EXPECT() *MockTChanClusterMockRecorder { 54 return m.recorder 55 } 56 57 // Aggregate mocks base method. 58 func (m *MockTChanCluster) Aggregate(ctx thrift.Context, req *AggregateQueryRequest) (*AggregateQueryResult_, error) { 59 m.ctrl.T.Helper() 60 ret := m.ctrl.Call(m, "Aggregate", ctx, req) 61 ret0, _ := ret[0].(*AggregateQueryResult_) 62 ret1, _ := ret[1].(error) 63 return ret0, ret1 64 } 65 66 // Aggregate indicates an expected call of Aggregate. 67 func (mr *MockTChanClusterMockRecorder) Aggregate(ctx, req interface{}) *gomock.Call { 68 mr.mock.ctrl.T.Helper() 69 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Aggregate", reflect.TypeOf((*MockTChanCluster)(nil).Aggregate), ctx, req) 70 } 71 72 // Fetch mocks base method. 73 func (m *MockTChanCluster) Fetch(ctx thrift.Context, req *FetchRequest) (*FetchResult_, error) { 74 m.ctrl.T.Helper() 75 ret := m.ctrl.Call(m, "Fetch", ctx, req) 76 ret0, _ := ret[0].(*FetchResult_) 77 ret1, _ := ret[1].(error) 78 return ret0, ret1 79 } 80 81 // Fetch indicates an expected call of Fetch. 82 func (mr *MockTChanClusterMockRecorder) Fetch(ctx, req interface{}) *gomock.Call { 83 mr.mock.ctrl.T.Helper() 84 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Fetch", reflect.TypeOf((*MockTChanCluster)(nil).Fetch), ctx, req) 85 } 86 87 // Health mocks base method. 88 func (m *MockTChanCluster) Health(ctx thrift.Context) (*HealthResult_, error) { 89 m.ctrl.T.Helper() 90 ret := m.ctrl.Call(m, "Health", ctx) 91 ret0, _ := ret[0].(*HealthResult_) 92 ret1, _ := ret[1].(error) 93 return ret0, ret1 94 } 95 96 // Health indicates an expected call of Health. 97 func (mr *MockTChanClusterMockRecorder) Health(ctx interface{}) *gomock.Call { 98 mr.mock.ctrl.T.Helper() 99 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Health", reflect.TypeOf((*MockTChanCluster)(nil).Health), ctx) 100 } 101 102 // Query mocks base method. 103 func (m *MockTChanCluster) Query(ctx thrift.Context, req *QueryRequest) (*QueryResult_, error) { 104 m.ctrl.T.Helper() 105 ret := m.ctrl.Call(m, "Query", ctx, req) 106 ret0, _ := ret[0].(*QueryResult_) 107 ret1, _ := ret[1].(error) 108 return ret0, ret1 109 } 110 111 // Query indicates an expected call of Query. 112 func (mr *MockTChanClusterMockRecorder) Query(ctx, req interface{}) *gomock.Call { 113 mr.mock.ctrl.T.Helper() 114 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Query", reflect.TypeOf((*MockTChanCluster)(nil).Query), ctx, req) 115 } 116 117 // Truncate mocks base method. 118 func (m *MockTChanCluster) Truncate(ctx thrift.Context, req *TruncateRequest) (*TruncateResult_, error) { 119 m.ctrl.T.Helper() 120 ret := m.ctrl.Call(m, "Truncate", ctx, req) 121 ret0, _ := ret[0].(*TruncateResult_) 122 ret1, _ := ret[1].(error) 123 return ret0, ret1 124 } 125 126 // Truncate indicates an expected call of Truncate. 127 func (mr *MockTChanClusterMockRecorder) Truncate(ctx, req interface{}) *gomock.Call { 128 mr.mock.ctrl.T.Helper() 129 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Truncate", reflect.TypeOf((*MockTChanCluster)(nil).Truncate), ctx, req) 130 } 131 132 // Write mocks base method. 133 func (m *MockTChanCluster) Write(ctx thrift.Context, req *WriteRequest) error { 134 m.ctrl.T.Helper() 135 ret := m.ctrl.Call(m, "Write", ctx, req) 136 ret0, _ := ret[0].(error) 137 return ret0 138 } 139 140 // Write indicates an expected call of Write. 141 func (mr *MockTChanClusterMockRecorder) Write(ctx, req interface{}) *gomock.Call { 142 mr.mock.ctrl.T.Helper() 143 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Write", reflect.TypeOf((*MockTChanCluster)(nil).Write), ctx, req) 144 } 145 146 // WriteTagged mocks base method. 147 func (m *MockTChanCluster) WriteTagged(ctx thrift.Context, req *WriteTaggedRequest) error { 148 m.ctrl.T.Helper() 149 ret := m.ctrl.Call(m, "WriteTagged", ctx, req) 150 ret0, _ := ret[0].(error) 151 return ret0 152 } 153 154 // WriteTagged indicates an expected call of WriteTagged. 155 func (mr *MockTChanClusterMockRecorder) WriteTagged(ctx, req interface{}) *gomock.Call { 156 mr.mock.ctrl.T.Helper() 157 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "WriteTagged", reflect.TypeOf((*MockTChanCluster)(nil).WriteTagged), ctx, req) 158 } 159 160 // MockTChanNode is a mock of TChanNode interface. 161 type MockTChanNode struct { 162 ctrl *gomock.Controller 163 recorder *MockTChanNodeMockRecorder 164 } 165 166 // MockTChanNodeMockRecorder is the mock recorder for MockTChanNode. 167 type MockTChanNodeMockRecorder struct { 168 mock *MockTChanNode 169 } 170 171 // NewMockTChanNode creates a new mock instance. 172 func NewMockTChanNode(ctrl *gomock.Controller) *MockTChanNode { 173 mock := &MockTChanNode{ctrl: ctrl} 174 mock.recorder = &MockTChanNodeMockRecorder{mock} 175 return mock 176 } 177 178 // EXPECT returns an object that allows the caller to indicate expected use. 179 func (m *MockTChanNode) EXPECT() *MockTChanNodeMockRecorder { 180 return m.recorder 181 } 182 183 // Aggregate mocks base method. 184 func (m *MockTChanNode) Aggregate(ctx thrift.Context, req *AggregateQueryRequest) (*AggregateQueryResult_, error) { 185 m.ctrl.T.Helper() 186 ret := m.ctrl.Call(m, "Aggregate", ctx, req) 187 ret0, _ := ret[0].(*AggregateQueryResult_) 188 ret1, _ := ret[1].(error) 189 return ret0, ret1 190 } 191 192 // Aggregate indicates an expected call of Aggregate. 193 func (mr *MockTChanNodeMockRecorder) Aggregate(ctx, req interface{}) *gomock.Call { 194 mr.mock.ctrl.T.Helper() 195 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Aggregate", reflect.TypeOf((*MockTChanNode)(nil).Aggregate), ctx, req) 196 } 197 198 // AggregateRaw mocks base method. 199 func (m *MockTChanNode) AggregateRaw(ctx thrift.Context, req *AggregateQueryRawRequest) (*AggregateQueryRawResult_, error) { 200 m.ctrl.T.Helper() 201 ret := m.ctrl.Call(m, "AggregateRaw", ctx, req) 202 ret0, _ := ret[0].(*AggregateQueryRawResult_) 203 ret1, _ := ret[1].(error) 204 return ret0, ret1 205 } 206 207 // AggregateRaw indicates an expected call of AggregateRaw. 208 func (mr *MockTChanNodeMockRecorder) AggregateRaw(ctx, req interface{}) *gomock.Call { 209 mr.mock.ctrl.T.Helper() 210 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AggregateRaw", reflect.TypeOf((*MockTChanNode)(nil).AggregateRaw), ctx, req) 211 } 212 213 // AggregateTiles mocks base method. 214 func (m *MockTChanNode) AggregateTiles(ctx thrift.Context, req *AggregateTilesRequest) (*AggregateTilesResult_, error) { 215 m.ctrl.T.Helper() 216 ret := m.ctrl.Call(m, "AggregateTiles", ctx, req) 217 ret0, _ := ret[0].(*AggregateTilesResult_) 218 ret1, _ := ret[1].(error) 219 return ret0, ret1 220 } 221 222 // AggregateTiles indicates an expected call of AggregateTiles. 223 func (mr *MockTChanNodeMockRecorder) AggregateTiles(ctx, req interface{}) *gomock.Call { 224 mr.mock.ctrl.T.Helper() 225 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AggregateTiles", reflect.TypeOf((*MockTChanNode)(nil).AggregateTiles), ctx, req) 226 } 227 228 // Bootstrapped mocks base method. 229 func (m *MockTChanNode) Bootstrapped(ctx thrift.Context) (*NodeBootstrappedResult_, error) { 230 m.ctrl.T.Helper() 231 ret := m.ctrl.Call(m, "Bootstrapped", ctx) 232 ret0, _ := ret[0].(*NodeBootstrappedResult_) 233 ret1, _ := ret[1].(error) 234 return ret0, ret1 235 } 236 237 // Bootstrapped indicates an expected call of Bootstrapped. 238 func (mr *MockTChanNodeMockRecorder) Bootstrapped(ctx interface{}) *gomock.Call { 239 mr.mock.ctrl.T.Helper() 240 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Bootstrapped", reflect.TypeOf((*MockTChanNode)(nil).Bootstrapped), ctx) 241 } 242 243 // BootstrappedInPlacementOrNoPlacement mocks base method. 244 func (m *MockTChanNode) BootstrappedInPlacementOrNoPlacement(ctx thrift.Context) (*NodeBootstrappedInPlacementOrNoPlacementResult_, error) { 245 m.ctrl.T.Helper() 246 ret := m.ctrl.Call(m, "BootstrappedInPlacementOrNoPlacement", ctx) 247 ret0, _ := ret[0].(*NodeBootstrappedInPlacementOrNoPlacementResult_) 248 ret1, _ := ret[1].(error) 249 return ret0, ret1 250 } 251 252 // BootstrappedInPlacementOrNoPlacement indicates an expected call of BootstrappedInPlacementOrNoPlacement. 253 func (mr *MockTChanNodeMockRecorder) BootstrappedInPlacementOrNoPlacement(ctx interface{}) *gomock.Call { 254 mr.mock.ctrl.T.Helper() 255 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "BootstrappedInPlacementOrNoPlacement", reflect.TypeOf((*MockTChanNode)(nil).BootstrappedInPlacementOrNoPlacement), ctx) 256 } 257 258 // DebugIndexMemorySegments mocks base method. 259 func (m *MockTChanNode) DebugIndexMemorySegments(ctx thrift.Context, req *DebugIndexMemorySegmentsRequest) (*DebugIndexMemorySegmentsResult_, error) { 260 m.ctrl.T.Helper() 261 ret := m.ctrl.Call(m, "DebugIndexMemorySegments", ctx, req) 262 ret0, _ := ret[0].(*DebugIndexMemorySegmentsResult_) 263 ret1, _ := ret[1].(error) 264 return ret0, ret1 265 } 266 267 // DebugIndexMemorySegments indicates an expected call of DebugIndexMemorySegments. 268 func (mr *MockTChanNodeMockRecorder) DebugIndexMemorySegments(ctx, req interface{}) *gomock.Call { 269 mr.mock.ctrl.T.Helper() 270 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DebugIndexMemorySegments", reflect.TypeOf((*MockTChanNode)(nil).DebugIndexMemorySegments), ctx, req) 271 } 272 273 // DebugProfileStart mocks base method. 274 func (m *MockTChanNode) DebugProfileStart(ctx thrift.Context, req *DebugProfileStartRequest) (*DebugProfileStartResult_, error) { 275 m.ctrl.T.Helper() 276 ret := m.ctrl.Call(m, "DebugProfileStart", ctx, req) 277 ret0, _ := ret[0].(*DebugProfileStartResult_) 278 ret1, _ := ret[1].(error) 279 return ret0, ret1 280 } 281 282 // DebugProfileStart indicates an expected call of DebugProfileStart. 283 func (mr *MockTChanNodeMockRecorder) DebugProfileStart(ctx, req interface{}) *gomock.Call { 284 mr.mock.ctrl.T.Helper() 285 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DebugProfileStart", reflect.TypeOf((*MockTChanNode)(nil).DebugProfileStart), ctx, req) 286 } 287 288 // DebugProfileStop mocks base method. 289 func (m *MockTChanNode) DebugProfileStop(ctx thrift.Context, req *DebugProfileStopRequest) (*DebugProfileStopResult_, error) { 290 m.ctrl.T.Helper() 291 ret := m.ctrl.Call(m, "DebugProfileStop", ctx, req) 292 ret0, _ := ret[0].(*DebugProfileStopResult_) 293 ret1, _ := ret[1].(error) 294 return ret0, ret1 295 } 296 297 // DebugProfileStop indicates an expected call of DebugProfileStop. 298 func (mr *MockTChanNodeMockRecorder) DebugProfileStop(ctx, req interface{}) *gomock.Call { 299 mr.mock.ctrl.T.Helper() 300 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DebugProfileStop", reflect.TypeOf((*MockTChanNode)(nil).DebugProfileStop), ctx, req) 301 } 302 303 // Fetch mocks base method. 304 func (m *MockTChanNode) Fetch(ctx thrift.Context, req *FetchRequest) (*FetchResult_, error) { 305 m.ctrl.T.Helper() 306 ret := m.ctrl.Call(m, "Fetch", ctx, req) 307 ret0, _ := ret[0].(*FetchResult_) 308 ret1, _ := ret[1].(error) 309 return ret0, ret1 310 } 311 312 // Fetch indicates an expected call of Fetch. 313 func (mr *MockTChanNodeMockRecorder) Fetch(ctx, req interface{}) *gomock.Call { 314 mr.mock.ctrl.T.Helper() 315 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Fetch", reflect.TypeOf((*MockTChanNode)(nil).Fetch), ctx, req) 316 } 317 318 // FetchBatchRaw mocks base method. 319 func (m *MockTChanNode) FetchBatchRaw(ctx thrift.Context, req *FetchBatchRawRequest) (*FetchBatchRawResult_, error) { 320 m.ctrl.T.Helper() 321 ret := m.ctrl.Call(m, "FetchBatchRaw", ctx, req) 322 ret0, _ := ret[0].(*FetchBatchRawResult_) 323 ret1, _ := ret[1].(error) 324 return ret0, ret1 325 } 326 327 // FetchBatchRaw indicates an expected call of FetchBatchRaw. 328 func (mr *MockTChanNodeMockRecorder) FetchBatchRaw(ctx, req interface{}) *gomock.Call { 329 mr.mock.ctrl.T.Helper() 330 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "FetchBatchRaw", reflect.TypeOf((*MockTChanNode)(nil).FetchBatchRaw), ctx, req) 331 } 332 333 // FetchBatchRawV2 mocks base method. 334 func (m *MockTChanNode) FetchBatchRawV2(ctx thrift.Context, req *FetchBatchRawV2Request) (*FetchBatchRawResult_, error) { 335 m.ctrl.T.Helper() 336 ret := m.ctrl.Call(m, "FetchBatchRawV2", ctx, req) 337 ret0, _ := ret[0].(*FetchBatchRawResult_) 338 ret1, _ := ret[1].(error) 339 return ret0, ret1 340 } 341 342 // FetchBatchRawV2 indicates an expected call of FetchBatchRawV2. 343 func (mr *MockTChanNodeMockRecorder) FetchBatchRawV2(ctx, req interface{}) *gomock.Call { 344 mr.mock.ctrl.T.Helper() 345 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "FetchBatchRawV2", reflect.TypeOf((*MockTChanNode)(nil).FetchBatchRawV2), ctx, req) 346 } 347 348 // FetchBlocksMetadataRawV2 mocks base method. 349 func (m *MockTChanNode) FetchBlocksMetadataRawV2(ctx thrift.Context, req *FetchBlocksMetadataRawV2Request) (*FetchBlocksMetadataRawV2Result_, error) { 350 m.ctrl.T.Helper() 351 ret := m.ctrl.Call(m, "FetchBlocksMetadataRawV2", ctx, req) 352 ret0, _ := ret[0].(*FetchBlocksMetadataRawV2Result_) 353 ret1, _ := ret[1].(error) 354 return ret0, ret1 355 } 356 357 // FetchBlocksMetadataRawV2 indicates an expected call of FetchBlocksMetadataRawV2. 358 func (mr *MockTChanNodeMockRecorder) FetchBlocksMetadataRawV2(ctx, req interface{}) *gomock.Call { 359 mr.mock.ctrl.T.Helper() 360 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "FetchBlocksMetadataRawV2", reflect.TypeOf((*MockTChanNode)(nil).FetchBlocksMetadataRawV2), ctx, req) 361 } 362 363 // FetchBlocksRaw mocks base method. 364 func (m *MockTChanNode) FetchBlocksRaw(ctx thrift.Context, req *FetchBlocksRawRequest) (*FetchBlocksRawResult_, error) { 365 m.ctrl.T.Helper() 366 ret := m.ctrl.Call(m, "FetchBlocksRaw", ctx, req) 367 ret0, _ := ret[0].(*FetchBlocksRawResult_) 368 ret1, _ := ret[1].(error) 369 return ret0, ret1 370 } 371 372 // FetchBlocksRaw indicates an expected call of FetchBlocksRaw. 373 func (mr *MockTChanNodeMockRecorder) FetchBlocksRaw(ctx, req interface{}) *gomock.Call { 374 mr.mock.ctrl.T.Helper() 375 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "FetchBlocksRaw", reflect.TypeOf((*MockTChanNode)(nil).FetchBlocksRaw), ctx, req) 376 } 377 378 // FetchTagged mocks base method. 379 func (m *MockTChanNode) FetchTagged(ctx thrift.Context, req *FetchTaggedRequest) (*FetchTaggedResult_, error) { 380 m.ctrl.T.Helper() 381 ret := m.ctrl.Call(m, "FetchTagged", ctx, req) 382 ret0, _ := ret[0].(*FetchTaggedResult_) 383 ret1, _ := ret[1].(error) 384 return ret0, ret1 385 } 386 387 // FetchTagged indicates an expected call of FetchTagged. 388 func (mr *MockTChanNodeMockRecorder) FetchTagged(ctx, req interface{}) *gomock.Call { 389 mr.mock.ctrl.T.Helper() 390 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "FetchTagged", reflect.TypeOf((*MockTChanNode)(nil).FetchTagged), ctx, req) 391 } 392 393 // GetPersistRateLimit mocks base method. 394 func (m *MockTChanNode) GetPersistRateLimit(ctx thrift.Context) (*NodePersistRateLimitResult_, error) { 395 m.ctrl.T.Helper() 396 ret := m.ctrl.Call(m, "GetPersistRateLimit", ctx) 397 ret0, _ := ret[0].(*NodePersistRateLimitResult_) 398 ret1, _ := ret[1].(error) 399 return ret0, ret1 400 } 401 402 // GetPersistRateLimit indicates an expected call of GetPersistRateLimit. 403 func (mr *MockTChanNodeMockRecorder) GetPersistRateLimit(ctx interface{}) *gomock.Call { 404 mr.mock.ctrl.T.Helper() 405 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetPersistRateLimit", reflect.TypeOf((*MockTChanNode)(nil).GetPersistRateLimit), ctx) 406 } 407 408 // GetWriteNewSeriesAsync mocks base method. 409 func (m *MockTChanNode) GetWriteNewSeriesAsync(ctx thrift.Context) (*NodeWriteNewSeriesAsyncResult_, error) { 410 m.ctrl.T.Helper() 411 ret := m.ctrl.Call(m, "GetWriteNewSeriesAsync", ctx) 412 ret0, _ := ret[0].(*NodeWriteNewSeriesAsyncResult_) 413 ret1, _ := ret[1].(error) 414 return ret0, ret1 415 } 416 417 // GetWriteNewSeriesAsync indicates an expected call of GetWriteNewSeriesAsync. 418 func (mr *MockTChanNodeMockRecorder) GetWriteNewSeriesAsync(ctx interface{}) *gomock.Call { 419 mr.mock.ctrl.T.Helper() 420 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetWriteNewSeriesAsync", reflect.TypeOf((*MockTChanNode)(nil).GetWriteNewSeriesAsync), ctx) 421 } 422 423 // GetWriteNewSeriesBackoffDuration mocks base method. 424 func (m *MockTChanNode) GetWriteNewSeriesBackoffDuration(ctx thrift.Context) (*NodeWriteNewSeriesBackoffDurationResult_, error) { 425 m.ctrl.T.Helper() 426 ret := m.ctrl.Call(m, "GetWriteNewSeriesBackoffDuration", ctx) 427 ret0, _ := ret[0].(*NodeWriteNewSeriesBackoffDurationResult_) 428 ret1, _ := ret[1].(error) 429 return ret0, ret1 430 } 431 432 // GetWriteNewSeriesBackoffDuration indicates an expected call of GetWriteNewSeriesBackoffDuration. 433 func (mr *MockTChanNodeMockRecorder) GetWriteNewSeriesBackoffDuration(ctx interface{}) *gomock.Call { 434 mr.mock.ctrl.T.Helper() 435 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetWriteNewSeriesBackoffDuration", reflect.TypeOf((*MockTChanNode)(nil).GetWriteNewSeriesBackoffDuration), ctx) 436 } 437 438 // GetWriteNewSeriesLimitPerShardPerSecond mocks base method. 439 func (m *MockTChanNode) GetWriteNewSeriesLimitPerShardPerSecond(ctx thrift.Context) (*NodeWriteNewSeriesLimitPerShardPerSecondResult_, error) { 440 m.ctrl.T.Helper() 441 ret := m.ctrl.Call(m, "GetWriteNewSeriesLimitPerShardPerSecond", ctx) 442 ret0, _ := ret[0].(*NodeWriteNewSeriesLimitPerShardPerSecondResult_) 443 ret1, _ := ret[1].(error) 444 return ret0, ret1 445 } 446 447 // GetWriteNewSeriesLimitPerShardPerSecond indicates an expected call of GetWriteNewSeriesLimitPerShardPerSecond. 448 func (mr *MockTChanNodeMockRecorder) GetWriteNewSeriesLimitPerShardPerSecond(ctx interface{}) *gomock.Call { 449 mr.mock.ctrl.T.Helper() 450 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetWriteNewSeriesLimitPerShardPerSecond", reflect.TypeOf((*MockTChanNode)(nil).GetWriteNewSeriesLimitPerShardPerSecond), ctx) 451 } 452 453 // Health mocks base method. 454 func (m *MockTChanNode) Health(ctx thrift.Context) (*NodeHealthResult_, error) { 455 m.ctrl.T.Helper() 456 ret := m.ctrl.Call(m, "Health", ctx) 457 ret0, _ := ret[0].(*NodeHealthResult_) 458 ret1, _ := ret[1].(error) 459 return ret0, ret1 460 } 461 462 // Health indicates an expected call of Health. 463 func (mr *MockTChanNodeMockRecorder) Health(ctx interface{}) *gomock.Call { 464 mr.mock.ctrl.T.Helper() 465 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Health", reflect.TypeOf((*MockTChanNode)(nil).Health), ctx) 466 } 467 468 // Query mocks base method. 469 func (m *MockTChanNode) Query(ctx thrift.Context, req *QueryRequest) (*QueryResult_, error) { 470 m.ctrl.T.Helper() 471 ret := m.ctrl.Call(m, "Query", ctx, req) 472 ret0, _ := ret[0].(*QueryResult_) 473 ret1, _ := ret[1].(error) 474 return ret0, ret1 475 } 476 477 // Query indicates an expected call of Query. 478 func (mr *MockTChanNodeMockRecorder) Query(ctx, req interface{}) *gomock.Call { 479 mr.mock.ctrl.T.Helper() 480 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Query", reflect.TypeOf((*MockTChanNode)(nil).Query), ctx, req) 481 } 482 483 // Repair mocks base method. 484 func (m *MockTChanNode) Repair(ctx thrift.Context) error { 485 m.ctrl.T.Helper() 486 ret := m.ctrl.Call(m, "Repair", ctx) 487 ret0, _ := ret[0].(error) 488 return ret0 489 } 490 491 // Repair indicates an expected call of Repair. 492 func (mr *MockTChanNodeMockRecorder) Repair(ctx interface{}) *gomock.Call { 493 mr.mock.ctrl.T.Helper() 494 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Repair", reflect.TypeOf((*MockTChanNode)(nil).Repair), ctx) 495 } 496 497 // SetPersistRateLimit mocks base method. 498 func (m *MockTChanNode) SetPersistRateLimit(ctx thrift.Context, req *NodeSetPersistRateLimitRequest) (*NodePersistRateLimitResult_, error) { 499 m.ctrl.T.Helper() 500 ret := m.ctrl.Call(m, "SetPersistRateLimit", ctx, req) 501 ret0, _ := ret[0].(*NodePersistRateLimitResult_) 502 ret1, _ := ret[1].(error) 503 return ret0, ret1 504 } 505 506 // SetPersistRateLimit indicates an expected call of SetPersistRateLimit. 507 func (mr *MockTChanNodeMockRecorder) SetPersistRateLimit(ctx, req interface{}) *gomock.Call { 508 mr.mock.ctrl.T.Helper() 509 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetPersistRateLimit", reflect.TypeOf((*MockTChanNode)(nil).SetPersistRateLimit), ctx, req) 510 } 511 512 // SetWriteNewSeriesAsync mocks base method. 513 func (m *MockTChanNode) SetWriteNewSeriesAsync(ctx thrift.Context, req *NodeSetWriteNewSeriesAsyncRequest) (*NodeWriteNewSeriesAsyncResult_, error) { 514 m.ctrl.T.Helper() 515 ret := m.ctrl.Call(m, "SetWriteNewSeriesAsync", ctx, req) 516 ret0, _ := ret[0].(*NodeWriteNewSeriesAsyncResult_) 517 ret1, _ := ret[1].(error) 518 return ret0, ret1 519 } 520 521 // SetWriteNewSeriesAsync indicates an expected call of SetWriteNewSeriesAsync. 522 func (mr *MockTChanNodeMockRecorder) SetWriteNewSeriesAsync(ctx, req interface{}) *gomock.Call { 523 mr.mock.ctrl.T.Helper() 524 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetWriteNewSeriesAsync", reflect.TypeOf((*MockTChanNode)(nil).SetWriteNewSeriesAsync), ctx, req) 525 } 526 527 // SetWriteNewSeriesBackoffDuration mocks base method. 528 func (m *MockTChanNode) SetWriteNewSeriesBackoffDuration(ctx thrift.Context, req *NodeSetWriteNewSeriesBackoffDurationRequest) (*NodeWriteNewSeriesBackoffDurationResult_, error) { 529 m.ctrl.T.Helper() 530 ret := m.ctrl.Call(m, "SetWriteNewSeriesBackoffDuration", ctx, req) 531 ret0, _ := ret[0].(*NodeWriteNewSeriesBackoffDurationResult_) 532 ret1, _ := ret[1].(error) 533 return ret0, ret1 534 } 535 536 // SetWriteNewSeriesBackoffDuration indicates an expected call of SetWriteNewSeriesBackoffDuration. 537 func (mr *MockTChanNodeMockRecorder) SetWriteNewSeriesBackoffDuration(ctx, req interface{}) *gomock.Call { 538 mr.mock.ctrl.T.Helper() 539 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetWriteNewSeriesBackoffDuration", reflect.TypeOf((*MockTChanNode)(nil).SetWriteNewSeriesBackoffDuration), ctx, req) 540 } 541 542 // SetWriteNewSeriesLimitPerShardPerSecond mocks base method. 543 func (m *MockTChanNode) SetWriteNewSeriesLimitPerShardPerSecond(ctx thrift.Context, req *NodeSetWriteNewSeriesLimitPerShardPerSecondRequest) (*NodeWriteNewSeriesLimitPerShardPerSecondResult_, error) { 544 m.ctrl.T.Helper() 545 ret := m.ctrl.Call(m, "SetWriteNewSeriesLimitPerShardPerSecond", ctx, req) 546 ret0, _ := ret[0].(*NodeWriteNewSeriesLimitPerShardPerSecondResult_) 547 ret1, _ := ret[1].(error) 548 return ret0, ret1 549 } 550 551 // SetWriteNewSeriesLimitPerShardPerSecond indicates an expected call of SetWriteNewSeriesLimitPerShardPerSecond. 552 func (mr *MockTChanNodeMockRecorder) SetWriteNewSeriesLimitPerShardPerSecond(ctx, req interface{}) *gomock.Call { 553 mr.mock.ctrl.T.Helper() 554 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetWriteNewSeriesLimitPerShardPerSecond", reflect.TypeOf((*MockTChanNode)(nil).SetWriteNewSeriesLimitPerShardPerSecond), ctx, req) 555 } 556 557 // Truncate mocks base method. 558 func (m *MockTChanNode) Truncate(ctx thrift.Context, req *TruncateRequest) (*TruncateResult_, error) { 559 m.ctrl.T.Helper() 560 ret := m.ctrl.Call(m, "Truncate", ctx, req) 561 ret0, _ := ret[0].(*TruncateResult_) 562 ret1, _ := ret[1].(error) 563 return ret0, ret1 564 } 565 566 // Truncate indicates an expected call of Truncate. 567 func (mr *MockTChanNodeMockRecorder) Truncate(ctx, req interface{}) *gomock.Call { 568 mr.mock.ctrl.T.Helper() 569 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Truncate", reflect.TypeOf((*MockTChanNode)(nil).Truncate), ctx, req) 570 } 571 572 // Write mocks base method. 573 func (m *MockTChanNode) Write(ctx thrift.Context, req *WriteRequest) error { 574 m.ctrl.T.Helper() 575 ret := m.ctrl.Call(m, "Write", ctx, req) 576 ret0, _ := ret[0].(error) 577 return ret0 578 } 579 580 // Write indicates an expected call of Write. 581 func (mr *MockTChanNodeMockRecorder) Write(ctx, req interface{}) *gomock.Call { 582 mr.mock.ctrl.T.Helper() 583 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Write", reflect.TypeOf((*MockTChanNode)(nil).Write), ctx, req) 584 } 585 586 // WriteBatchRaw mocks base method. 587 func (m *MockTChanNode) WriteBatchRaw(ctx thrift.Context, req *WriteBatchRawRequest) error { 588 m.ctrl.T.Helper() 589 ret := m.ctrl.Call(m, "WriteBatchRaw", ctx, req) 590 ret0, _ := ret[0].(error) 591 return ret0 592 } 593 594 // WriteBatchRaw indicates an expected call of WriteBatchRaw. 595 func (mr *MockTChanNodeMockRecorder) WriteBatchRaw(ctx, req interface{}) *gomock.Call { 596 mr.mock.ctrl.T.Helper() 597 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "WriteBatchRaw", reflect.TypeOf((*MockTChanNode)(nil).WriteBatchRaw), ctx, req) 598 } 599 600 // WriteBatchRawV2 mocks base method. 601 func (m *MockTChanNode) WriteBatchRawV2(ctx thrift.Context, req *WriteBatchRawV2Request) error { 602 m.ctrl.T.Helper() 603 ret := m.ctrl.Call(m, "WriteBatchRawV2", ctx, req) 604 ret0, _ := ret[0].(error) 605 return ret0 606 } 607 608 // WriteBatchRawV2 indicates an expected call of WriteBatchRawV2. 609 func (mr *MockTChanNodeMockRecorder) WriteBatchRawV2(ctx, req interface{}) *gomock.Call { 610 mr.mock.ctrl.T.Helper() 611 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "WriteBatchRawV2", reflect.TypeOf((*MockTChanNode)(nil).WriteBatchRawV2), ctx, req) 612 } 613 614 // WriteTagged mocks base method. 615 func (m *MockTChanNode) WriteTagged(ctx thrift.Context, req *WriteTaggedRequest) error { 616 m.ctrl.T.Helper() 617 ret := m.ctrl.Call(m, "WriteTagged", ctx, req) 618 ret0, _ := ret[0].(error) 619 return ret0 620 } 621 622 // WriteTagged indicates an expected call of WriteTagged. 623 func (mr *MockTChanNodeMockRecorder) WriteTagged(ctx, req interface{}) *gomock.Call { 624 mr.mock.ctrl.T.Helper() 625 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "WriteTagged", reflect.TypeOf((*MockTChanNode)(nil).WriteTagged), ctx, req) 626 } 627 628 // WriteTaggedBatchRaw mocks base method. 629 func (m *MockTChanNode) WriteTaggedBatchRaw(ctx thrift.Context, req *WriteTaggedBatchRawRequest) error { 630 m.ctrl.T.Helper() 631 ret := m.ctrl.Call(m, "WriteTaggedBatchRaw", ctx, req) 632 ret0, _ := ret[0].(error) 633 return ret0 634 } 635 636 // WriteTaggedBatchRaw indicates an expected call of WriteTaggedBatchRaw. 637 func (mr *MockTChanNodeMockRecorder) WriteTaggedBatchRaw(ctx, req interface{}) *gomock.Call { 638 mr.mock.ctrl.T.Helper() 639 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "WriteTaggedBatchRaw", reflect.TypeOf((*MockTChanNode)(nil).WriteTaggedBatchRaw), ctx, req) 640 } 641 642 // WriteTaggedBatchRawV2 mocks base method. 643 func (m *MockTChanNode) WriteTaggedBatchRawV2(ctx thrift.Context, req *WriteTaggedBatchRawV2Request) error { 644 m.ctrl.T.Helper() 645 ret := m.ctrl.Call(m, "WriteTaggedBatchRawV2", ctx, req) 646 ret0, _ := ret[0].(error) 647 return ret0 648 } 649 650 // WriteTaggedBatchRawV2 indicates an expected call of WriteTaggedBatchRawV2. 651 func (mr *MockTChanNodeMockRecorder) WriteTaggedBatchRawV2(ctx, req interface{}) *gomock.Call { 652 mr.mock.ctrl.T.Helper() 653 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "WriteTaggedBatchRawV2", reflect.TypeOf((*MockTChanNode)(nil).WriteTaggedBatchRawV2), ctx, req) 654 }