Documentation
¶
Index ¶
- type RabbitMQHandler
- func (r *RabbitMQHandler) Close() error
- func (r *RabbitMQHandler) Consume(exchangeName string, routingKey string, queueName string, ...) error
- func (r *RabbitMQHandler) DeadLetter(deadLetterExchange string, deadLetterRoutingKey string, ...) error
- func (r *RabbitMQHandler) Publish(exchangeName string, routingKey string, message []byte) error
- func (r *RabbitMQHandler) PublishWithHeaders(exchangeName string, routingKey string, message []byte, ...) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type RabbitMQHandler ¶
type RabbitMQHandler struct {
// contains filtered or unexported fields
}
func NewRabbitMqHandler ¶
func NewRabbitMqHandler(uri string) (*RabbitMQHandler, error)
func (*RabbitMQHandler) Close ¶
func (r *RabbitMQHandler) Close() error
func (*RabbitMQHandler) DeadLetter ¶
func (r *RabbitMQHandler) DeadLetter(deadLetterExchange string, deadLetterRoutingKey string, handler func(d rabbitmq.Delivery) (action rabbitmq.Action)) error
func (*RabbitMQHandler) Publish ¶
func (r *RabbitMQHandler) Publish(exchangeName string, routingKey string, message []byte) error
func (*RabbitMQHandler) PublishWithHeaders ¶
Click to show internal directories.
Click to hide internal directories.