Documentation
¶
Overview ¶
Package defines a Flow type that represents an entire data pipeline.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Run ¶
Build a Flow with the passed FactoryFn and run it.
This is a shorthand of creating a Factory with NewFactory, building a Flow with the Factory, and running the built Flow.
func RunWithConfig ¶
Build a Flow with the passed FactoryFnWithConfig and run it.
This is a shorthand of creating a Factory with NewFactoryWithConfig, building a Flow with the Factory, and running the built Flow.
Types ¶
type Factory ¶
An object to build a Flow.
func NewFactoryWithConfig ¶
func NewFactoryWithConfig[C any](fn FactoryFnWithConfig[C], cfgPath string) Factory
Create a Factory with a FactoryFnWithConfig. The passed cfgPath is read when building a Flow, and passed to the FactoryFnWithConfig.
type FactoryFnWithConfig ¶
A function that defines how to build a Flow with a configuration struct.
type Flow ¶
type Flow struct {
// contains filtered or unexported fields
}
A type that defines an entire data pipeline.
The behavior of a Flow is defined by a task that doesn't have any input and output. Such a task is typically built as a pipeline that starts with a Source and ends with a Sink.