2022-01-01 15:55:02 +08:00

19 lines
283 B
Go

package mq
import "time"
type Message struct {
Key, Value []byte
Topic string
Partition int32
Offset int64
Timestamp time.Time
BlockTimestamp time.Time
Headers []*RecordHeader
}
type RecordHeader struct {
Key []byte
Value []byte
}