Documentation ¶
Index ¶
- Variables
- func CommonDelayInit() error
- func CommonFanoutInit() error
- func CommonInit() error
- func CommonTopicInit() error
- func GetConn() *amqp.Connection
- func InitConn(user string, pwd string, host string, port int)
- type MQ
- func (this *MQ) Consume(queue string, key string, ...)
- func (this *MQ) DecQueueAndBind(queues string, key string, exchange string) error
- func (this *MQ) ListenConfirm()
- func (this *MQ) NotifyReturn()
- func (this *MQ) SendDelayMessage(key string, exchange string, message string, delay int) error
- func (this *MQ) SendFanoutMessage(exchange string, message string) error
- func (this *MQ) SendMessage(key string, exchange string, message string) error
- func (this *MQ) SetConfirm()
Constants ¶
This section is empty.
Variables ¶
View Source
var MQConn *amqp.Connection
Functions ¶
func GetConn ¶
func GetConn() *amqp.Connection
Types ¶
type MQ ¶
func (*MQ) Consume ¶
func (this *MQ) Consume(queue string, key string, callback func(<-chan amqp.Delivery, string, map[string]interface{}), config map[string]interface{})
消费
func (*MQ) DecQueueAndBind ¶
func (*MQ) SendDelayMessage ¶
* SendDelayMessage 发送延迟消息
func (*MQ) SendFanoutMessage ¶
func (*MQ) SendMessage ¶
Click to show internal directories.
Click to hide internal directories.