Documentation ¶
Index ¶
- Constants
- type Flow
- type Input
- type Output
- type Outputs
- type Parser
- func (p *Parser) LoadInputFormat(name string, ctor core.InputFormatCtor) bool
- func (p *Parser) LoadInputModifier(name string, ctor core.InputModifierCtor) bool
- func (p *Parser) LoadOutputFormat(name string, ctor core.OutputFormatCtor) bool
- func (p *Parser) LoadOutputModifier(name string, ctor core.OutputModifierCtor) bool
- func (p *Parser) LoadSink(name string, ctor core.SinkCtor) bool
- func (p *Parser) LoadSource(name string, ctor core.SourceCtor) bool
- func (p *Parser) Parse(ctx core.Context, inputLine string, outputLines []string) (*Flow, error)
Constants ¶
const (
// Separator is the character used separate flow parts.
Separator = "|"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Input ¶
type Input struct { Source core.Source Modifiers core.InputModifiers Format core.InputFormat // contains filtered or unexported fields }
Input joins a source and a format with optional modifiers.
func NewInput ¶
func NewInput(s core.Source, mods core.InputModifiers, f core.InputFormat) *Input
NewInput creates a new input.
type Output ¶
type Output struct { Format core.OutputFormat Modifiers core.OutputModifiers Sink core.Sink // contains filtered or unexported fields }
Output joins a format and sink with optional modifiers.
func NewOutput ¶
func NewOutput(f core.OutputFormat, mods core.OutputModifiers, s core.Sink) *Output
NewOutput creates an output connecting a format and a sink.
type Parser ¶
type Parser struct {
// contains filtered or unexported fields
}
Parser parses text into a *flow.Flow
func (*Parser) LoadInputFormat ¶
func (p *Parser) LoadInputFormat(name string, ctor core.InputFormatCtor) bool
LoadInputFormat loads a new input format and returns a value indicating whether the value replaced a previous entry.
func (*Parser) LoadInputModifier ¶
func (p *Parser) LoadInputModifier(name string, ctor core.InputModifierCtor) bool
LoadInputModifier loads a new input modifier and returns a value inidicating whether the value replaced a previous entry.
func (*Parser) LoadOutputFormat ¶
func (p *Parser) LoadOutputFormat(name string, ctor core.OutputFormatCtor) bool
LoadOutputFormat loads a new output format and returns a value indicating whether the value replaced a previous entry.
func (*Parser) LoadOutputModifier ¶
func (p *Parser) LoadOutputModifier(name string, ctor core.OutputModifierCtor) bool
LoadOutputModifier loads a new output modifier and returns a value indicating whether the value replaced a previous entry.
func (*Parser) LoadSink ¶
LoadSink loads a new sink and returns a value indicatin whether the value replaced a previous entry.
func (*Parser) LoadSource ¶
func (p *Parser) LoadSource(name string, ctor core.SourceCtor) bool
LoadSource loads a new source and returns a value indicating whether the value replaced a previous entry.