Documentation ¶
Index ¶
- Constants
- Variables
- type Fork
- type Input
- type MultiInput
- type Node
- type Output
- type Parser
- type ParserError
- type Pipeline
- type PipelineBuilder
- func (b PipelineBuilder) MakePipeline(pipe Pipeline) (*bitflow.SamplePipeline, error)
- func (b PipelineBuilder) VerifyFork(name Token, params map[string]string) error
- func (b PipelineBuilder) VerifyInput(inputs []string) error
- func (b PipelineBuilder) VerifyOutput(output string) error
- func (b PipelineBuilder) VerifyStep(name Token, params map[string]string) error
- type PipelineStep
- type PipelineVerification
- type Pipelines
- type Scanner
- type Step
- type Token
- type TokenType
Constants ¶
View Source
const ExpectedPipelineStepError = "Expected pipeline step (identifier, string or '{')"
View Source
const MultiplexForkName = "multiplex"
Variables ¶
View Source
var (
ErrorMissingQuote = "Unexpected EOF, missing closing %v quote"
)
Functions ¶
This section is empty.
Types ¶
type Input ¶
type Input []Token
Data input (file, console, TCP, ...) Inside a Fork, this identifies the pipeline.
type MultiInput ¶
type MultiInput struct {
Pipelines
}
type ParserError ¶
func (ParserError) Error ¶
func (e ParserError) Error() string
type Pipeline ¶
type Pipeline []PipelineStep
Depending on their context, pipelines may contain different elements. Any element can be Output, Step, Fork or Pipelines. The first element depends on the context:
- if the pipeline has no predecessor (does not receive data from another pipeline or step), it can start with anything, including an Input or Inputs
- if the pipeline is inside a Fork, it must start with Input or Inputs
- if the pipeline is inside a multiplex fork (a Pipelines without a surrounding Fork, that also has a predecessor), it cannot start with an Input or Inputs
type PipelineBuilder ¶
type PipelineBuilder struct {
reg.ProcessorRegistry
}
func (PipelineBuilder) MakePipeline ¶
func (b PipelineBuilder) MakePipeline(pipe Pipeline) (*bitflow.SamplePipeline, error)
func (PipelineBuilder) VerifyFork ¶
func (b PipelineBuilder) VerifyFork(name Token, params map[string]string) error
func (PipelineBuilder) VerifyInput ¶
func (b PipelineBuilder) VerifyInput(inputs []string) error
func (PipelineBuilder) VerifyOutput ¶
func (b PipelineBuilder) VerifyOutput(output string) error
func (PipelineBuilder) VerifyStep ¶
func (b PipelineBuilder) VerifyStep(name Token, params map[string]string) error
type PipelineStep ¶
type PipelineStep interface { Node }
type PipelineVerification ¶
Click to show internal directories.
Click to hide internal directories.