Documentation ¶
Index ¶
- type Engine
- func (e *Engine) BroadcastExecutionReceipt(ctx context.Context, receipt *flow.ExecutionReceipt) error
- func (e *Engine) Done() <-chan struct{}
- func (e *Engine) Process(originID flow.Identifier, event interface{}) error
- func (e *Engine) ProcessLocal(event interface{}) error
- func (e *Engine) Ready() <-chan struct{}
- func (e *Engine) Submit(originID flow.Identifier, event interface{})
- func (e *Engine) SubmitLocal(event interface{})
- type ProviderEngine
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Engine ¶
type Engine struct {
// contains filtered or unexported fields
}
An Engine provides means of accessing data about execution state and broadcasts execution receipts to nodes in the network. Also generates and saves execution receipts
func New ¶
func New( logger zerolog.Logger, tracer module.Tracer, net module.Network, state protocol.ReadOnlyState, me module.Local, execState state.ReadOnlyExecutionState, stateSync sync.StateSynchronizer, metrics module.ExecutionMetrics, ) (*Engine, error)
func (*Engine) BroadcastExecutionReceipt ¶
func (*Engine) Done ¶
func (e *Engine) Done() <-chan struct{}
Done returns a channel that will close when the engine has successfully stopped.
func (*Engine) Process ¶
func (e *Engine) Process(originID flow.Identifier, event interface{}) error
func (*Engine) ProcessLocal ¶
func (*Engine) Ready ¶
func (e *Engine) Ready() <-chan struct{}
Ready returns a channel that will close when the engine has successfully started.
func (*Engine) Submit ¶
func (e *Engine) Submit(originID flow.Identifier, event interface{})
func (*Engine) SubmitLocal ¶
func (e *Engine) SubmitLocal(event interface{})
type ProviderEngine ¶
Click to show internal directories.
Click to hide internal directories.