nodb

package
v1.9.4-rc.8 Latest Latest
Warning

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

Go to latest
Published: Dec 5, 2022 License: BSD-3-Clause Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Batch

type Batch struct{}

Batch does nothing

func (*Batch) Delete

func (*Batch) Delete([]byte) error

Delete returns nil

func (*Batch) Inner

func (b *Batch) Inner() database.Batch

Inner returns itself

func (*Batch) Put

func (*Batch) Put(_, _ []byte) error

Put returns nil

func (*Batch) Replay

Replay does nothing

func (*Batch) Reset

func (*Batch) Reset()

Reset does nothing

func (*Batch) Size added in v1.2.4

func (*Batch) Size() int

Size returns 0

func (*Batch) Write

func (*Batch) Write() error

Write returns nil

type Database

type Database struct{}

Database is a lightning fast key value store with probabilistic operations.

func (*Database) Close

func (*Database) Close() error

Close returns nil

func (*Database) Compact

func (*Database) Compact(_, _ []byte) error

Compact returns nil

func (*Database) Delete

func (*Database) Delete([]byte) error

Delete returns nil

func (*Database) Get

func (*Database) Get([]byte) ([]byte, error)

Get returns nil, error

func (*Database) Has

func (*Database) Has([]byte) (bool, error)

Has returns false, nil

func (*Database) HealthCheck added in v1.7.13

func (*Database) HealthCheck(context.Context) (interface{}, error)

HealthCheck returns error

func (*Database) NewBatch

func (*Database) NewBatch() database.Batch

NewBatch returns a new batch

func (*Database) NewIterator

func (*Database) NewIterator() database.Iterator

NewIterator returns a new empty iterator

func (*Database) NewIteratorWithPrefix

func (*Database) NewIteratorWithPrefix([]byte) database.Iterator

NewIteratorWithPrefix returns a new empty iterator

func (*Database) NewIteratorWithStart

func (*Database) NewIteratorWithStart([]byte) database.Iterator

NewIteratorWithStart returns a new empty iterator

func (*Database) NewIteratorWithStartAndPrefix

func (*Database) NewIteratorWithStartAndPrefix(_, _ []byte) database.Iterator

NewIteratorWithStartAndPrefix returns a new empty iterator

func (*Database) Put

func (*Database) Put(_, _ []byte) error

Put returns nil

type Iterator

type Iterator struct{ Err error }

Iterator does nothing

func (*Iterator) Error

func (it *Iterator) Error() error

Error returns any errors

func (*Iterator) Key

func (*Iterator) Key() []byte

Key returns nil

func (*Iterator) Next

func (*Iterator) Next() bool

Next returns false

func (*Iterator) Release

func (*Iterator) Release()

Release does nothing

func (*Iterator) Value

func (*Iterator) Value() []byte

Value returns nil

Jump to

Keyboard shortcuts

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