Documentation ¶
Index ¶
- Constants
- func BasicConsume(c *Channel, queue string, ctag string, callback ConsumerCallback) error
- func BasicPublish(c *Channel, exchange string, rk string, body []byte, ...) error
- func ExchangeDeclare(c *Channel, exchange, typ string, flags uint) error
- func QueueBind(c *Channel, name, key, exchange string, args map[string]interface{}) error
- func QueueDeclare(c *Channel, queue string, flags uint) error
- type Channel
- type Consumer
- type ConsumerCallback
- type Exchange
- type Message
- type RMQ
- type Return
- type Service
- type Settings
Constants ¶
View Source
const ( // declare flags Durable = uint(0x1) Exclusive = uint(0x2) // publish flags Mandatory = uint(0x1) Immediate = uint(0x2) )
Variables ¶
This section is empty.
Functions ¶
func BasicConsume ¶
func BasicConsume(c *Channel, queue string, ctag string, callback ConsumerCallback) error
func BasicPublish ¶
Types ¶
type ConsumerCallback ¶
type ConsumerCallback func(msg *Message)
type Message ¶
type Message struct { Body []byte Headers map[string]interface{} // contains filtered or unexported fields }
func (*Message) AckMultiple ¶
Click to show internal directories.
Click to hide internal directories.