builders

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jan 3, 2020 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Builders = BuilderMap{

	"interpreter": &interpreters.Conf{},

	"generator-int-range":  SingletonBuilder{Handler: generators.DefaultIntRange},
	"generator-time-range": SingletonBuilder{Handler: generators.DefaultTimeRange},

	"io-reader-clipboard": SingletonBuilder{Handler: io.DefaultReaderClipboard},
	"io-writer-clipboard": SingletonBuilder{Handler: io.DefaultWriterClipboard},
	"io-writer-stdout":    SingletonBuilder{Handler: io.DefaultWriterStdOut},
	"io-writer-file":      &io.WriterFile{},

	"parser-unix":   SingletonBuilder{Handler: parsers.DefaultUnixParser},
	"parser-json":   SingletonBuilder{Handler: parsers.DefaultJSONParser},
	"parser-xlsx":   SingletonBuilder{Handler: parsers.DefaultXLSXParser},
	"parser-base64": SingletonBuilder{Handler: parsers.DefaultBase64Parser},

	"formatter-xml": SingletonBuilder{Handler: formatters.DefaultXML},

	"iterator":        &iterators.Conf{},
	"iterator-map":    &iterators.Conf{Type: "map"},
	"iterator-reduce": &iterators.Conf{Type: "reduce"},
	"iterator-select": &iterators.Conf{Type: "select"},
	"iterator-chunk":  &iterators.Conf{Type: "chunk"},

	"string-split":              &strings.SeparatorConf{Type: "split"},
	"string-join":               &strings.SeparatorConf{Type: "join"},
	"string-replace":            &strings.Replacer{},
	"string-regexp-all-replace": &strings.RegexpAllReplacer{},
	"string-unquote":            SingletonBuilder{Handler: &strings.Unquote{}},
	"finder-json-attr":          &strings.FinderJSONAttr{},

	"net-http": SingletonBuilder{Handler: net.DefaultHTTP},

	"notify-desktop": &gui.DesktopNotificator{},

	"mysql": &sql.MySQL{},

	"redis": &nosql.Redis{},

	"os-cmd-exec": &os.CmdExec{},
}

Functions

This section is empty.

Types

type Builder

type Builder interface {
	Build() (pipeline.Handler, error)
}

type BuilderMap

type BuilderMap map[string]Builder

func (BuilderMap) GetHandlerBuilderOK

func (m BuilderMap) GetHandlerBuilderOK(id string) (pipeline.HandlerBuilder, bool)

type SingletonBuilder

type SingletonBuilder struct {
	Handler pipeline.Handler
}

func (SingletonBuilder) Build

func (b SingletonBuilder) Build() (pipeline.Handler, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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