Documentation ¶
Index ¶
- func Close(session *RabbitMQ) error
- type Events
- type Queues
- type RabbitMQ
- func (r *RabbitMQ) AddExchange(name string) error
- func (r *RabbitMQ) AddQueue(name messages.Recipient) error
- func (r *RabbitMQ) AddQueueEventBind(queue messages.Recipient, bindingKey, routingKey messages.Key, ...) error
- func (r *RabbitMQ) Consume(key messages.Key, queue *Recipient, deliveries <-chan amqp.Delivery, ...)
- func (r *RabbitMQ) Publish(event *messages.Message) error
- func (r *RabbitMQ) Subscribe(key messages.Key, consumer events.Consumer) error
- func (r *RabbitMQ) Unmarshal(data []byte, attributes, meta reflect.Type, event *messages.Message) error
- type Recipient
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type RabbitMQ ¶
type RabbitMQ struct { *amqp.Connection *amqp.Channel loggers.Logger ConsumeCycle context.Context // contains filtered or unexported fields }
func (*RabbitMQ) AddExchange ¶ added in v4.8.0
func (*RabbitMQ) AddQueueEventBind ¶ added in v4.8.0
Click to show internal directories.
Click to hide internal directories.