()
| 158 | } |
| 159 | |
| 160 | func (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 | |
| 177 | type PartitionOffsetMetadata struct { |
| 178 | // Partition contains the index of the partition within the topic. |
nothing calls this directly
no outgoing calls
no test coverage detected