engine

package
v0.0.0-...-abf2cf9 Latest Latest
Warning

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

Go to latest
Published: Aug 31, 2021 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DefaultEngine = Engine{
	Debug:      true,
	Registry:   DefaultRegistry,
	ContextMap: map[string]interface{}{},
}
View Source
var DefaultRegistry = Registry{
	// contains filtered or unexported fields
}

Functions

This section is empty.

Types

type Engine

type Engine struct {
	Debug      bool
	Registry   Registry
	ContextMap map[string]interface{}
}

func (*Engine) RunWorkflow

func (e *Engine) RunWorkflow(w core.Workflow) error

func (*Engine) SetDebug

func (e *Engine) SetDebug(debug bool)

type Registry

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

func (*Registry) GetAction

func (r *Registry) GetAction(name string) (core.Action, bool)

func (*Registry) ListRegisteredActions

func (r *Registry) ListRegisteredActions() []string

func (*Registry) Register

func (r *Registry) Register(action core.Action)

Jump to

Keyboard shortcuts

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