Documentation ¶ Index ¶ type RabbitMQ func (r *RabbitMQ) Close() func (r *RabbitMQ) ConnectMQ() func (r *RabbitMQ) GetExchange(exchange, kind string) error func (r *RabbitMQ) GetQueue(name string) (amqp.Queue, error) func (r *RabbitMQ) SendMsg(exchange, key string, msg []byte) error Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ This section is empty. Types ¶ type RabbitMQ ¶ type RabbitMQ struct { Connect *rabbitmq.Connect } func (*RabbitMQ) Close ¶ func (r *RabbitMQ) Close() func (*RabbitMQ) ConnectMQ ¶ func (r *RabbitMQ) ConnectMQ() func (*RabbitMQ) GetExchange ¶ func (r *RabbitMQ) GetExchange(exchange, kind string) error GetExchange 获取交换机 func (*RabbitMQ) GetQueue ¶ func (r *RabbitMQ) GetQueue(name string) (amqp.Queue, error) GetQueue 获取队列 func (*RabbitMQ) SendMsg ¶ func (r *RabbitMQ) SendMsg(exchange, key string, msg []byte) error SendMsg 发送消息 Source Files ¶ View all Source files rabbitmq.go Click to show internal directories. Click to hide internal directories.