mq

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Jan 30, 2024 License: Artistic-2.0 Imports: 7 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 NewMQ added in v0.0.1

func NewMQ() *RocketMQ

func (*RocketMQ) InitRocketMQ

func (this *RocketMQ) InitRocketMQ(server, groupName string)

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 consumer.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