Documentation ¶
Overview ¶
消息并发多条推送,但commit回复一次性回复,无法对单条消息进行commit回复,暂时不推荐使用 阿里云官方推荐使用 v1.2.4 版本
消息并发多条推送,但commit回复一次性回复,无法对单条消息进行commit回复,暂时不推荐使用 阿里云官方推荐使用 v1.2.4 版本
消息并发多条推送,但commit回复一次性回复,无法对单条消息进行commit回复,暂时不推荐使用 阿里云官方推荐使用 v1.2.4 版本
Index ¶
- Constants
- type Consumer
- type ConsumerOption
- func (c *ConsumerOption) MaxReconsumeTimes(maxcount int) *ConsumerOption
- func (c *ConsumerOption) MessageModel(messageModel consumer.MessageModel) *ConsumerOption
- func (c *ConsumerOption) Namespace(namespace string) *ConsumerOption
- func (c *ConsumerOption) PullBatchSize(size int) *ConsumerOption
- func (c *ConsumerOption) Start() (ps *Consumer, err error)
- type RocketMQConfig
Constants ¶
View Source
const ( ConsumerOPKeyGroupID = "GroupName" ConsumerOPKeyNameServer = "NameServer" ConsumerOPKeyCredentials = "Credentials" ConsumerOPKeyMessageModel = "MessageModel" ConsumerOPKeyNamespace = "Namespace" ConsumerOPKeyMaxReconsumeTimes = "MaxReconsumeTimes" ConsumerOPKeyPullBatchSize = "PullBatchSize" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Consumer ¶
type ConsumerOption ¶
type ConsumerOption struct { OpsMap map[string]consumer.Option // contains filtered or unexported fields }
func DefaultConsumerOption ¶
func DefaultConsumerOption(consumerName string) (c *ConsumerOption)
func (*ConsumerOption) MaxReconsumeTimes ¶
func (c *ConsumerOption) MaxReconsumeTimes(maxcount int) *ConsumerOption
func (*ConsumerOption) MessageModel ¶
func (c *ConsumerOption) MessageModel(messageModel consumer.MessageModel) *ConsumerOption
func (*ConsumerOption) Namespace ¶
func (c *ConsumerOption) Namespace(namespace string) *ConsumerOption
func (*ConsumerOption) PullBatchSize ¶
func (c *ConsumerOption) PullBatchSize(size int) *ConsumerOption
func (*ConsumerOption) Start ¶
func (c *ConsumerOption) Start() (ps *Consumer, err error)
Click to show internal directories.
Click to hide internal directories.