Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrExist = fmt.Errorf("action have exist") ErrArgNumber = fmt.Errorf("action arg number invalid") )
Functions ¶
This section is empty.
Types ¶
type CommonAction ¶
type CommonAction struct { ActionName string FixedArgs []arg.TypeList VariadicArg arg.TypeList Fn function.Function Args []arg.Arg ArgTypes []common.Type TargetArg arg.Arg }
func (*CommonAction) Arity ¶
func (a *CommonAction) Arity() int
func (*CommonAction) IsVariadic ¶
func (a *CommonAction) IsVariadic() bool
func (*CommonAction) Name ¶
func (a *CommonAction) Name() string
func (*CommonAction) RunArgs ¶
func (a *CommonAction) RunArgs(ceCtx *context.EventContext) ([]interface{}, error)
type FunctionAction ¶
type FunctionAction struct {
CommonAction
}
func (*FunctionAction) Execute ¶
func (a *FunctionAction) Execute(ceCtx *context.EventContext) error
type NestAction ¶
type NestActionImpl ¶
type NestActionImpl struct { CommonAction Actions []Action }
func (*NestActionImpl) InitAction ¶
func (c *NestActionImpl) InitAction(actions []Action) error
type SourceTargetSameAction ¶
type SourceTargetSameAction struct {
FunctionAction
}
Click to show internal directories.
Click to hide internal directories.