Documentation
¶
Index ¶
- func BindQueue(t *testing.T, channel *amqp.Channel, name, key, exchange string)
- func Channel(t *testing.T, conn *amqp.Connection) *amqp.Channel
- func Connection(t *testing.T) *amqp.Connection
- func DeclareExchange(t *testing.T, channel *amqp.Channel, name string, ...)
- func DeclareQueue(t *testing.T, channel *amqp.Channel, name string, ops ...func(p *QueueParams))
- func NewClient(t *testing.T, ops ...gorabbit.Option) *gorabbit.Client
- type ExchangeParams
- type QueueParams
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BindQueue ¶
BindQueue binds queue to exchange using routing key. Unbinds queue on test cleanup.
func Connection ¶
func Connection(t *testing.T) *amqp.Connection
Connection opens a new connection to RabbitMQ. Closes the connection on test cleanup.
func DeclareExchange ¶
func DeclareExchange(t *testing.T, channel *amqp.Channel, name string, ops ...func(p *ExchangeParams))
DeclareExchange is a test helper to declare an exchange. By default, creates durable topic exchange. Exchange declaring parameters can be overwritten using ops. Deletes the exchange on test cleanup.
func DeclareQueue ¶
DeclareQueue is a test helper to declare a queue. Queue declaring parameters can be overwritten using ops. Deletes the queue on test cleanup.
Types ¶
Click to show internal directories.
Click to hide internal directories.