Versions in this module Expand all Collapse all v1 v1.0.7 May 11, 2021 v1.0.6 Jul 26, 2019 Changes in this version + const DefaultLevel + const EpochLength + const HighestLevel + const LowestLevel + const MaxTime + var NoClue = Epoch + func FluzCapacitorAlgorithm(now uint64, hint Epoch, read ReadFunc) (value interface{}, err error) + func GetNextLevel(last Epoch, now uint64) uint8 + type Algorithm func(now uint64, hint Epoch, read ReadFunc) (value interface{}, err error) + var Lookup Algorithm = FluzCapacitorAlgorithm + type Epoch struct + Level uint8 + Time uint64 + func GetFirstEpoch(now uint64) Epoch + func GetNextEpoch(last Epoch, now uint64) Epoch + func Hint(last uint64) Epoch + func (e *Epoch) After(epoch Epoch) bool + func (e *Epoch) Base() uint64 + func (e *Epoch) Equals(epoch Epoch) bool + func (e *Epoch) ID() EpochID + func (e *Epoch) MarshalBinary() (data []byte, err error) + func (e *Epoch) String() string + func (e *Epoch) UnmarshalBinary(data []byte) error + type EpochID [8]byte + type ReadFunc func(epoch Epoch, now uint64) (interface{}, error)