withtheflow

package module
v0.0.0-...-8751a37 Latest Latest
Warning

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

Go to latest
Published: May 21, 2017 License: MIT Imports: 0 Imported by: 0

README

withtheflow Build Status Coverage Status Go Report Card

Lightweight Golang local workflow engine

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FlowHandler

type FlowHandler func(args interface{}, runtime Runtime, subFlowResults []interface{}) interface{}

type FlowId

type FlowId interface{}

type Runtime

type Runtime interface {
	// Schedules a new flow which combines the results of the given flow ids.
	AddFlow(funcname string, args interface{}, dependentFlows ...FlowId) FlowId
	// Sets the result of this flow to be the result of the given flow id (once it has finished executing)
	// The return of DeferredResult should be returned by the flow handler
	DeferredResult(FlowId) interface{}
}

type WorkflowRunner

type WorkflowRunner interface {
	SetFlowHandlers(map[string]FlowHandler) WorkflowRunner
	Run(funcname string, args interface{}) interface{}
}

Directories

Path Synopsis
examples

Jump to

Keyboard shortcuts

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