Documentation
¶
Overview ¶
Package messageQueuex 消息队列抽象接口
Index ¶
- type ConsumerIndeprecated
- type KeyOrTopicdeprecated
- type ProducerIndeprecated
- type Tpdeprecated
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ConsumerIn
deprecated
type KeyOrTopic
deprecated
type ProducerIn
deprecated
type ProducerIn[ProducerTyp any] interface { SendMessage(ctx context.Context, keyOrTopic Tp, value []byte) error // CloseProducer 关闭生产者Producer,请在main函数最顶层defer住生产者的Producer.Close(),优雅关闭防止goroutine泄露 CloseProducer() error }
Deprecated: messageQueuex此包弃用,此方法将在未来版本中删除,请使用mqX包 ProducerIn 生产者抽象接口
- 当使用 sarama.NewSyncProducer() 创建生产者时,请使用 NewSaramaProducerStr()
- 请在main函数最顶层defer住生产者的Producer.Close(),优雅关闭防止goroutine泄露
type Tp
deprecated
type Tp KeyOrTopic
Deprecated: messageQueuex此包弃用,此方法将在未来版本中删除,请使用mqX包
Click to show internal directories.
Click to hide internal directories.