assembly

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Oct 4, 2022 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Loaders    entity.LoaderFactories
	Extractors entity.ExtractorFactories
	NotifyChan entity.NotifyChan `json:"-"`
	Log        bool
}

func (Config) Close

func (c Config) Close() error

type StreamEntityFactory

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

StreamEntityFactory creates stream entities based on Stream Spec config and is a singleton, created by the Service, and operated by the StreamBuilder (also a singleton), which is given to the Supervisor during creation.

func NewStreamEntityFactory

func NewStreamEntityFactory(config Config) *StreamEntityFactory

func (*StreamEntityFactory) CreateExtractor

func (s *StreamEntityFactory) CreateExtractor(ctx context.Context, etlSpec igeist.Spec, instanceId string) (entity.Extractor, error)

func (*StreamEntityFactory) CreateLoader

func (s *StreamEntityFactory) CreateLoader(ctx context.Context, etlSpec igeist.Spec, instanceId string) (entity.Loader, error)

func (*StreamEntityFactory) CreateSinkExtractor

func (s *StreamEntityFactory) CreateSinkExtractor(ctx context.Context, etlSpec igeist.Spec, instanceId string) (entity.Extractor, error)

CreateSinkExtractor creates an extractor belonging to a specific sink loader, enabling reading data that the loader has written to the sink.

func (*StreamEntityFactory) CreateTransformer

func (s *StreamEntityFactory) CreateTransformer(ctx context.Context, etlSpec igeist.Spec) (igeist.Transformer, error)

func (*StreamEntityFactory) Entities added in v0.3.0

func (s *StreamEntityFactory) Entities() map[string]map[string]bool

func (*StreamEntityFactory) SetAdminLoader

func (s *StreamEntityFactory) SetAdminLoader(loader entity.Loader)

Jump to

Keyboard shortcuts

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