ControlBatch is an implementation of the RecordReader interface representing control batches returned by kafka brokers.
| 235 | // ControlBatch is an implementation of the RecordReader interface representing |
| 236 | // control batches returned by kafka brokers. |
| 237 | type 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. |
nothing calls this directly
no outgoing calls
no test coverage detected