Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Factory ¶ added in v0.2.0
type Factory struct { }
Factory creates a first step reduction Component
func (*Factory) Instantiate ¶ added in v0.2.0
Instantiate a generation component
type Generator ¶
type Generator struct {
// contains filtered or unexported fields
}
Generator is the component that signals a restart of score generation and selection after a Restart Event is detected
func NewComponent ¶ added in v0.2.0
func NewComponent() *Generator
NewComponent instantiates a new Generator
func (*Generator) Collect ¶ added in v0.2.0
Collect `Restart` events and triggers a Generation event
func (*Generator) Finalize ¶ added in v0.2.0
func (g *Generator) Finalize()
Finalize as part of the Component interface
func (*Generator) Initialize ¶ added in v0.2.0
func (g *Generator) Initialize(eventPlayer consensus.EventPlayer, signer consensus.Signer, ru consensus.RoundUpdate) []consensus.TopicListener
Initialize the Generator by subscribing to `Restart` topic. The Listener is marked as LowPriority to allow for the `Selector` to be notified first
Click to show internal directories.
Click to hide internal directories.