Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Rabbit ¶ added in v1.5.7
type Rabbit struct {
// contains filtered or unexported fields
}
func (*Rabbit) PublishOnQueue ¶ added in v1.5.7
func (m *Rabbit) PublishOnQueue(exchangeName, exchangeType, queueName, key, tag string, body interface{}) error
PublishOnQueue 发布消息
func (*Rabbit) SubscribeToQueue ¶ added in v1.5.7
func (m *Rabbit) SubscribeToQueue(exchangeName, exchangeType, queueName, key, tag string, handlerFunc message.AmqpConsumerFunc) error
type Rocket ¶
type Rocket struct {
// contains filtered or unexported fields
}
func NewRocket ¶
func NewRocket(client mq_http_sdk.MQClient, endpoint, accessKey, secretKey, instanceId, namespace string) *Rocket
NewRocket redis模式
func (*Rocket) PublishOnQueue ¶
func (m *Rocket) PublishOnQueue(exchangeName, exchangeType, queueName, key, tag string, body interface{}) error
PublishOnQueue 发布消息
func (*Rocket) SubscribeToQueue ¶
Click to show internal directories.
Click to hide internal directories.