Versions in this module Expand all Collapse all v0 v0.9.0 Sep 7, 2023 v0.8.0 Apr 17, 2023 Changes in this version + var ErrArgNumber = fmt.Errorf("action arg number invalid") + var ErrExist = fmt.Errorf("action have exist") + type Action interface + ArgType func(index int) arg.TypeList + Arity func() int + Execute func(ceCtx *context.EventContext) error + Init func(args []arg.Arg) error + IsVariadic func() bool + Name func() string + type CommonAction struct + ActionName string + ArgTypes []common.Type + Args []arg.Arg + FixedArgs []arg.TypeList + Fn function.Function + TargetArg arg.Arg + VariadicArg arg.TypeList + func (a *CommonAction) ArgType(index int) arg.TypeList + func (a *CommonAction) Arity() int + func (a *CommonAction) IsVariadic() bool + func (a *CommonAction) Name() string + func (a *CommonAction) RunArgs(ceCtx *context.EventContext) ([]interface{}, error) + type FunctionAction struct + func (a *FunctionAction) Execute(ceCtx *context.EventContext) error + func (a *FunctionAction) Init(args []arg.Arg) error + type NestAction interface + InitAction func(actions []Action) error + type NestActionImpl struct + Actions []Action + func (c *NestActionImpl) InitAction(actions []Action) error + type SourceTargetSameAction struct + func (a *SourceTargetSameAction) Init(args []arg.Arg) error