engine

package
v0.25.0 Latest Latest
Warning

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

Go to latest
Published: Jun 3, 2024 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Error = fmt.Errorf("engine error")

Functions

This section is empty.

Types

type Engine

type Engine struct {
	// contains filtered or unexported fields
}

func New

func New(evch <-chan events.Event, tick action.Tick, tock action.Tock) *Engine

func (*Engine) RegisterEvent

func (e *Engine) RegisterEvent(ev events.Event) error

func (*Engine) RegisterService

func (e *Engine) RegisterService(sess *session.Context, svc *services.Service) error

func (*Engine) Start

func (e *Engine) Start(sess *session.Context) error

func (*Engine) Stats

func (e *Engine) Stats() *stats.Profiler

func (*Engine) Stop

func (e *Engine) Stop(sess *session.Context) error

type Settings

type Settings struct {
	ThrottleTicks settings.Duration `key:"throttle_ticks,save" default:"1s" mutation:"once" desc:"Throttle engine ticks duration"`
}

func (Settings) Blueprint

func (s Settings) Blueprint() (*settings.Blueprint, error)

Jump to

Keyboard shortcuts

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