Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Exchange ¶
type Exchange struct { Name string Type string Durable bool AutoDeleted bool Internal bool NoWait bool Arguments amqp.Table }
Exchange defines a wrapper for a RabbitMQ exchange specification.
type QueueDeclare ¶
type QueueDeclare struct { Name string Durable bool AutoDeleted bool Exclusive bool NoWait bool Arguments amqp.Table }
QueueDeclare defines a wrapper for a RabbitMQ queue specification.
type Receiver ¶
type Receiver struct {
// contains filtered or unexported fields
}
Receiver defines the information required to connect to the RabbitMQ instance.
func NewReceiver ¶
func NewReceiver( uri string, exchange Exchange, queue QueueDeclare, consumerTag string) *Receiver
NewReceiver creates a new instance of a Receiver with the RabbitMQ connection uri, the general exchange and queue specification that contains the data to consume.
Click to show internal directories.
Click to hide internal directories.