mq

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Jun 5, 2024 License: Artistic-2.0 Imports: 9 Imported by: 1

Documentation

Index

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 NewRocketMQ(cons_opts []consumer.Option, prod_opts []producer.Option, reply bool) *RocketMQ

func (*RocketMQ) Init

func (this *RocketMQ) Init()

func (*RocketMQ) SendAsync

func (this *RocketMQ) SendAsync(topic, json string, mq func(ctx context.Context, result *primitive.SendResult, err error)) error

func (*RocketMQ) SendSync

func (this *RocketMQ) SendSync(topic, json string) (*primitive.SendResult, error)

func (*RocketMQ) Shutdown

func (this *RocketMQ) Shutdown()

func (*RocketMQ) Start

func (this *RocketMQ) Start()

func (*RocketMQ) Subscribe

func (this *RocketMQ) Subscribe(topic string, _receiver cons.OnReceiver)

func (*RocketMQ) Wait

func (this *RocketMQ) Wait(ctx context.Context)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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