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

Method ReadOffset

conn.go:896–898  ·  view source on GitHub ↗

ReadOffset returns the offset of the first message with a timestamp equal or greater to t.

(t time.Time)

Source from the content-addressed store, hash-verified

894// ReadOffset returns the offset of the first message with a timestamp equal or
895// greater to t.
896func (c *Conn) ReadOffset(t time.Time) (int64, error) {
897 return c.readOffset(timestamp(t))
898}
899
900// ReadFirstOffset returns the first offset available on the connection.
901func (c *Conn) ReadFirstOffset() (int64, error) {

Callers 1

SetOffsetAtMethod · 0.95

Calls 2

readOffsetMethod · 0.95
timestampFunction · 0.70

Tested by

no test coverage detected