Versions in this module Expand all Collapse all v1 v1.0.0 Nov 7, 2021 Changes in this version + func ASCIIschemeForEach(scheme string, callback ForEachEvent) (nodes []idx.ValidatorID, events map[idx.ValidatorID]dag.Events, ...) + func ASCIIschemeToDAG(scheme string) (nodes []idx.ValidatorID, events map[idx.ValidatorID]dag.Events, ...) + func ByParents(ee dag.Events) (res dag.Events) + func DAGtoASCIIscheme(events dag.Events) (string, error) + func ForEachRandEvent(nodes []idx.ValidatorID, eventCount int, parentCount int, r *rand.Rand, ...) (events map[idx.ValidatorID]dag.Events) + func ForEachRandFork(nodes []idx.ValidatorID, cheatersArr []idx.ValidatorID, eventCount int, ...) (events map[idx.ValidatorID]dag.Events) + func GenNodes(nodeCount int) (nodes []idx.ValidatorID) + func GenRandEvents(nodes []idx.ValidatorID, eventCount int, parentCount int, r *rand.Rand) (events map[idx.ValidatorID]dag.Events) + type ForEachEvent struct + Build func(e dag.MutableEvent, name string) error + Process func(e dag.Event, name string) + type TestEvent struct + Name string + func (e *TestEvent) AddParent(id hash.Event) + func (e *TestEvent) Bytes() []byte + type TestEventMarshaling struct + Creator idx.ValidatorID + Epoch idx.Epoch + Frame idx.Frame + ID hash.Event + Lamport idx.Lamport + Name string + Parents hash.Events + Seq idx.Event + type TestEvents []*TestEvent + func (ee TestEvents) ByParents() (res TestEvents) + func (ee TestEvents) String() string