Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Factory ¶
Factory creates a new Poll
func NewEarlyTermNoTraversalFactory ¶
NewEarlyTermNoTraversalFactory returns a factory that returns polls with early termination, without doing DAG traversals
func NewNoEarlyTermFactory ¶
func NewNoEarlyTermFactory() Factory
NewNoEarlyTermFactory returns a factory that returns polls with no early termination
type Poll ¶
type Poll interface { formatting.PrefixedStringer Vote(vdr ids.NodeID, votes []ids.ID) Finished() bool Result() bag.UniqueBag[ids.ID] }
Poll is an outstanding poll
type Set ¶
type Set interface { fmt.Stringer Add(requestID uint32, vdrs bag.Bag[ids.NodeID]) bool Vote(requestID uint32, vdr ids.NodeID, votes []ids.ID) []bag.UniqueBag[ids.ID] Len() int }
Set is a collection of polls
func NewSet ¶
func NewSet( factory Factory, log logging.Logger, namespace string, reg prometheus.Registerer, ) Set
NewSet returns a new empty set of polls
Click to show internal directories.
Click to hide internal directories.