inmemory

package
v0.3.2 Latest Latest
Warning

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

Go to latest
Published: Sep 20, 2022 License: Apache-2.0, MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type InMemory

type InMemory [][2][]byte

func New added in v0.2.0

func New(data [][2][]byte) *InMemory

func (*InMemory) Close

func (im *InMemory) Close() error

func (*InMemory) Flush

func (im *InMemory) Flush() (types.Work, error)

func (*InMemory) Get

func (im *InMemory) Get(blk types.Block) (key []byte, value []byte, err error)

func (*InMemory) GetIndexKey

func (im *InMemory) GetIndexKey(blk types.Block) ([]byte, error)

func (*InMemory) IndexKey

func (im *InMemory) IndexKey(key []byte) ([]byte, error)

func (*InMemory) Iter

func (im *InMemory) Iter() (primary.PrimaryStorageIter, error)

func (*InMemory) OutstandingWork

func (im *InMemory) OutstandingWork() types.Work

func (*InMemory) Put

func (im *InMemory) Put(key []byte, value []byte) (blk types.Block, err error)

func (*InMemory) StorageSize added in v0.2.0

func (im *InMemory) StorageSize() (int64, error)

func (*InMemory) Sync

func (im *InMemory) Sync() error

Jump to

Keyboard shortcuts

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