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

Method headerVersion

txn_offset_commit_request.go:141–146  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

139}
140
141func (a *TxnOffsetCommitRequest) headerVersion() int16 {
142 if a.Version >= 3 {
143 return 2
144 }
145 return 1
146}
147
148func (a *TxnOffsetCommitRequest) isValidVersion() bool {
149 return a.Version >= 0 && a.Version <= 4

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected