engine

package
v0.3.7 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 27, 2019 License: MIT Imports: 7 Imported by: 4

Documentation

Index

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
}

Engine is the actor that coordinates State, Service and Consensus

func NewEngine

func NewEngine(config config.Config, consensus consensus.Consensus) (*Engine, error)

NewEngine instantiates a new Engine with coupled State, Service, and Consensus

func (*Engine) Run

func (e *Engine) Run() error

Run starts the engine's Service asynchronously and starts the Consensus system synchronously

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL