Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MQExchangType ¶
type MQExchangType string
const ( MQ_EXCHANGE_DIRECT MQExchangType = "direct" MQ_EXCHANGE_TOPIC MQExchangType = "topic" MQ_EXCHANGE_HEADER MQExchangType = "headers" MQ_EXCHANGE_FANOUT MQExchangType = "fanout" )
type RabbitMQ ¶
type RabbitMQ struct {
// contains filtered or unexported fields
}
RabbitMQ 用于管理和维护rabbitmq的对象
func (*RabbitMQ) RegisterReceiver ¶
type RabbitMQConnect ¶
type RabbitMQConnect struct {
// contains filtered or unexported fields
}
func (*RabbitMQConnect) Close ¶
func (this *RabbitMQConnect) Close()
func (*RabbitMQConnect) Connect ¶
func (this *RabbitMQConnect) Connect(mqurl string)
func (*RabbitMQConnect) GetChannel ¶
func (this *RabbitMQConnect) GetChannel() *amqp.Channel
func (*RabbitMQConnect) NewClient ¶
func (this *RabbitMQConnect) NewClient(exchangeName string, exchangeType MQExchangType) *RabbitMQ
func (*RabbitMQConnect) SetLogger ¶
func (this *RabbitMQConnect) SetLogger(l log.Log)
Click to show internal directories.
Click to hide internal directories.