internal

package
v0.8.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 1, 2017 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Cursor

type Cursor struct {
	C       *bolt.Cursor
	Reverse bool
}

Cursor that can be reversed

func (*Cursor) First

func (c *Cursor) First() ([]byte, []byte)

First element

func (*Cursor) Next

func (c *Cursor) Next() ([]byte, []byte)

Next element

type RangeCursor

type RangeCursor struct {
	C         *bolt.Cursor
	Reverse   bool
	Min       []byte
	Max       []byte
	CompareFn func([]byte, []byte) int
}

RangeCursor that can be reversed

func (*RangeCursor) Continue

func (c *RangeCursor) Continue(val []byte) bool

Continue tells if the loop needs to continue

func (*RangeCursor) First

func (c *RangeCursor) First() ([]byte, []byte)

First element

func (*RangeCursor) Next

func (c *RangeCursor) Next() ([]byte, []byte)

Next element

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL