rocketmq

package
v0.0.0-...-8c930d8 Latest Latest
Warning

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

Go to latest
Published: Nov 11, 2026 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Admin

func Admin() (admin.Admin, error)

Admin returns the framework's admin client.

func NewAdmin

func NewAdmin(cfg config.RocketMQ) (admin.Admin, error)

NewAdmin returns a new RocketMQ admin with given configuration. It's the caller's responsibility to close the admin when it's no longer needed.

func NewProducer

func NewProducer(cfg config.RocketMQ) (rocketmq.Producer, error)

NewProducer returns a new RocketMQ producer with given configuration. It's the caller's responsibility to start and shutdown the producer.

func NewPushConsumer

func NewPushConsumer(cfg config.RocketMQ, consumerGroup string) (rocketmq.PushConsumer, error)

NewPushConsumer returns a new RocketMQ push consumer with given configuration. It's the caller's responsibility to start and shutdown the consumer.

func Producer

func Producer() (rocketmq.Producer, error)

Producer returns the framework's producer, started by the bootstrap and ready to send.

Types

This section is empty.

Jump to

Keyboard shortcuts

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