Documentation ¶
Index ¶
- func GetPulsarClient() pulsar.Client
- func GetRocketClient() mq_http_sdk.MQClient
- type Pulsar
- func (m *Pulsar) Close()
- func (m *Pulsar) InitProducer(queueName string) (pulsar.Producer, error)
- func (m *Pulsar) InitSubscribe(queueName, consumerName string) (pulsar.Consumer, error)
- func (m *Pulsar) PublishOnQueue(queueName string, body string, tag string) error
- func (m *Pulsar) String() string
- func (m *Pulsar) SubscribeToQueue(queueName string, consumerName string, tag string, ...) error
- type Rocket
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Pulsar ¶
type Pulsar struct {
// contains filtered or unexported fields
}
func (*Pulsar) InitProducer ¶
func (*Pulsar) InitSubscribe ¶
func (*Pulsar) PublishOnQueue ¶
PublishOnQueue 发布消息
func (*Pulsar) SubscribeToQueue ¶
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 ¶
PublishOnQueue 发布消息
func (*Rocket) SubscribeToQueue ¶
Click to show internal directories.
Click to hide internal directories.