processor

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Oct 14, 2021 License: AGPL-3.0 Imports: 34 Imported by: 0

Documentation

Index

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

func SetDisableDedupFeature(b bool) bool

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

func SetMainLoopTimeout(timeout time.Duration)

Types

type DestStatT

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

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) Print

func (proc *HandleT) Print()

Print the internal structure

func (*HandleT) Resume added in v1.0.0

func (proc *HandleT) Resume()

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

func (*HandleT) Start added in v0.1.10

func (proc *HandleT) Start()

Start starts this processor's main loops.

func (*HandleT) Status added in v0.1.10

func (proc *HandleT) Status() interface{}

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 PauseT added in v1.0.0

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

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
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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