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 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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 added in v1.1.0

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

PrefixCursor that can be reversed

func (*PrefixCursor) Continue added in v1.1.0

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

Continue tells if the loop needs to continue

func (*PrefixCursor) First added in v1.1.0

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

First element

func (*PrefixCursor) Next added in v1.1.0

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