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

Method headerVersion

offset_commit_request.go:269–274  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

267}
268
269func (r *OffsetCommitRequest) headerVersion() int16 {
270 if r.Version >= 8 {
271 return 2
272 }
273 return 1
274}
275
276func (r *OffsetCommitRequest) isValidVersion() bool {
277 return r.Version >= 0 && r.Version <= 8

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected