Add Version getter for index reader

pull/5805/head
Fabian Reinartz 7 years ago
parent 494acd3070
commit 3f06121dd0

@ -653,6 +653,11 @@ func newReader(b ByteSlice, c io.Closer) (*Reader, error) {
return r, nil
}
// Version returns the file format version of the underlying index.
func (r *Reader) Version() int {
return r.version
}
// Range marks a byte range.
type Range struct {
Start, End int64

Loading…
Cancel
Save