level

package
v2.0.3+incompatible Latest Latest
Warning

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

Go to latest
Published: Mar 19, 2016 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	CFDot    = 1
	CFDChain = 2
	CFMsg    = 3
	CFMsgI   = 4
	CFEntity = 5
)

Variables

View Source
var ErrObjNotFound = errors.New("Object Not Found")

ErrObjNotFound is returned from GetObject if the object cannot be found

Functions

func DeleteObject

func DeleteObject(cf int, key []byte)

func Exists

func Exists(cf int, key []byte) bool

func GetObject

func GetObject(cf int, key []byte) ([]byte, error)

func PutObject

func PutObject(cf int, key []byte, val []byte)

func RawInitialize

func RawInitialize(dbname string)

Types

type Iterator

type Iterator struct {
	// contains filtered or unexported fields
}

func CreateIterator

func CreateIterator(cf int, prefix []byte) *Iterator

func (*Iterator) Key

func (i *Iterator) Key() []byte

func (*Iterator) Next

func (i *Iterator) Next()

func (*Iterator) OK

func (i *Iterator) OK() bool

func (*Iterator) Release

func (i *Iterator) Release()

func (*Iterator) Value

func (i *Iterator) Value() []byte

Jump to

Keyboard shortcuts

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