moeingads

package module
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: May 7, 2021 License: Apache-2.0 Imports: 13 Imported by: 3

README

MoeingADS

Authenticated Data Structure from Moeing

Documentation

Index

Constants

View Source
const (
	StartReapThres                  int64 = 10000 // 1000 * 1000
	KeptEntriesToActiveEntriesRatio       = 2
)
View Source
const (
	MinimumTasksInGoroutine = 10
	MaximumGoroutines       = 128
)

Variables

View Source
var Phase1n2Time, Phase1Time, Phase2Time, Phase3Time, Phase4Time, Phase0Time uint64

Functions

This section is empty.

Types

type BucketMap

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

func NewBucketMap

func NewBucketMap(size int) *BucketMap

func (*BucketMap) Load

func (bm *BucketMap) Load(key string) (value *HotEntry, ok bool)

func (*BucketMap) Store

func (bm *BucketMap) Store(key string, value *HotEntry)

type Entry

type Entry = types.Entry

type HotEntry

type HotEntry = types.HotEntry

type Iterator

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

func (*Iterator) Close

func (iter *Iterator) Close()

func (*Iterator) Domain

func (iter *Iterator) Domain() (start []byte, end []byte)

func (*Iterator) Key

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

func (*Iterator) Next

func (iter *Iterator) Next()

func (*Iterator) Valid

func (iter *Iterator) Valid() bool

func (*Iterator) Value

func (iter *Iterator) Value() []byte

type MoeingADS

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

func NewMoeingADS

func NewMoeingADS(dirName string, canQueryHistory bool, startEndKeys [][]byte) (*MoeingADS, error)

func NewMoeingADS4Mock

func NewMoeingADS4Mock(startEndKeys [][]byte) *MoeingADS

func (*MoeingADS) ActiveCount

func (mads *MoeingADS) ActiveCount() int

func (*MoeingADS) BeginWrite

func (mads *MoeingADS) BeginWrite(height int64)

func (*MoeingADS) CheckConsistency

func (mads *MoeingADS) CheckConsistency()

func (*MoeingADS) Close

func (mads *MoeingADS) Close()

func (*MoeingADS) DeactiviateEntry

func (mads *MoeingADS) DeactiviateEntry(sn int64)

func (*MoeingADS) Delete

func (mads *MoeingADS) Delete(key []byte)

func (*MoeingADS) EndWrite

func (mads *MoeingADS) EndWrite()

func (*MoeingADS) GetCurrHeight

func (mads *MoeingADS) GetCurrHeight() int64

func (*MoeingADS) GetEntry

func (mads *MoeingADS) GetEntry(k []byte) *Entry

func (*MoeingADS) GetRootHash

func (mads *MoeingADS) GetRootHash() []byte

func (*MoeingADS) Iterator

func (mads *MoeingADS) Iterator(start, end []byte) types.Iterator

func (*MoeingADS) PrepareForDeletion

func (mads *MoeingADS) PrepareForDeletion(k []byte) (findIt bool)

func (*MoeingADS) PrepareForUpdate

func (mads *MoeingADS) PrepareForUpdate(k []byte)

func (*MoeingADS) PrintMetaInfo

func (mads *MoeingADS) PrintMetaInfo()

func (*MoeingADS) PruneBeforeHeight

func (mads *MoeingADS) PruneBeforeHeight(height int64)

func (*MoeingADS) ReverseIterator

func (mads *MoeingADS) ReverseIterator(start, end []byte) types.Iterator

func (*MoeingADS) Set

func (mads *MoeingADS) Set(key, value []byte)

Jump to

Keyboard shortcuts

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