Documentation
¶
Index ¶
- func BindQueueToExchange(c *amqp.Channel, q *amqp.Queue, exchangeName, key string) error
- func Connect() (*amqp.Connection, *amqp.Channel, error)
- func ConnectDeclare(eName, qName, key, kind string) (*amqp.Connection, *amqp.Channel, error)
- func Consumer(eName, qName, key, kind string, f func([]byte)) error
- func DeclareExchange(c *amqp.Channel, eName string, kind string) error
- func QueueDeclare(c *amqp.Channel, queueName string) (*amqp.Queue, error)
- func SendMessage(eName, qName, key, kind string, msg []byte) error
- type Config
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BindQueueToExchange ¶
func Connect ¶
func Connect() (*amqp.Connection, *amqp.Channel, error)
Connect to amqp keep it open and return open channel
func ConnectDeclare ¶
ConnectDeclare create queue and bind to exchange
func SendMessage ¶
SendMessage message to broker
Types ¶
Click to show internal directories.
Click to hide internal directories.