engine

package
v0.5.1 Latest Latest
Warning

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

Go to latest
Published: Aug 23, 2022 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	StateEngineStopped = iota
	StateEngineRunning
)

Variables

View Source
var DefaultEngine = NewDefaultEngine()

Functions

This section is empty.

Types

type Engine

type Engine interface {
	Setup() (stopCh chan bool)
	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

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