Documentation ¶
Index ¶
Constants ¶
View Source
const MAX_MSG_RETRY = 3
const MSG_SIZE = 1024 max retry to send a message
Variables ¶
View Source
var AmqpConn *amqp.Connection
View Source
var EmailWorkers map[string]*WorkerList
Functions ¶
Types ¶
type Channel ¶
type Channel struct { Exchange string RoutingKey string QueueName string Ack bool Mandatory bool Immendiate bool Queue amqp.Queue Messages <-chan amqp.Delivery // contains filtered or unexported fields }
A custom Amqp Channel struct and functions that extends the functionality of Amqp
var BatchChannel Channel
var LogChannel Channel
var LogDB Channel
var MailGunChannel Channel
var SendGridChannel Channel
var WebhookChannel Channel
func (*Channel) DeclareQueue ¶
Create a Queue and connect to exchange with defined route keys
func (*Channel) Listen ¶
func (c *Channel) Listen(listener RabbitListener) bool
Attaches a consumer listener on defined routing key and config
type RabbitListener ¶
type WorkerList ¶
Click to show internal directories.
Click to hide internal directories.