Documentation ¶
Index ¶
- Constants
- Variables
- func ConvertToFilteredTransformerResponse(events []transformer.TransformerEventT, filterUnsupportedMessageTypes bool) transformer.ResponseT
- func ProcessorManagerSetup(processor *HandleT)
- func RegisterAdminHandlers(readonlyProcErrorDB jobsdb.ReadonlyJobsDB)
- func SetDisableDedupFeature(b bool) bool
- func SetFeaturesRetryAttempts(overrideAttempts int)
- func SetIsUnlocked(unlockVar bool)
- func SetMainLoopTimeout(timeout time.Duration)
- type DestStatT
- type HandleT
- type MetricMetadata
- type ParametersT
- type PauseT
- type ProcessorManagerI
- type ProcessorManagerT
- type TransformRequestT
Constants ¶
View Source
const DEST_TRANSFORMATION = "DEST_TRANSFORMATION"
View Source
const USER_TRANSFORMATION = "USER_TRANSFORMATION"
Variables ¶
View Source
var (
GWCustomVal string
)
Functions ¶
func ConvertToFilteredTransformerResponse ¶ added in v0.1.10
func ConvertToFilteredTransformerResponse(events []transformer.TransformerEventT, filterUnsupportedMessageTypes bool) transformer.ResponseT
func ProcessorManagerSetup ¶ added in v1.0.0
func ProcessorManagerSetup(processor *HandleT)
func RegisterAdminHandlers ¶ added in v0.1.10
func RegisterAdminHandlers(readonlyProcErrorDB jobsdb.ReadonlyJobsDB)
func SetDisableDedupFeature ¶ added in v1.0.0
SetDisableDedupFeature overrides SetDisableDedupFeature configuration and returns previous value
func SetFeaturesRetryAttempts ¶ added in v0.1.10
func SetFeaturesRetryAttempts(overrideAttempts int)
func SetIsUnlocked ¶ added in v1.0.0
func SetIsUnlocked(unlockVar bool)
func SetMainLoopTimeout ¶ added in v1.0.0
Types ¶
type HandleT ¶
type HandleT struct {
// contains filtered or unexported fields
}
HandleT is an handle to this object used in main.go
func NewProcessor ¶ added in v0.1.10
func NewProcessor() *HandleT
NewProcessor creates a new Processor intanstace
func (*HandleT) Pause ¶ added in v1.0.0
func (proc *HandleT) Pause()
Pause is a blocking call. Pause returns after the processor is paused.
func (*HandleT) Setup ¶
func (proc *HandleT) Setup(backendConfig backendconfig.BackendConfig, gatewayDB jobsdb.JobsDB, routerDB jobsdb.JobsDB, batchRouterDB jobsdb.JobsDB, errorDB jobsdb.JobsDB, clearDB *bool, reporting types.ReportingI)
Setup initializes the module
type MetricMetadata ¶ added in v0.1.10
type MetricMetadata struct {
// contains filtered or unexported fields
}
type ParametersT ¶ added in v0.1.10
type ParametersT struct { SourceID string `json:"source_id"` DestinationID string `json:"destination_id"` ReceivedAt string `json:"received_at"` TransformAt string `json:"transform_at"` MessageID string `json:"message_id"` GatewayJobID int64 `json:"gateway_job_id"` SourceBatchID string `json:"source_batch_id"` SourceTaskID string `json:"source_task_id"` SourceTaskRunID string `json:"source_task_run_id"` SourceJobID string `json:"source_job_id"` SourceJobRunID string `json:"source_job_run_id"` EventName string `json:"event_name"` EventType string `json:"event_type"` }
type ProcessorManagerI ¶ added in v1.0.0
type ProcessorManagerI interface { Pause() Resume() }
var (
ProcessorManager ProcessorManagerI
)
func GetProcessorManager ¶ added in v1.0.0
func GetProcessorManager() (ProcessorManagerI, error)
type ProcessorManagerT ¶ added in v1.0.0
type ProcessorManagerT struct {
Processor *HandleT
}
func (*ProcessorManagerT) Pause ¶ added in v1.0.0
func (pm *ProcessorManagerT) Pause()
func (*ProcessorManagerT) Resume ¶ added in v1.0.0
func (pm *ProcessorManagerT) Resume()
type TransformRequestT ¶ added in v0.1.10
type TransformRequestT struct { Event []transformer.TransformerEventT Stage string ProcessingTime float64 Index int }
Click to show internal directories.
Click to hide internal directories.