Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BotMessagePayload ¶
BotMessagePayload is the data envelopment published to bots
type Client ¶
Client publishes and consumes messages on RabbitMQ queues
func NewClient ¶
func NewClient(channel *amqp.Channel, requestQueue, responseQueue string, logger *log.Entry) *Client
NewClient instantiates a new Rabbit MQ client
func (*Client) Publish ¶
func (c *Client) Publish(payload json.RawMessage) error
Publish sends a message to the command queue
func (*Client) QueueDeclare ¶
QueueDeclare declares the queues so we can publish and consume messages
Click to show internal directories.
Click to hide internal directories.