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

Method requiredVersion

txn_offset_commit_request.go:160–175  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

158}
159
160func (a *TxnOffsetCommitRequest) requiredVersion() KafkaVersion {
161 switch a.Version {
162 case 4:
163 return V3_8_0_0
164 case 3:
165 return V2_5_0_0
166 case 2:
167 return V2_1_0_0
168 case 1:
169 return V2_0_0_0
170 case 0:
171 return V0_11_0_0
172 default:
173 return V2_5_0_0
174 }
175}
176
177type PartitionOffsetMetadata struct {
178 // Partition contains the index of the partition within the topic.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected