orchestrator

package
v0.16.0 Latest Latest
Warning

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

Go to latest
Published: Oct 25, 2019 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EventSDK added in v0.15.0

type EventSDK interface {
	GetStream(f *eventsdk.Filter) *eventsdk.Listener
}

EventSDK event interface needed for the orchestrator

type ExecutionSDK added in v0.15.0

type ExecutionSDK interface {
	GetStream(f *executionsdk.Filter) *executionsdk.Listener
	Get(hash hash.Hash) (*execution.Execution, error)
	Execute(processHash, instanceHash, eventHash, parentHash hash.Hash, stepID string, taskKey string, inputData *types.Struct, tags []string) (executionHash hash.Hash, err error)
}

ExecutionSDK execution interface needed for the orchestrator

type Orchestrator

type Orchestrator struct {
	ErrC chan error
	// contains filtered or unexported fields
}

Orchestrator manages the executions based on the definition of the processes

func New

func New(event EventSDK, execution ExecutionSDK, process ProcessSDK) *Orchestrator

New creates a new Process instance

func (*Orchestrator) Start

func (s *Orchestrator) Start() error

Start the process engine

type ProcessSDK added in v0.15.0

type ProcessSDK interface {
	List() ([]*process.Process, error)
}

ProcessSDK process interface needed for the orchestrator

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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