backends

package
v0.0.0-...-1427ac7 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 30, 2020 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DelayedExchange     = "delayed"
	DelayedExchangeKind = "x-delayed-message"
	DelayedQueue        = "delayed-queue"

	NotificationsExchange = "notifications_fanout"
)

Variables

Functions

This section is empty.

Types

type AMQP

type AMQP struct {
	// contains filtered or unexported fields
}

func NewAMQPMessageBackend

func NewAMQPMessageBackend(lc fx.Lifecycle, shutdowner fx.Shutdowner, conf config.AMQPConfig, log *zap.Logger) (*AMQP, error)

func (*AMQP) Close

func (a *AMQP) Close() error

func (*AMQP) ConsumeNotifications

func (a *AMQP) ConsumeNotifications(ctx context.Context) (<-chan amqp.Delivery, error)

func (*AMQP) ConsumeTasks

func (a *AMQP) ConsumeTasks() (<-chan amqp.Delivery, error)

func (*AMQP) PublishDelayed

func (a *AMQP) PublishDelayed(body []byte, delay time.Duration, messageType string) error

func (*AMQP) PublishNotification

func (a *AMQP) PublishNotification(body []byte) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳