rocketmq

package
v0.0.0-...-532f4bb Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2023 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewRocketMqBroker

func NewRocketMqBroker(conf *RocketMqConf) (broker.Broker, error)

Types

type RocketMqConf

type RocketMqConf struct {
	Addrs             []string
	Retry             int
	MaxReconsumeTimes int32
	FromWhere         rocketmq.ConsumeFromWhere // mq的开始未知 0 最新位置  1 最早位置
	ConsumerMode      rocketmq.MessageModel     // 消费者模式 0 BroadCasting 1 Clustering
}

func DefaultRocketMqConfig

func DefaultRocketMqConfig() *RocketMqConf

Jump to

Keyboard shortcuts

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