Versions in this module Expand all Collapse all v0 v0.0.0 Jul 4, 2022 Changes in this version + type BranchSeq struct + MinSeq idx.Event + Seq idx.Event + func (seq BranchSeq) IsForkDetected() bool + type HighestBeforeSeq []byte + func NewHighestBeforeSeq(size idx.Validator) *HighestBeforeSeq + func (b *HighestBeforeSeq) InitWithEvent(i idx.Validator, e dag.Event) + func (b *HighestBeforeSeq) IsEmpty(i idx.Validator) bool + func (b *HighestBeforeSeq) IsForkDetected(i idx.Validator) bool + func (b *HighestBeforeSeq) MinSeq(i idx.Validator) idx.Event + func (b *HighestBeforeSeq) Seq(i idx.Validator) idx.Event + func (b *HighestBeforeSeq) Set(i idx.Validator, seq BranchSeq) + func (b *HighestBeforeSeq) SetForkDetected(i idx.Validator) + func (b HighestBeforeSeq) Get(i idx.Validator) BranchSeq + func (b HighestBeforeSeq) Size() int + func (self *HighestBeforeSeq) CollectFrom(_other vecengine.HighestBeforeI, num idx.Validator) + func (self *HighestBeforeSeq) GatherFrom(to idx.Validator, _other vecengine.HighestBeforeI, from []idx.Validator) + type Index struct + func NewIndex(crit func(error), config IndexConfig) *Index + func NewIndexWithEngine(crit func(error), config IndexConfig, engine *vecengine.Engine) *Index + func (vi *Index) ForklessCause(aID, bID hash.Event) bool + func (vi *Index) GetEngineCallbacks() vecengine.Callbacks + func (vi *Index) GetHighestBefore(id hash.Event) *HighestBeforeSeq + func (vi *Index) GetLowestAfter(id hash.Event) *LowestAfterSeq + func (vi *Index) GetMergedHighestBefore(id hash.Event) *HighestBeforeSeq + func (vi *Index) Reset(validators *pos.Validators, db kvdb.Store, getEvent func(hash.Event) dag.Event) + func (vi *Index) SetHighestBefore(id hash.Event, seq *HighestBeforeSeq) + func (vi *Index) SetLowestAfter(id hash.Event, seq *LowestAfterSeq) + type IndexCacheConfig struct + ForklessCausePairs int + HighestBeforeSeqSize uint + LowestAfterSeqSize uint + type IndexConfig struct + Caches IndexCacheConfig + func DefaultConfig(scale cachescale.Func) IndexConfig + func LiteConfig() IndexConfig + type LowestAfterSeq []byte + func NewLowestAfterSeq(size idx.Validator) *LowestAfterSeq + func (b *LowestAfterSeq) InitWithEvent(i idx.Validator, e dag.Event) + func (b *LowestAfterSeq) Set(i idx.Validator, seq idx.Event) + func (b *LowestAfterSeq) Visit(i idx.Validator, e dag.Event) bool + func (b LowestAfterSeq) Get(i idx.Validator) idx.Event + func (b LowestAfterSeq) Size() idx.Validator