Documentation ¶
Index ¶
- Constants
- func InvokeProcessor(node selector.Selection, name string, args []string) (selector.Selection, error)
- func Process(selection selector.Selection, pipes Pipelines) (node selector.Selection, err error)
- func RegistProcessor(name string, callee Callee, argsCount int) error
- type Callee
- type Pipeline
- type Pipelines
- type Processor
Constants ¶
View Source
const ( // ErrUndefinedMethod means method undefined ErrUndefinedMethod = "undefined method: %s" // ErrWrongArgNumber means wrong args number ErrWrongArgNumber = "method %s expects %d parameters, but %d received" // ErrAlreadyExists means processor already exists ErrAlreadyExists = "processor regist failed: %s already exists" )
View Source
const ( // InvokePlaceholder is used for its own replacement. // When InvokePlaceholder appears in args, it will be replaced by the string of its own node. InvokePlaceholder = string(26) + "{$}" + string(26) )
Variables ¶
This section is empty.
Functions ¶
func InvokeProcessor ¶
func InvokeProcessor(node selector.Selection, name string, args []string) (selector.Selection, error)
InvokeProcessor is used to invoke a Processor.
Types ¶
Click to show internal directories.
Click to hide internal directories.