boltidb

package
v0.0.0-...-aaf6028 Latest Latest
Warning

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

Go to latest
Published: Apr 11, 2018 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type IndexDB

type IndexDB struct {
	DB *bolt.DB
}

func (*IndexDB) DeletePrimary

func (i *IndexDB) DeletePrimary(priKey []byte) error

func (*IndexDB) DeleteUntil

func (i *IndexDB) DeleteUntil(secPrefix, secEnd []byte) error

func (*IndexDB) Insert

func (i *IndexDB) Insert(msg []byte) error

func (*IndexDB) ScanPrefix

func (i *IndexDB) ScanPrefix(secPrefix []byte, consumer func(key []byte, values [][]byte) bool)

func (*IndexDB) StepIndex

func (i *IndexDB) StepIndex(secKey []byte, backward bool) (nextSecKey indexdb.Binary, itsPrimKey indexdb.Binary, err error)

Jump to

Keyboard shortcuts

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