Documentation ¶
Overview ¶
Package mocks is a generated GoMock package.
Package mocks is a generated GoMock package.
Index ¶
- type MockConn
- func (m *MockConn) Close() error
- func (m *MockConn) EXPECT() *MockConnMockRecorder
- func (m *MockConn) LocalAddr() net.Addr
- func (m *MockConn) Read(arg0 []byte) (int, error)
- func (m *MockConn) RemoteAddr() net.Addr
- func (m *MockConn) SetDeadline(arg0 time.Time) error
- func (m *MockConn) SetReadDeadline(arg0 time.Time) error
- func (m *MockConn) SetWriteDeadline(arg0 time.Time) error
- func (m *MockConn) Write(arg0 []byte) (int, error)
- type MockConnMockRecorder
- func (mr *MockConnMockRecorder) Close() *gomock.Call
- func (mr *MockConnMockRecorder) LocalAddr() *gomock.Call
- func (mr *MockConnMockRecorder) Read(arg0 interface{}) *gomock.Call
- func (mr *MockConnMockRecorder) RemoteAddr() *gomock.Call
- func (mr *MockConnMockRecorder) SetDeadline(arg0 interface{}) *gomock.Call
- func (mr *MockConnMockRecorder) SetReadDeadline(arg0 interface{}) *gomock.Call
- func (mr *MockConnMockRecorder) SetWriteDeadline(arg0 interface{}) *gomock.Call
- func (mr *MockConnMockRecorder) Write(arg0 interface{}) *gomock.Call
- type MockNetDialerInterface
- func (m *MockNetDialerInterface) Dial(network, address string) (net.Conn, error)
- func (m *MockNetDialerInterface) DialTimeout(network, address string, timeout time.Duration) (net.Conn, error)
- func (m *MockNetDialerInterface) EXPECT() *MockNetDialerInterfaceMockRecorder
- func (m *MockNetDialerInterface) GetRetryLimit() int
- func (m *MockNetDialerInterface) GetTimeout() time.Duration
- type MockNetDialerInterfaceMockRecorder
- func (mr *MockNetDialerInterfaceMockRecorder) Dial(network, address interface{}) *gomock.Call
- func (mr *MockNetDialerInterfaceMockRecorder) DialTimeout(network, address, timeout interface{}) *gomock.Call
- func (mr *MockNetDialerInterfaceMockRecorder) GetRetryLimit() *gomock.Call
- func (mr *MockNetDialerInterfaceMockRecorder) GetTimeout() *gomock.Call
- type MockUpstreamServerInterface
- func (m *MockUpstreamServerInterface) DecrementConnectionCount()
- func (m *MockUpstreamServerInterface) EXPECT() *MockUpstreamServerInterfaceMockRecorder
- func (m *MockUpstreamServerInterface) GetAddress() string
- func (m *MockUpstreamServerInterface) GetConnectionCount() int
- func (m *MockUpstreamServerInterface) IncrementConnectionCount()
- func (m *MockUpstreamServerInterface) IsHealthy() bool
- func (m *MockUpstreamServerInterface) SetHealthy(healthy bool)
- type MockUpstreamServerInterfaceMockRecorder
- func (mr *MockUpstreamServerInterfaceMockRecorder) DecrementConnectionCount() *gomock.Call
- func (mr *MockUpstreamServerInterfaceMockRecorder) GetAddress() *gomock.Call
- func (mr *MockUpstreamServerInterfaceMockRecorder) GetConnectionCount() *gomock.Call
- func (mr *MockUpstreamServerInterfaceMockRecorder) IncrementConnectionCount() *gomock.Call
- func (mr *MockUpstreamServerInterfaceMockRecorder) IsHealthy() *gomock.Call
- func (mr *MockUpstreamServerInterfaceMockRecorder) SetHealthy(healthy interface{}) *gomock.Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockConn ¶
type MockConn struct {
// contains filtered or unexported fields
}
MockConn is a mock of Conn interface.
func NewMockConn ¶
func NewMockConn(ctrl *gomock.Controller) *MockConn
NewMockConn creates a new mock instance.
func (*MockConn) EXPECT ¶
func (m *MockConn) EXPECT() *MockConnMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockConn) RemoteAddr ¶
RemoteAddr mocks base method.
func (*MockConn) SetDeadline ¶
SetDeadline mocks base method.
func (*MockConn) SetReadDeadline ¶
SetReadDeadline mocks base method.
func (*MockConn) SetWriteDeadline ¶
SetWriteDeadline mocks base method.
type MockConnMockRecorder ¶
type MockConnMockRecorder struct {
// contains filtered or unexported fields
}
MockConnMockRecorder is the mock recorder for MockConn.
func (*MockConnMockRecorder) Close ¶
func (mr *MockConnMockRecorder) Close() *gomock.Call
Close indicates an expected call of Close.
func (*MockConnMockRecorder) LocalAddr ¶
func (mr *MockConnMockRecorder) LocalAddr() *gomock.Call
LocalAddr indicates an expected call of LocalAddr.
func (*MockConnMockRecorder) Read ¶
func (mr *MockConnMockRecorder) Read(arg0 interface{}) *gomock.Call
Read indicates an expected call of Read.
func (*MockConnMockRecorder) RemoteAddr ¶
func (mr *MockConnMockRecorder) RemoteAddr() *gomock.Call
RemoteAddr indicates an expected call of RemoteAddr.
func (*MockConnMockRecorder) SetDeadline ¶
func (mr *MockConnMockRecorder) SetDeadline(arg0 interface{}) *gomock.Call
SetDeadline indicates an expected call of SetDeadline.
func (*MockConnMockRecorder) SetReadDeadline ¶
func (mr *MockConnMockRecorder) SetReadDeadline(arg0 interface{}) *gomock.Call
SetReadDeadline indicates an expected call of SetReadDeadline.
func (*MockConnMockRecorder) SetWriteDeadline ¶
func (mr *MockConnMockRecorder) SetWriteDeadline(arg0 interface{}) *gomock.Call
SetWriteDeadline indicates an expected call of SetWriteDeadline.
func (*MockConnMockRecorder) Write ¶
func (mr *MockConnMockRecorder) Write(arg0 interface{}) *gomock.Call
Write indicates an expected call of Write.
type MockNetDialerInterface ¶
type MockNetDialerInterface struct {
// contains filtered or unexported fields
}
MockNetDialerInterface is a mock of NetDialerInterface interface.
func NewMockNetDialerInterface ¶
func NewMockNetDialerInterface(ctrl *gomock.Controller) *MockNetDialerInterface
NewMockNetDialerInterface creates a new mock instance.
func (*MockNetDialerInterface) Dial ¶
func (m *MockNetDialerInterface) Dial(network, address string) (net.Conn, error)
Dial mocks base method.
func (*MockNetDialerInterface) DialTimeout ¶
func (m *MockNetDialerInterface) DialTimeout(network, address string, timeout time.Duration) (net.Conn, error)
DialTimeout mocks base method.
func (*MockNetDialerInterface) EXPECT ¶
func (m *MockNetDialerInterface) EXPECT() *MockNetDialerInterfaceMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockNetDialerInterface) GetRetryLimit ¶
func (m *MockNetDialerInterface) GetRetryLimit() int
GetRetryLimit mocks base method.
func (*MockNetDialerInterface) GetTimeout ¶
func (m *MockNetDialerInterface) GetTimeout() time.Duration
GetTimeout mocks base method.
type MockNetDialerInterfaceMockRecorder ¶
type MockNetDialerInterfaceMockRecorder struct {
// contains filtered or unexported fields
}
MockNetDialerInterfaceMockRecorder is the mock recorder for MockNetDialerInterface.
func (*MockNetDialerInterfaceMockRecorder) Dial ¶
func (mr *MockNetDialerInterfaceMockRecorder) Dial(network, address interface{}) *gomock.Call
Dial indicates an expected call of Dial.
func (*MockNetDialerInterfaceMockRecorder) DialTimeout ¶
func (mr *MockNetDialerInterfaceMockRecorder) DialTimeout(network, address, timeout interface{}) *gomock.Call
DialTimeout indicates an expected call of DialTimeout.
func (*MockNetDialerInterfaceMockRecorder) GetRetryLimit ¶
func (mr *MockNetDialerInterfaceMockRecorder) GetRetryLimit() *gomock.Call
GetRetryLimit indicates an expected call of GetRetryLimit.
func (*MockNetDialerInterfaceMockRecorder) GetTimeout ¶
func (mr *MockNetDialerInterfaceMockRecorder) GetTimeout() *gomock.Call
GetTimeout indicates an expected call of GetTimeout.
type MockUpstreamServerInterface ¶
type MockUpstreamServerInterface struct {
// contains filtered or unexported fields
}
MockUpstreamServerInterface is a mock of UpstreamServerInterface interface.
func NewMockUpstreamServerInterface ¶
func NewMockUpstreamServerInterface(ctrl *gomock.Controller) *MockUpstreamServerInterface
NewMockUpstreamServerInterface creates a new mock instance.
func (*MockUpstreamServerInterface) DecrementConnectionCount ¶
func (m *MockUpstreamServerInterface) DecrementConnectionCount()
DecrementConnectionCount mocks base method.
func (*MockUpstreamServerInterface) EXPECT ¶
func (m *MockUpstreamServerInterface) EXPECT() *MockUpstreamServerInterfaceMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockUpstreamServerInterface) GetAddress ¶
func (m *MockUpstreamServerInterface) GetAddress() string
GetAddress mocks base method.
func (*MockUpstreamServerInterface) GetConnectionCount ¶
func (m *MockUpstreamServerInterface) GetConnectionCount() int
GetConnectionCount mocks base method.
func (*MockUpstreamServerInterface) IncrementConnectionCount ¶
func (m *MockUpstreamServerInterface) IncrementConnectionCount()
IncrementConnectionCount mocks base method.
func (*MockUpstreamServerInterface) IsHealthy ¶
func (m *MockUpstreamServerInterface) IsHealthy() bool
IsHealthy mocks base method.
func (*MockUpstreamServerInterface) SetHealthy ¶
func (m *MockUpstreamServerInterface) SetHealthy(healthy bool)
SetHealthy mocks base method.
type MockUpstreamServerInterfaceMockRecorder ¶
type MockUpstreamServerInterfaceMockRecorder struct {
// contains filtered or unexported fields
}
MockUpstreamServerInterfaceMockRecorder is the mock recorder for MockUpstreamServerInterface.
func (*MockUpstreamServerInterfaceMockRecorder) DecrementConnectionCount ¶
func (mr *MockUpstreamServerInterfaceMockRecorder) DecrementConnectionCount() *gomock.Call
DecrementConnectionCount indicates an expected call of DecrementConnectionCount.
func (*MockUpstreamServerInterfaceMockRecorder) GetAddress ¶
func (mr *MockUpstreamServerInterfaceMockRecorder) GetAddress() *gomock.Call
GetAddress indicates an expected call of GetAddress.
func (*MockUpstreamServerInterfaceMockRecorder) GetConnectionCount ¶
func (mr *MockUpstreamServerInterfaceMockRecorder) GetConnectionCount() *gomock.Call
GetConnectionCount indicates an expected call of GetConnectionCount.
func (*MockUpstreamServerInterfaceMockRecorder) IncrementConnectionCount ¶
func (mr *MockUpstreamServerInterfaceMockRecorder) IncrementConnectionCount() *gomock.Call
IncrementConnectionCount indicates an expected call of IncrementConnectionCount.
func (*MockUpstreamServerInterfaceMockRecorder) IsHealthy ¶
func (mr *MockUpstreamServerInterfaceMockRecorder) IsHealthy() *gomock.Call
IsHealthy indicates an expected call of IsHealthy.
func (*MockUpstreamServerInterfaceMockRecorder) SetHealthy ¶
func (mr *MockUpstreamServerInterfaceMockRecorder) SetHealthy(healthy interface{}) *gomock.Call
SetHealthy indicates an expected call of SetHealthy.