(ctx context.Context, exchange, routingKey string, msg amqp.Publishing)
| 138 | } |
| 139 | |
| 140 | func (r *RabbitMQ) publish(ctx context.Context, exchange, routingKey string, msg amqp.Publishing) error { |
| 141 | return r.Channel.PublishWithContext(ctx, |
| 142 | exchange, // exchange |
| 143 | routingKey, // routing key |
| 144 | false, // mandatory |
| 145 | false, // immediate |
| 146 | msg, |
| 147 | ) |
| 148 | } |
| 149 | |
| 150 | func (r *RabbitMQ) setupDeadLetterExchange() error { |
| 151 | // Declare the dead letter exchange |
nothing calls this directly
no outgoing calls
no test coverage detected