MCPcopy Create free account
hub / github.com/IBM/sarama / requiredVersion

Method requiredVersion

offset_commit_request.go:288–307  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

286}
287
288func (r *OffsetCommitRequest) requiredVersion() KafkaVersion {
289 switch r.Version {
290 case 8:
291 return V2_4_0_0
292 case 7:
293 return V2_3_0_0
294 case 5, 6:
295 return V2_1_0_0
296 case 4:
297 return V2_0_0_0
298 case 3:
299 return V0_11_0_0
300 case 2:
301 return V0_9_0_0
302 case 0, 1:
303 return V0_8_2_0
304 default:
305 return V2_4_0_0
306 }
307}
308
309func (r *OffsetCommitRequest) AddBlock(topic string, partitionID int32, offset int64, timestamp int64, metadata string) {
310 r.AddBlockWithLeaderEpoch(topic, partitionID, offset, 0, timestamp, metadata)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected