Documentation ¶
Index ¶
- type RocketMQ
- func (this *RocketMQ) Init()
- func (this *RocketMQ) InitRocketMQ(servers []string, groupName string)
- func (this *RocketMQ) NewRocketMQ(cons_opts []consumer.Option, prod_opts []producer.Option)
- 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 cons.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) NewRocketMQ ¶ added in v0.0.8
func (*RocketMQ) SendSync ¶
func (this *RocketMQ) SendSync(topic, json string) (*primitive.SendResult, error)
Click to show internal directories.
Click to hide internal directories.