Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Batch ¶ added in v0.0.65
type Batch struct { Writer *kafka.Writer // contains filtered or unexported fields }
func (*Batch) AddMessages ¶ added in v0.0.65
func (b *Batch) AddMessages(ctx *models.ListenerContext, messages []kafka.Message, eventTime time.Time)
func (*Batch) FlushMessages ¶ added in v0.0.65
func (b *Batch) FlushMessages()
func (*Batch) PrepareEndRebalancing ¶ added in v0.0.65
func (b *Batch) PrepareEndRebalancing()
func (*Batch) PrepareStartRebalancing ¶ added in v0.0.65
func (b *Batch) PrepareStartRebalancing()
func (*Batch) StartBatchTicker ¶ added in v0.0.65
func (b *Batch) StartBatchTicker()
type Producer ¶
type Producer struct {
ProducerBatch *Batch
}
func NewProducer ¶
func (*Producer) Produce ¶
func (p *Producer) Produce( ctx *models.ListenerContext, eventTime time.Time, messages []kafka.Message, )
func (*Producer) StartBatch ¶
func (p *Producer) StartBatch()
Click to show internal directories.
Click to hide internal directories.