github.com/segmentio/kafka-go@v0.4.48-0.20240318174348-3f6244eb34fd/protocol/consumer/consumer.go (about) 1 package consumer 2 3 const MaxVersionSupported = 1 4 5 type Subscription struct { 6 Version int16 `kafka:"min=v0,max=v1"` 7 Topics []string `kafka:"min=v0,max=v1"` 8 UserData []byte `kafka:"min=v0,max=v1,nullable"` 9 OwnedPartitions []TopicPartition `kafka:"min=v1,max=v1"` 10 } 11 12 type Assignment struct { 13 Version int16 `kafka:"min=v0,max=v1"` 14 AssignedPartitions []TopicPartition `kafka:"min=v0,max=v1"` 15 UserData []byte `kafka:"min=v0,max=v1,nullable"` 16 } 17 18 type TopicPartition struct { 19 Topic string `kafka:"min=v0,max=v1"` 20 Partitions []int32 `kafka:"min=v0,max=v1"` 21 }