Documentation ¶
Index ¶
- type RocketMQ
- func (this *RocketMQ) Init()
- 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 NewRocketMQ ¶
func (*RocketMQ) SendSync ¶
func (this *RocketMQ) SendSync(topic, json string) (*primitive.SendResult, error)
Click to show internal directories.
Click to hide internal directories.