MCPcopy
hub / github.com/segmentio/kafka-go / ReadLastOffset

Method ReadLastOffset

conn.go:906–908  ·  view source on GitHub ↗

ReadLastOffset returns the last offset available on the connection.

()

Source from the content-addressed store, hash-verified

904
905// ReadLastOffset returns the last offset available on the connection.
906func (c *Conn) ReadLastOffset() (int64, error) {
907 return c.readOffset(LastOffset)
908}
909
910// ReadOffsets returns the absolute first and last offsets of the topic used by
911// the connection.

Callers 2

ReadOffsetsMethod · 0.95
readOffsetFunction · 0.95

Calls 1

readOffsetMethod · 0.95

Tested by 1

readOffsetFunction · 0.76