Versions in this module Expand all Collapse all v0 v0.4.2 Jun 28, 2019 v0.4.1 Jun 13, 2019 Changes in this version + const DefaultLevel + const EpochLength + const HighestLevel + const LowestLevel + const MaxTime + var LongEarthLookaheadDelay = 250 * time.Millisecond + var LongEarthLookbackDelay = 250 * time.Millisecond + var NoClue = Epoch + var TimeAfter = time.After + func FluzCapacitorAlgorithm(ctx context.Context, now uint64, hint Epoch, read ReadFunc) (value interface{}, err error) + func GetNextLevel(last Epoch, now uint64) uint8 + func LongEarthAlgorithm(ctx context.Context, now uint64, hint Epoch, read ReadFunc) (interface{}, error) + type Algorithm func(ctx context.Context, now uint64, hint Epoch, read ReadFunc) (value interface{}, err error) + var Lookup Algorithm = LongEarthAlgorithm + 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(ctx context.Context, epoch Epoch, now uint64) (interface{}, error)