rocketmq

package
v0.3.2 Latest Latest
Warning

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

Go to latest
Published: Dec 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 RocketMQPushConsumer

type RocketMQPushConsumer struct {
	Conf     con.Conf
	Consumer rocketmq.PushConsumer
}

func NewRocketMQPushConsumer

func NewRocketMQPushConsumer(conf con.Conf) (*RocketMQPushConsumer, error)

func (*RocketMQPushConsumer) Shutdown

func (c *RocketMQPushConsumer) Shutdown() error

func (*RocketMQPushConsumer) Start

func (c *RocketMQPushConsumer) Start() error

func (*RocketMQPushConsumer) Subscribe

func (c *RocketMQPushConsumer) Subscribe(topic string, callback func(ctx context.Context, msgs ...*mq.MessageExt) (int, error)) error

Jump to

Keyboard shortcuts

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