(topic string, partitionID int32, offset int64, leaderEpoch int32, timestamp int64, metadata string)
| 311 | } |
| 312 | |
| 313 | func (r *OffsetCommitRequest) AddBlockWithLeaderEpoch(topic string, partitionID int32, offset int64, leaderEpoch int32, timestamp int64, metadata string) { |
| 314 | if r.blocks == nil { |
| 315 | r.blocks = make(map[string]map[int32]*offsetCommitRequestBlock) |
| 316 | } |
| 317 | |
| 318 | if r.blocks[topic] == nil { |
| 319 | r.blocks[topic] = make(map[int32]*offsetCommitRequestBlock) |
| 320 | } |
| 321 | |
| 322 | r.blocks[topic][partitionID] = &offsetCommitRequestBlock{offset, timestamp, leaderEpoch, metadata} |
| 323 | } |
| 324 | |
| 325 | func (r *OffsetCommitRequest) Offset(topic string, partitionID int32) (int64, string, error) { |
| 326 | partitions := r.blocks[topic] |
no outgoing calls
no test coverage detected