Versions in this module Expand all Collapse all v1 v1.0.1 Jun 12, 2023 Changes in this version + type CreationTimer interface + CreationTime func() inter.Timestamp + type HighestBefore struct + VSeq *vecfc.HighestBeforeSeq + VTime *HighestBeforeTime + func NewHighestBefore(size idx.Validator) *HighestBefore + func (b *HighestBefore) InitWithEvent(i idx.Validator, e dag.Event) + func (b *HighestBefore) IsEmpty(i idx.Validator) bool + func (b *HighestBefore) IsForkDetected(i idx.Validator) bool + func (b *HighestBefore) MinSeq(i idx.Validator) idx.Event + func (b *HighestBefore) Seq(i idx.Validator) idx.Event + func (b *HighestBefore) SetForkDetected(i idx.Validator) + func (self *HighestBefore) CollectFrom(_other vecengine.HighestBeforeI, num idx.Validator) + func (self *HighestBefore) GatherFrom(to idx.Validator, _other vecengine.HighestBeforeI, from []idx.Validator) + type HighestBeforeTime []byte + func NewHighestBeforeTime(size idx.Validator) *HighestBeforeTime + func (b *HighestBeforeTime) Set(i idx.Validator, time inter.Timestamp) + func (b HighestBeforeTime) Get(i idx.Validator) inter.Timestamp + func (b HighestBeforeTime) Size() idx.Validator + type Index struct + Base *vecfc.Index + func NewIndex(crit func(error), config IndexConfig) *Index + func NewIndexWithBase(crit func(error), config IndexConfig, base *vecfc.Index) *Index + func (vi *Index) GetEngineCallbacks() vecengine.Callbacks + func (vi *Index) GetHighestBefore(id hash.Event) *HighestBefore + func (vi *Index) GetHighestBeforeTime(id hash.Event) *HighestBeforeTime + func (vi *Index) GetMergedHighestBefore(id hash.Event) *HighestBefore + func (vi *Index) MedianTime(id hash.Event, defaultTime inter.Timestamp) inter.Timestamp + func (vi *Index) NoCheaters(selfParent *hash.Event, options hash.Events) hash.Events + func (vi *Index) Reset(validators *pos.Validators, db kvdb.Store, getEvent func(hash.Event) dag.Event) + func (vi *Index) SetHighestBefore(id hash.Event, vec *HighestBefore) + func (vi *Index) SetHighestBeforeTime(id hash.Event, vec *HighestBeforeTime) + type IndexCacheConfig struct + HighestBeforeTimeSize uint + type IndexConfig struct + Caches IndexCacheConfig + Fc vecfc.IndexConfig + func DefaultConfig(scale cachescale.Func) IndexConfig + func LiteConfig() IndexConfig