Documentation ¶
Index ¶
- func Init()
- func IsUploadEnabled(id string) bool
- func RecordTransformationStatus(transformStatus *TransformStatusT)
- func Setup()
- func UploadTransformationStatus(tStatus *TransformationStatusT)
- type EventBeforeTransform
- type EventPayloadAfterTransform
- type EventsAfterTransform
- type TransformStatusT
- type TransformationStatusT
- type TransformationStatusUploader
- type UploadT
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsUploadEnabled ¶
func RecordTransformationStatus ¶
func RecordTransformationStatus(transformStatus *TransformStatusT)
RecordTransformationStatus is used to put the transform event in the eventBatchChannel, which will be processed by handleEvents.
func UploadTransformationStatus ¶
func UploadTransformationStatus(tStatus *TransformationStatusT)
Types ¶
type EventBeforeTransform ¶
type EventBeforeTransform struct { EventName string `json:"eventName"` EventType string `json:"eventType"` ReceivedAt string `json:"receivedAt"` Payload types.SingularEventT `json:"payload"` }
type EventPayloadAfterTransform ¶
type EventPayloadAfterTransform struct { EventName string `json:"eventName"` EventType string `json:"eventType"` Payload types.SingularEventT `json:"payload"` }
type EventsAfterTransform ¶
type EventsAfterTransform struct { ReceivedAt string `json:"receivedAt"` IsDropped bool `json:"isDropped"` Error string `json:"error"` StatusCode int `json:"statusCode"` EventPayloads []*EventPayloadAfterTransform `json:"payload"` }
type TransformStatusT ¶
type TransformStatusT struct { TransformationID string `json:"transformationId"` SourceID string `json:"sourceId"` DestinationID string `json:"destinationId"` EventBefore *EventBeforeTransform `json:"eventBefore"` EventsAfter *EventsAfterTransform `json:"eventsAfter"` IsError bool `json:"error"` }
TransformStatusT is a structure to hold transformation status
type TransformationStatusT ¶
type TransformationStatusT struct { SourceID string DestID string Destination *backendconfig.DestinationT UserTransformedEvents []transformer.TransformerEventT EventsByMessageID map[string]types.SingularEventWithReceivedAt FailedEvents []transformer.TransformerResponseT UniqueMessageIds map[string]struct{} }
type TransformationStatusUploader ¶
type TransformationStatusUploader struct{}
func (*TransformationStatusUploader) Transform ¶
func (*TransformationStatusUploader) Transform(eventBuffer []*TransformStatusT) ([]byte, error)
type UploadT ¶
type UploadT struct {
Payload []*TransformStatusT `json:"payload"`
}
Click to show internal directories.
Click to hide internal directories.