memory

package
v2.0.1 Latest Latest
Warning

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

Go to latest
Published: Aug 9, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Builder

func Builder(config *config) backend.Builder

func NewConfig

func NewConfig() *config

func NewMemoryBackend

func NewMemoryBackend(name string, config *config) backend.Backend

Types

type ByteRecord

type ByteRecord struct {
	Key   []byte
	Value []byte
	// contains filtered or unexported fields
}

type Iterator

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

func NewMemoryIterator

func NewMemoryIterator(records []ByteRecord) *Iterator

func (*Iterator) Close

func (i *Iterator) Close()

func (*Iterator) Error

func (i *Iterator) Error() error

func (*Iterator) Key

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

func (*Iterator) Next

func (i *Iterator) Next()

func (*Iterator) Prev

func (i *Iterator) Prev()

func (*Iterator) Seek

func (i *Iterator) Seek(key []byte)

func (*Iterator) SeekToFirst

func (i *Iterator) SeekToFirst()

func (*Iterator) SeekToLast

func (i *Iterator) SeekToLast()

func (*Iterator) Valid

func (i *Iterator) Valid() bool

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