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" )
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.
func Process ¶
Process performs the entire pipeline process for selection
Types ¶
type Callee ¶
Callee defines the function body of Processor.
type Pipeline ¶
Pipeline structure is the calling unit in pipeline.
Source Files
¶
- pipeline.go
- processor.go
- registry.go
Click to show internal directories.
Click to hide internal directories.