Versions in this module Expand all Collapse all v0 v0.1.0 Apr 25, 2022 Changes in this version + type BaseEvent struct + func (e *BaseEvent) Creator() idx.ValidatorID + func (e *BaseEvent) Epoch() idx.Epoch + func (e *BaseEvent) Frame() idx.Frame + func (e *BaseEvent) ID() hash.Event + func (e *BaseEvent) IsSelfParent(hash hash.Event) bool + func (e *BaseEvent) Lamport() idx.Lamport + func (e *BaseEvent) Parents() hash.Events + func (e *BaseEvent) SelfParent() *hash.Event + func (e *BaseEvent) Seq() idx.Event + func (e *BaseEvent) Size() int + func (e *BaseEvent) String() string + type Event interface + Creator func() idx.ValidatorID + Epoch func() idx.Epoch + Frame func() idx.Frame + ID func() hash.Event + IsSelfParent func(hash hash.Event) bool + Lamport func() idx.Lamport + Parents func() hash.Events + SelfParent func() *hash.Event + Seq func() idx.Event + Size func() int + String func() string + type Events []Event + func (ee Events) IDs() hash.Events + func (ee Events) Metric() (metric Metric) + func (ee Events) String() string + type Metric struct + Num idx.Event + Size uint64 + func (m Metric) String() string + type MutableBaseEvent struct + func (e *MutableBaseEvent) SetCreator(v idx.ValidatorID) + func (e *MutableBaseEvent) SetEpoch(v idx.Epoch) + func (e *MutableBaseEvent) SetFrame(v idx.Frame) + func (e *MutableBaseEvent) SetID(rID [24]byte) + func (e *MutableBaseEvent) SetLamport(v idx.Lamport) + func (e *MutableBaseEvent) SetParents(v hash.Events) + func (e *MutableBaseEvent) SetSeq(v idx.Event) + func (me *MutableBaseEvent) Build(rID [24]byte) *BaseEvent + type MutableEvent interface + SetCreator func(idx.ValidatorID) + SetEpoch func(idx.Epoch) + SetFrame func(idx.Frame) + SetID func(id [24]byte) + SetLamport func(idx.Lamport) + SetParents func(hash.Events) + SetSeq func(idx.Event)