worker

package
v0.0.0-...-4ba4a5e Latest Latest
Warning

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

Go to latest
Published: Jun 27, 2022 License: MIT Imports: 17 Imported by: 1

Documentation

Index

Constants

View Source
const (
	StatesErrorALL                    = "States.ALL"
	StatesErrorHeartbeatTimeout       = "States.HeartbeatTimeout"
	StatesErrorTimeout                = "States.Timeout"
	StatesErrorTaskFailed             = "States.TaskFailed"
	StatesErrorPermissions            = "States.Permissions"
	StatesErrorResultPathMatchFailure = "States.ResultPathMatchFailure"
	StatesErrorParameterPathFailure   = "States.ParameterPathFailure"
	StatesErrorBranchFailed           = "States.BranchFailed"
	StatesErrorNoChoiceMatched        = "States.NoChoiceMatched"
	StatesErrorIntrinsicFailure       = "States.IntrinsicFailure"
)

Variables

View Source
var (
	ErrStateMachineTerminated = errors.New("state machine terminated")
	ErrUnknownStateType       = errors.New("unknown state type")
)
View Source
var (
	EmptyJSON = []byte("{}")
)

Functions

func Exec

func Exec(ctx context.Context, coj *compiler.CtxObj, w compiler.Workflow, input *bytes.Buffer) ([]byte, error)

func Line

func Line() string

func LineN

func LineN(n int) string

func NewStatesError

func NewStatesError(statesErr string, err error) statesError

Types

type Workflow

type Workflow struct {
	*compiler.Workflow
	ID string
}

func NewWorkflow

func NewWorkflow(w *compiler.Workflow) (*Workflow, error)

func (Workflow) Exec

func (w Workflow) Exec(ctx context.Context, coj *compiler.CtxObj, input interface{}) (interface{}, error)

Jump to

Keyboard shortcuts

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