sources

package
v0.0.0-...-a47161a Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 18, 2018 License: MPL-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Definition

type Definition struct {
	InputDefinition json.RawMessage
	ParserDefition  json.RawMessage
}

type Factory

type Factory struct {
	// contains filtered or unexported fields
}

func NewFactory

func NewFactory(inputFactory InputFactory, parserFactory ParserFactory) *Factory

func (*Factory) NewSource

func (fact *Factory) NewSource(def Definition) (*Source, error)

type InputFactory

type InputFactory interface {
	NewInput(json.RawMessage) (io.ReadCloser, error)
}

type ParserFactory

type ParserFactory interface {
	NewParser(json.RawMessage) (io.WriteCloser, error)
}

type Source

type Source struct {
	// contains filtered or unexported fields
}

func New

func New(input io.ReadCloser, parser io.WriteCloser) *Source

func (*Source) Process

func (src *Source) Process() error

func (*Source) Stop

func (src *Source) Stop()

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL