Documentation ¶
Index ¶
- type MQClient
- func (mq *MQClient) Close()
- func (mq *MQClient) Consumer(queueName string) (<-chan amqp.Delivery, error)
- func (mq *MQClient) GetCtx() *gin.Context
- func (mq *MQClient) Init() error
- func (mq *MQClient) Name() string
- func (mq *MQClient) Publish(c *gin.Context, queueName string, body interface{}, ...) error
- func (mq *MQClient) RetrieveResultChannel(queueName string) chan interface{}
- func (mq *MQClient) StoreResultChannel(queueName string, resultChan chan interface{})
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MQClient ¶
type MQClient struct { Connection *amqp.Connection Channel *amqp.Channel // contains filtered or unexported fields }
func GetMQClient ¶
func GetMQClient() *MQClient
func (*MQClient) RetrieveResultChannel ¶
func (*MQClient) StoreResultChannel ¶
Click to show internal directories.
Click to hide internal directories.