rocketmq

package
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 18, 2024 License: BSD-3-Clause Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RocketMQProducer

type RocketMQProducer struct {
	Conf     prod.Conf
	Producer rocketmq.Producer
}

func NewRocketMQProducer

func NewRocketMQProducer(conf prod.Conf) (*RocketMQProducer, error)

func (*RocketMQProducer) SendAsync

func (p *RocketMQProducer) SendAsync(ctx context.Context, callback func(ctx context.Context, result *mq.SendResult, err error), msgs ...*mq.Message) error

func (*RocketMQProducer) SendSync

func (p *RocketMQProducer) SendSync(ctx context.Context, msgs ...*mq.Message) (*mq.SendResult, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL