Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewConsumerGroup ¶
Types ¶
type Consumer ¶
func NewConsumer ¶
func (*Consumer) ConsumeClaim ¶
func (s *Consumer) ConsumeClaim(sess sarama.ConsumerGroupSession, claim sarama.ConsumerGroupClaim) error
mvcc、token、去重表
type PayloadDelay ¶
type PayloadDelay struct { PushUnix int64 `json:"pushUnix"` // 秒 PushTime string `json:"pushTime"` // 2021-3-11 16:14:17 Payload string `json:"payload"` // Topic string `json:"topic"` // 到期之后放入的队列 }
PayloadDelay 延迟队列数据
func NewDefaultDelayPayload ¶
func NewDefaultDelayPayload(payload string, topic string) PayloadDelay
NewDefaultDelayPayload 默认
Click to show internal directories.
Click to hide internal directories.