fuzzhis

package
v0.4.3 Latest Latest
Warning

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

Go to latest
Published: Aug 11, 2023 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var AllOnes = []byte{255, 255, 255, 255, 255, 255, 255, 255}
View Source
var DefaultConfig = FuzzConfig{
	RabbitCount:  10,
	MaxNumOfKeys: 10000,
	InitCount:    2000,
	HeightStride: 100,
	SetCount:     200,
	DelCount:     100,
	QueryCount:   300,
	ReloadEveryN: 100,
}

Functions

func NewRoot

func NewRoot(dir string) *store.RootStore

func RunFuzz

func RunFuzz(roundCount int, cfg FuzzConfig, randFilename string)

Types

type FuzzConfig

type FuzzConfig struct {
	RabbitCount  int
	MaxNumOfKeys int
	InitCount    int
	HeightStride int
	SetCount     int
	DelCount     int
	QueryCount   int
	ReloadEveryN int
}

type RefHisDb

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

func NewRefHisDb

func NewRefHisDb(dirname string) *RefHisDb

func (*RefHisDb) BeginWrite

func (db *RefHisDb) BeginWrite(currHeight int64)

func (*RefHisDb) Close

func (db *RefHisDb) Close()

func (*RefHisDb) Delete

func (db *RefHisDb) Delete(k []byte)

func (*RefHisDb) EndWrite

func (db *RefHisDb) EndWrite()

func (*RefHisDb) Get

func (db *RefHisDb) Get(k []byte) []byte

func (*RefHisDb) GetAtHeight

func (db *RefHisDb) GetAtHeight(k []byte, height uint64) []byte

func (*RefHisDb) Set

func (db *RefHisDb) Set(k, v []byte)

Jump to

Keyboard shortcuts

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