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

Method Offset

offset_commit_request.go:325–335  ·  view source on GitHub ↗
(topic string, partitionID int32)

Source from the content-addressed store, hash-verified

323}
324
325func (r *OffsetCommitRequest) Offset(topic string, partitionID int32) (int64, string, error) {
326 partitions := r.blocks[topic]
327 if partitions == nil {
328 return 0, "", errors.New("no such offset")
329 }
330 block := partitions[partitionID]
331 if block == nil {
332 return 0, "", errors.New("no such offset")
333 }
334 return block.offset, block.metadata, nil
335}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected