Documentation ¶
Index ¶
- func NewMessageFromDelivery(delivery amqp.Delivery) *message.Message
- func NewProvider(connStr string) mq.IProvider
- func NewPublishingFromMessage(msg *message.Message) amqp.Publishing
- type Provider
- func (provider *Provider) Exit() error
- func (provider *Provider) Init(ctx context.Context, svcName string, purge bool, topics []string) error
- func (provider *Provider) NotifyConfirm(ack, nack chan uint64)
- func (provider *Provider) Publish(message *message.Message) error
- func (provider *Provider) Subscribe(ctx context.Context, consumerTag string, msgs chan *message.Message) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewProvider ¶
func NewPublishingFromMessage ¶
func NewPublishingFromMessage(msg *message.Message) amqp.Publishing
Types ¶
Click to show internal directories.
Click to hide internal directories.