influxdb/tsdb/cursor.go

12 lines
277 B
Go
Raw Normal View History

package tsdb
2015-09-20 22:27:22 +00:00
// EOF represents a "not found" key returned by a Cursor.
const EOF = int64(-1)
2015-09-16 21:04:37 +00:00
// Cursor represents an iterator over a series.
type Cursor interface {
SeekTo(seek int64) (key int64, value interface{})
2015-09-20 22:27:22 +00:00
Next() (key int64, value interface{})
2015-09-16 21:04:37 +00:00
Ascending() bool
2015-09-02 21:42:34 +00:00
}