Documentation ¶
Overview ¶
Package mock_connection is a generated GoMock package.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Connection ¶
type Connection struct {
// contains filtered or unexported fields
}
func (*Connection) Close ¶
func (con *Connection) Close() error
func (*Connection) ConnectByCredentials ¶
func (con *Connection) ConnectByCredentials(credentials config.Credentials) error
func (*Connection) ConnectByDialString ¶
func (con *Connection) ConnectByDialString(url string) error
func (*Connection) GetConnector ¶
func (con *Connection) GetConnector() RConnectionInterface
type ConnectionInterface ¶
type ConnectionInterface interface { ConnectByCredentials(config.Credentials) error ConnectByDialString(string) error Close() error GetConnector() RConnectionInterface }
type MockConnectionInterface ¶
type MockConnectionInterface struct {
// contains filtered or unexported fields
}
MockConnectionInterface is a mock of ConnectionInterface interface
func NewMockConnectionInterface ¶
func NewMockConnectionInterface(ctrl *gomock.Controller) *MockConnectionInterface
NewMockConnectionInterface creates a new mock instance
func (*MockConnectionInterface) Close ¶
func (m *MockConnectionInterface) Close() error
Close mocks base method
func (*MockConnectionInterface) Connect ¶
func (m *MockConnectionInterface) Connect(arg0 config.Credentials) error
Connect mocks base method
func (*MockConnectionInterface) EXPECT ¶
func (m *MockConnectionInterface) EXPECT() *MockConnectionInterfaceMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
type MockConnectionInterfaceMockRecorder ¶
type MockConnectionInterfaceMockRecorder struct {
// contains filtered or unexported fields
}
MockConnectionInterfaceMockRecorder is the mock recorder for MockConnectionInterface
func (*MockConnectionInterfaceMockRecorder) Close ¶
func (mr *MockConnectionInterfaceMockRecorder) Close() *gomock.Call
Close indicates an expected call of Close
func (*MockConnectionInterfaceMockRecorder) Connect ¶
func (mr *MockConnectionInterfaceMockRecorder) Connect(arg0 interface{}) *gomock.Call
Connect indicates an expected call of Connect
type MockRConnectionInterface ¶
type MockRConnectionInterface struct {
// contains filtered or unexported fields
}
MockRConnectionInterface is a mock of RConnectionInterface interface
func NewMockRConnectionInterface ¶
func NewMockRConnectionInterface(ctrl *gomock.Controller) *MockRConnectionInterface
NewMockRConnectionInterface creates a new mock instance
func (*MockRConnectionInterface) Channel ¶
func (m *MockRConnectionInterface) Channel() (*amqp.Channel, error)
Channel mocks base method
func (*MockRConnectionInterface) Close ¶
func (m *MockRConnectionInterface) Close() error
Close mocks base method
func (*MockRConnectionInterface) EXPECT ¶
func (m *MockRConnectionInterface) EXPECT() *MockRConnectionInterfaceMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
type MockRConnectionInterfaceMockRecorder ¶
type MockRConnectionInterfaceMockRecorder struct {
// contains filtered or unexported fields
}
MockRConnectionInterfaceMockRecorder is the mock recorder for MockRConnectionInterface
func (*MockRConnectionInterfaceMockRecorder) Channel ¶
func (mr *MockRConnectionInterfaceMockRecorder) Channel() *gomock.Call
Channel indicates an expected call of Channel
func (*MockRConnectionInterfaceMockRecorder) Close ¶
func (mr *MockRConnectionInterfaceMockRecorder) Close() *gomock.Call
Close indicates an expected call of Close