(topic string, partitionID int32)
| 8 | } |
| 9 | |
| 10 | func (g *OffsetFetchRequestGroup) AddPartition(topic string, partitionID int32) { |
| 11 | if g.Partitions == nil { |
| 12 | g.Partitions = make(map[string][]int32) |
| 13 | } |
| 14 | g.Partitions[topic] = append(g.Partitions[topic], partitionID) |
| 15 | } |
| 16 | |
| 17 | type OffsetFetchRequest struct { |
| 18 | Version int16 |