MCPcopy Create free account
hub / github.com/codealong-dev/ride-sharing / publish

Method publish

shared/messaging/rabbitmq.go:140–148  ·  view source on GitHub ↗
(ctx context.Context, exchange, routingKey string, msg amqp.Publishing)

Source from the content-addressed store, hash-verified

138}
139
140func (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
150func (r *RabbitMQ) setupDeadLetterExchange() error {
151 // Declare the dead letter exchange

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected