Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Context ¶
type Context map[string]interface{}
Context 上下文
func (Context) GetContextBool ¶
GetContextBool get a bool value by key from context
func (Context) GetContextInt ¶
GetContextInt get a int value by key from context
func (Context) GetContextInterface ¶
GetContextInterface get context value
type FailureFunc ¶
FailureFunc 错误后执行函数
type Workflow ¶
type Workflow struct {
// contains filtered or unexported fields
}
Workflow work flow
func NewWithFailedFunc ¶
func NewWithFailedFunc(fun FailureFunc) *Workflow
NewWithFailedFunc 生成包含错误执行方法的工作流对象
func (*Workflow) SetFailureFunc ¶
func (p *Workflow) SetFailureFunc(fun FailureFunc) *Workflow
SetFailureFunc set failure function 设置错误后的执行方法
func (*Workflow) SetLastStepConcurrency ¶
SetLastStepConcurrency set the return flag if running before last step 在最后一步之前是否直接返回
func (*Workflow) SetStartStep ¶
SetStartStep set start step 设置第一个启动函数
Click to show internal directories.
Click to hide internal directories.