internal

package
v2.1.2+incompatible Latest Latest
Warning

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

Go to latest
Published: Aug 29, 2018 License: MIT Imports: 2 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 PrefixCursor

type PrefixCursor struct {
	C       *bolt.Cursor
	Reverse bool
	Prefix  []byte
}

PrefixCursor that can be reversed

func (*PrefixCursor) Continue

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

Continue tells if the loop needs to continue

func (*PrefixCursor) First

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

First element

func (*PrefixCursor) Next

func (c *PrefixCursor) 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