Documentation ¶
Index ¶
- type Config
- type StreamEntityFactory
- func (s *StreamEntityFactory) CreateExtractor(ctx context.Context, spec *entity.Spec, instanceId string) (entity.Extractor, error)
- func (s *StreamEntityFactory) CreateLoader(ctx context.Context, spec *entity.Spec, instanceId string) (entity.Loader, error)
- func (s *StreamEntityFactory) CreateSinkExtractor(ctx context.Context, spec *entity.Spec, instanceId string) (entity.Extractor, error)
- func (s *StreamEntityFactory) CreateTransformer(ctx context.Context, spec *entity.Spec) (igeist.Transformer, error)
- func (s *StreamEntityFactory) Entities() map[string]map[string]bool
- func (s *StreamEntityFactory) SetAdminLoader(loader entity.Loader)
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 }
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 (*StreamEntityFactory) CreateLoader ¶
func (*StreamEntityFactory) CreateSinkExtractor ¶
func (s *StreamEntityFactory) CreateSinkExtractor(ctx context.Context, spec *entity.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, spec *entity.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)
Click to show internal directories.
Click to hide internal directories.