Documentation ¶
Index ¶
- type RocketMQ
- func (this *RocketMQ) InitRocketMQ(server, groupName string)
- func (this *RocketMQ) SendAsync(topic, json string, ...) error
- func (this *RocketMQ) SendSync(topic, json string) (*primitive.SendResult, error)
- func (this *RocketMQ) Shutdown()
- func (this *RocketMQ) Start()
- func (this *RocketMQ) Subscribe(topic string, _receiver consumer.OnReceiver)
- func (this *RocketMQ) Wait(ctx context.Context)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type RocketMQ ¶
type RocketMQ struct {
// contains filtered or unexported fields
}
func (*RocketMQ) InitRocketMQ ¶
func (*RocketMQ) SendSync ¶
func (this *RocketMQ) SendSync(topic, json string) (*primitive.SendResult, error)
Click to show internal directories.
Click to hide internal directories.