transformer

package
v0.0.0-...-0ade494 Latest Latest
Warning

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

Go to latest
Published: Aug 26, 2022 License: AGPL-3.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

View Source
const (
	BATCH            = "BATCH"
	ROUTER_TRANSFORM = "ROUTER_TRANSFORM"
)

Variables

This section is empty.

Functions

func Init

func Init()

Types

type ProxyRequestParams

type ProxyRequestParams struct {
	ResponseData integrations.PostParametersT
	DestName     string
	JobID        int64
	BaseUrl      string
}

type Transformer

type Transformer interface {
	Transform(transformType string, transformMessage *types.TransformMessageT) []types.DestinationJobT
	ProxyRequest(ctx context.Context, proxyReqParams *ProxyRequestParams) (statusCode int, respBody, contentType string)
}

Transformer provides methods to transform events

func NewTransformer

func NewTransformer(netClientTimeout, backendProxyTimeout time.Duration) Transformer

NewTransformer creates a new transformer

Jump to

Keyboard shortcuts

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