router

package
v1.11.0 Latest Latest
Warning

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

Go to latest
Published: Jul 18, 2023 License: AGPL-3.0 Imports: 54 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LimiterPriorityValueFrom added in v1.10.0

func LimiterPriorityValueFrom(v, max int) kitsync.LimiterPriorityValue

Types

type Diagnostic added in v1.10.0

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

type Factory added in v0.1.10

type Factory struct {
	Logger           logger.Logger
	Reporting        reporter
	BackendConfig    backendconfig.BackendConfig
	RouterDB         jobsdb.JobsDB
	ProcErrorDB      jobsdb.JobsDB
	TransientSources transientsource.Service
	RsourcesService  rsources.JobService
	ThrottlerFactory *throttler.Factory
	Debugger         destinationdebugger.DestinationDebugger
	AdaptiveLimit    func(int64) int64
}

func (*Factory) New added in v0.1.10

func (f *Factory) New(destination *backendconfig.DestinationT) *Handle

type Handle added in v1.10.0

type Handle struct {
	Reporting reporter
	// contains filtered or unexported fields
}

Handle is the handle to this module.

func (*Handle) Setup added in v1.10.0

func (rt *Handle) Setup(
	destinationDefinition backendconfig.DestinationDefinitionT,
	log logger.Logger,
	config *config.Config,
	backendConfig backendconfig.BackendConfig,
	jobsDB jobsdb.JobsDB,
	errorDB jobsdb.JobsDB,
	transientSources transientsource.Service,
	rsourcesService rsources.JobService,
	debugger destinationdebugger.DestinationDebugger,
)

Setup initializes this module

func (*Handle) Shutdown added in v1.10.0

func (rt *Handle) Shutdown()

func (*Handle) Start added in v1.10.0

func (rt *Handle) Start()

type HandleDestOAuthRespParams added in v1.10.0

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

type JobParameters added in v1.10.0

type JobParameters struct {
	SourceID                string      `json:"source_id"`
	DestinationID           string      `json:"destination_id"`
	ReceivedAt              string      `json:"received_at"`
	TransformAt             string      `json:"transform_at"`
	SourceTaskRunID         string      `json:"source_task_run_id"`
	SourceJobID             string      `json:"source_job_id"`
	SourceJobRunID          string      `json:"source_job_run_id"`
	SourceDefinitionID      string      `json:"source_definition_id"`
	DestinationDefinitionID string      `json:"destination_definition_id"`
	SourceCategory          string      `json:"source_category"`
	RecordID                interface{} `json:"record_id"`
	MessageID               string      `json:"message_id"`
	WorkspaceID             string      `json:"workspaceId"`
	RudderAccountID         string      `json:"rudderAccountId"`
}

JobParameters struct holds source id and destination id of a job

type JobResponse added in v1.0.2

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

type NetHandle added in v1.10.0

type NetHandle interface {
	SendPost(ctx context.Context, structData integrations.PostParametersT) *utils.SendPostResponse
}

Network interface

type ResponseHandler added in v1.10.0

type ResponseHandler interface {
	IsSuccessStatus(respCode int, respBody string) (returnCode int)
}

ResponseHandler - handle destination response

func NewResponseHandler added in v1.10.0

func NewResponseHandler(logger logger.Logger, responseRules map[string]interface{}) ResponseHandler

NewResponseHandler returns a destination response handler. Can be nil(Check before using this)

Jump to

Keyboard shortcuts

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