connection

package
v0.0.0-...-dabc275 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 15, 2020 License: MIT Imports: 4 Imported by: 0

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

Connect mocks base method

func (*MockConnectionInterface) EXPECT

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

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

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

Channel indicates an expected call of Channel

func (*MockRConnectionInterfaceMockRecorder) Close

Close indicates an expected call of Close

type RConnectionInterface

type RConnectionInterface interface {
	Channel() (*amqp.Channel, error)
	Close() error
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL