Event.Publish accept client.PublishOption, so I add a new client.PublishOption to set message delivery mode.
It has the same functionality with rabbitmq.DeliveryMode(), but as a client.PublishOption
// Event is used to publish messages to a topic.
type Event interface {
// Publish publishes a message to the event topic
Publish(ctx context.Context, msg interface{}, opts ...client.PublishOption) error
}
Event.Publish
accept client.PublishOption, so I add a new client.PublishOption to set message delivery mode.It has the same functionality with
rabbitmq.DeliveryMode()
, but as aclient.PublishOption
usage: