Version: v0.0.0-...-dcefb82 Latest Latest

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

Go to latest
Published: Feb 26, 2019 License: AGPL-3.0 Imports: 3 Imported by: 0




This section is empty.


This section is empty.


func ForPrefixInt

func ForPrefixInt(i Iterator, prefix []byte, skipOnError bool, fn func([]byte, int) (bool, error)) error

func ForPrefixInt64

func ForPrefixInt64(i Iterator, prefix []byte, skipOnError bool, fn func([]byte, int64) (bool, error)) error

func GetBool

func GetBool(g Getter, key []byte) (bool, error)

func GetInt

func GetInt(g Getter, key []byte) (int, error)

func GetInt64

func GetInt64(g Getter, key []byte) (int64, error)

func GetString

func GetString(g Getter, key []byte) (string, error)

func HasKeyInCategoryWithInt64LowerEqual

func HasKeyInCategoryWithInt64LowerEqual(i Iterator, keyCategory byte, threshold int64) bool

func IncrementInt64By

func IncrementInt64By(pgr PutGetRemover, key []byte, delta int64, deleteOnZero bool) (int64, error)

func PutBool

func PutBool(p Putter, key []byte, value bool) error

func PutInt

func PutInt(p Putter, key []byte, value int) error

func PutInt64

func PutInt64(p Putter, key []byte, value int64) error

func PutString

func PutString(p Putter, key []byte, value string) error

func Remove

func Remove(pgr PutGetRemover, key []byte) error

func RemoveKeysInCategoryWithInt64LowerEqual

func RemoveKeysInCategoryWithInt64LowerEqual(i RemoveIterator, keyCategory byte, threshold int64) int

func SumInt64InCategory

func SumInt64InCategory(i Iterator, keyCategory byte) int64


type Getter

type Getter interface {
	GetBytes([]byte) ([]byte, error)

type Iterator

type Iterator interface {
	ForPrefix(prefix []byte, fetchValues bool, fn func([]byte, []byte) (bool, error)) error

type PutGetRemover

type PutGetRemover interface {
	Remove([]byte) error

type Putter

type Putter interface {
	PutBytes([]byte, []byte) error

type RemoveIterator

type RemoveIterator interface {
	Remove([]byte) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL