engine

package
v0.5.7-rc1 Latest Latest
Warning

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

Go to latest
Published: Oct 23, 2018 License: BSD-3-Clause Imports: 18 Imported by: 13

Documentation

Index

Constants

View Source
const (
	ENV_RUNNER_TYPE_KEY       = "FLOGO_RUNNER_TYPE"
	RUNNER_TYPE_DEFAULT       = "POOLED"
	ENV_RUNNER_WORKERS_KEY    = "FLOGO_RUNNER_WORKERS"
	RUNNER_WORKERS_DEFAULT    = 5
	ENV_RUNNER_QUEUE_SIZE_KEY = "FLOGO_RUNNER_QUEUE"
	RUNNER_QUEUE_SIZE_DEFAULT = 50
)

Variables

This section is empty.

Functions

func GetRunnerQueueSize

func GetRunnerQueueSize() int

GetRunnerQueueSize returns the runner queue size

func GetRunnerType

func GetRunnerType() string

GetRunnerType returns the runner type

func GetRunnerWorkers

func GetRunnerWorkers() int

GetRunnerWorkers returns the number of workers to use

func LifeCycle added in v0.5.6

func LifeCycle(managedEntity managed.Managed)

func NewPooledRunnerConfig

func NewPooledRunnerConfig() *runner.PooledConfig

NewPooledRunnerConfig creates a new Pooled config, looks for environment variables to override default values

func RunEngine added in v0.5.5

func RunEngine(e Engine)

Types

type Engine

type Engine interface {
	// Init initialize the engine
	Init(directRunner bool) error

	// Start starts the engine
	Start() error

	// Stop stop the engine
	Stop() error

	// TriggerInfos get info for the triggers
	TriggerInfos() []*managed.Info
}

Interface for the engine behaviour

func New

func New(appCfg *app.Config) (Engine, error)

New creates a new Engine

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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