engine

package
v0.11.4 Latest Latest
Warning

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

Go to latest
Published: Oct 9, 2022 License: MIT Imports: 2 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 Plugin

type Plugin func(er entity.Repository)

Plugin is a function which handles a specific kind of functionality by using an Entity Repository to gain access to the entities.

type System

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

System implements a specific aspect of the solution.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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