mem

package
v0.2.9 Latest Latest
Warning

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

Go to latest
Published: Jul 24, 2024 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Item

type Item struct {
	Key []byte
	Val []byte
}

func (Item) Less

func (a Item) Less(b Item) bool

type Options

type Options struct {
	ReadOnly bool

	// Fault simulation
	SimulateReadErrors   bool
	SimulateWriteErrors  bool
	SimulateFlushErrors  bool
	SimulateBitRotErrors bool

	// Introspection / fault injection interface
	GetCallback    func(k, v []byte) []byte
	PutCallback    func(k, v []byte) ([]byte, []byte, error)
	DeleteCallback func(k []byte) ([]byte, error)
}

Jump to

Keyboard shortcuts

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