MCPcopy
hub / github.com/segmentio/kafka-go / ControlBatch

Struct ControlBatch

protocol/record_batch.go:237–245  ·  view source on GitHub ↗

ControlBatch is an implementation of the RecordReader interface representing control batches returned by kafka brokers.

Source from the content-addressed store, hash-verified

235// ControlBatch is an implementation of the RecordReader interface representing
236// control batches returned by kafka brokers.
237type ControlBatch struct {
238 Attributes Attributes
239 PartitionLeaderEpoch int32
240 BaseOffset int64
241 ProducerID int64
242 ProducerEpoch int16
243 BaseSequence int32
244 Records RecordReader
245}
246
247// NewControlBatch constructs a control batch from the list of records passed as
248// arguments.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected