memory

package
v1.3.2 Latest Latest
Warning

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

Go to latest
Published: Aug 16, 2021 License: MIT Imports: 6 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(config *config) backend.Backend

Types

type Iterator

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

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

type PartitionMemory

type PartitionMemory interface {
	backend.Backend
	Partitions() []backend.Iterator
}

func NewPartitionMemoryBackend

func NewPartitionMemoryBackend(partitions int, logger log.Logger, reporter metrics.Reporter) PartitionMemory

Jump to

Keyboard shortcuts

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