control_record.go 452 B

123456789101112131415161718
  1. package sarama
  2. type ControlRecordType int
  3. const (
  4. ControlRecordAbort ControlRecordType = iota
  5. ControlRecordCommit
  6. ControlRecordUnknown
  7. )
  8. // Control records are returned as a record by fetchRequest
  9. // However unlike "normal" records, they mean nothing application wise.
  10. // They only serve internal logic for supporting transactions.
  11. type ControlRecord struct {
  12. Version int16
  13. CoordinatorEpoch int32
  14. Type ControlRecordType
  15. }