Documentation
¶
Overview ¶
Package etl provides protocol data ETL pipeline.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Pipeline ¶
type Pipeline struct {
Name string `json:"name"`
Source SourceType `json:"source"`
SourceURI string `json:"source_uri"`
Transforms []TransformOp `json:"transforms"`
Sink SinkType `json:"sink"`
SinkURI string `json:"sink_uri"`
}
Pipeline represents an ETL pipeline configuration.
func (*Pipeline) AddTransform ¶
func (p *Pipeline) AddTransform(op TransformOp) *Pipeline
AddTransform adds a transform step.
type SourceType ¶
type SourceType string
SourceType represents an ETL data source type.
const ( SourcePCAP SourceType = "pcap" SourceInterface SourceType = "interface" SourceKafka SourceType = "kafka" SourceFile SourceType = "file" )
type TransformOp ¶
type TransformOp struct {
Type string `json:"type"` // decode, filter, aggregate, format
Config string `json:"config"`
}
TransformOp represents a transform operation.
Click to show internal directories.
Click to hide internal directories.