engine

package
v0.0.0-...-adbeaea Latest Latest
Warning

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

Go to latest
Published: Jul 26, 2019 License: MIT Imports: 5 Imported by: 0

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,
	logger *logrus.Logger) (*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