producer

package
v0.1.6 Latest Latest
Warning

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

Go to latest
Published: Aug 25, 2023 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SendAsync

func SendAsync(ctx context.Context, mq func(ctx context.Context, result *primitive.SendResult, err error),
	msg ...*primitive.Message) error

SendAsync 异步消息

func SendOneWay

func SendOneWay(ctx context.Context, mq ...*primitive.Message) error

SendOneWay 发送单方面消息

func SendSync

func SendSync(ctx context.Context, mq ...*primitive.Message) (*primitive.SendResult, error)

SendSync 同步消息

Types

type Producer added in v0.0.5

type Producer struct {
	rocket.Rocketmq `yaml:",inline" mapstructure:",squash"`
}

Jump to

Keyboard shortcuts

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