/
proxy.go
85 lines (71 loc) · 2.44 KB
/
proxy.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
// Code generated by MockGen. DO NOT EDIT.
// Source: partition.go
// Package mock is a generated GoMock package.
package mock
import (
gomock "github.com/golang/mock/gomock"
reflect "reflect"
)
// MockkafkaProxy is a mock of kafkaProxy interface
type MockkafkaProxy struct {
ctrl *gomock.Controller
recorder *MockkafkaProxyMockRecorder
}
// MockkafkaProxyMockRecorder is the mock recorder for MockkafkaProxy
type MockkafkaProxyMockRecorder struct {
mock *MockkafkaProxy
}
// NewMockkafkaProxy creates a new mock instance
func NewMockkafkaProxy(ctrl *gomock.Controller) *MockkafkaProxy {
mock := &MockkafkaProxy{ctrl: ctrl}
mock.recorder = &MockkafkaProxyMockRecorder{mock}
return mock
}
// EXPECT returns an object that allows the caller to indicate expected use
func (m *MockkafkaProxy) EXPECT() *MockkafkaProxyMockRecorder {
return m.recorder
}
// Add mocks base method
func (m *MockkafkaProxy) Add(arg0 string, arg1 int64) error {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "Add", arg0, arg1)
ret0, _ := ret[0].(error)
return ret0
}
// Add indicates an expected call of Add
func (mr *MockkafkaProxyMockRecorder) Add(arg0, arg1 interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Add", reflect.TypeOf((*MockkafkaProxy)(nil).Add), arg0, arg1)
}
// Remove mocks base method
func (m *MockkafkaProxy) Remove(arg0 string) error {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "Remove", arg0)
ret0, _ := ret[0].(error)
return ret0
}
// Remove indicates an expected call of Remove
func (mr *MockkafkaProxyMockRecorder) Remove(arg0 interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Remove", reflect.TypeOf((*MockkafkaProxy)(nil).Remove), arg0)
}
// AddGroup mocks base method
func (m *MockkafkaProxy) AddGroup() {
m.ctrl.T.Helper()
m.ctrl.Call(m, "AddGroup")
}
// AddGroup indicates an expected call of AddGroup
func (mr *MockkafkaProxyMockRecorder) AddGroup() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AddGroup", reflect.TypeOf((*MockkafkaProxy)(nil).AddGroup))
}
// Stop mocks base method
func (m *MockkafkaProxy) Stop() {
m.ctrl.T.Helper()
m.ctrl.Call(m, "Stop")
}
// Stop indicates an expected call of Stop
func (mr *MockkafkaProxyMockRecorder) Stop() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Stop", reflect.TypeOf((*MockkafkaProxy)(nil).Stop))
}