usecases

package
v0.0.0-...-2e5ebc8 Latest Latest
Warning

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

Go to latest
Published: May 19, 2023 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetEFMETLPipeline

func GetEFMETLPipeline() models.NewETLPipeline

func GetWeatherETLPipeline

func GetWeatherETLPipeline() models.NewETLPipeline

func LoadEFMEventLogs

func LoadEFMEventLogs(filePath string) error

Types

type EFMETLPipeline

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

func NewEFMETLPipeline

func NewEFMETLPipeline(file string, dbRepository repository.Repository) *EFMETLPipeline

func (*EFMETLPipeline) Extract

func (efm *EFMETLPipeline) Extract() (extractedRecords []string, err error)

func (*EFMETLPipeline) Load

func (efm *EFMETLPipeline) Load(records []interface{}, ctx context.Context) error

func (*EFMETLPipeline) RunETL

func (efm *EFMETLPipeline) RunETL(ctx context.Context) error

func (*EFMETLPipeline) Transform

func (efm *EFMETLPipeline) Transform(records []string) (transformedRecords []interface{}, err error)

type EFMLogEvent

type EFMLogEvent struct {
	DateTime  string
	Lightning bool
	Distance  uint8
}

type ETLWorkerPool

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

func NewETLWorkerPool

func NewETLWorkerPool(cfgs ...ETLWorkerPoolConfig) *ETLWorkerPool

func (*ETLWorkerPool) Run

func (etl *ETLWorkerPool) Run()

func (*ETLWorkerPool) SetFiles

func (etl *ETLWorkerPool) SetFiles(files []string) error

func (*ETLWorkerPool) SetPipeline

func (etl *ETLWorkerPool) SetPipeline(pipeline models.NewETLPipeline)

type ETLWorkerPoolConfig

type ETLWorkerPoolConfig func(etl *ETLWorkerPool)

func NewETLWorkerPoolConfig

func NewETLWorkerPoolConfig(workers int64, repo repository.Repository, files []string, pipeline models.NewETLPipeline) ETLWorkerPoolConfig

type WeatherETLPipeline

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

func NewWeatherETLPipeline

func NewWeatherETLPipeline(filepath string, dbRepository repository.Repository) *WeatherETLPipeline

func (*WeatherETLPipeline) Extract

func (w *WeatherETLPipeline) Extract() (extractedRecords []string, err error)

func (*WeatherETLPipeline) Load

func (w *WeatherETLPipeline) Load(records []interface{}, ctx context.Context) error

func (*WeatherETLPipeline) RunETL

func (w *WeatherETLPipeline) RunETL(ctx context.Context) error

func (*WeatherETLPipeline) Transform

func (w *WeatherETLPipeline) Transform(records []string) (transformedRecords []interface{}, err error)

Jump to

Keyboard shortcuts

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