engine

package
v0.11.10 Latest Latest
Warning

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

Go to latest
Published: Nov 4, 2022 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const (
	StateEngineStopped = iota
	StateEngineRunning
)

Variables

View Source
var DefaultEngine = NewDefaultEngine()

DefaultEngine ...

Functions

This section is empty.

Types

type Engine

type Engine interface {
	Setup()
	Start()
	State() (state int)
	Teardown()
	WithSystems(s ...System) Engine
}

Engine describes a solution that is divided into systems to implement different aspects of a complex problem.

func NewDefaultEngine

func NewDefaultEngine() Engine

NewDefaultEngine creates a new engine an returns its address.

type System

type System interface {
	Error() (err error)
	Process(stopCh chan bool)
	Setup()
	Teardown()
}

System implements a specific aspect of the solution.

Jump to

Keyboard shortcuts

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