Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetLoadFilePrefix ¶
func WithConfig ¶
func WithConfig(ld *LoadFileGenerator, config *config.Config)
Types ¶
type ControlPlaneClient ¶
type ControlPlaneClient interface {
DestinationHistory(ctx context.Context, revisionID string) (backendconfig.DestinationT, error)
}
type LoadFileGenerator ¶
type LoadFileGenerator struct { Logger logger.Logger Notifier Notifier StageRepo StageFileRepo LoadRepo LoadFileRepo ControlPlaneClient ControlPlaneClient // contains filtered or unexported fields }
func (*LoadFileGenerator) CreateLoadFiles ¶
func (lf *LoadFileGenerator) CreateLoadFiles(ctx context.Context, job *model.UploadJob) (int64, int64, error)
CreateLoadFiles for the staging files that have not been successfully processed.
func (*LoadFileGenerator) ForceCreateLoadFiles ¶
func (lf *LoadFileGenerator) ForceCreateLoadFiles(ctx context.Context, job *model.UploadJob) (int64, int64, error)
ForceCreateLoadFiles creates load files for the staging files, regardless if they are already successfully processed.
type LoadFileRepo ¶
type Notifier ¶
type Notifier interface {
Publish(payload pgnotifier.MessagePayload, schema *warehouseutils.Schema, priority int) (ch chan []pgnotifier.Response, err error)
}
type StageFileRepo ¶
type WorkerJobRequest ¶
type WorkerJobRequest struct { BatchID string UploadID int64 StagingFileID int64 StagingFileLocation string UploadSchema model.Schema WorkspaceID string SourceID string SourceName string DestinationID string DestinationName string DestinationType string DestinationNamespace string DestinationRevisionID string StagingDestinationRevisionID string DestinationConfig map[string]interface{} StagingDestinationConfig interface{} UseRudderStorage bool StagingUseRudderStorage bool UniqueLoadGenID string RudderStoragePrefix string Output []WorkerJobResponse LoadFilePrefix string // prefix for the load file name LoadFileType string }
Click to show internal directories.
Click to hide internal directories.