forwarder

package
v4.9.3 Latest Latest
Warning

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

Go to latest
Published: Jul 8, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateHeaders

func CreateHeaders(transactionID string, originSystem string, bookmark string) map[string]string

CreateHeaders returns the relevant map with all the necessary kafka.FTMessage headers according to the specified transaction ID and origin system.

Types

type Forwarder

type Forwarder struct {
	Producer    kafkaProducer
	MessageType string
}

A Forwarder facilitates sending a message to Kafka via kafka.Producer.

func (Forwarder) SendMessage

func (f Forwarder) SendMessage(transactionID string, originSystem string, bookmark string, platformVersion string, uuid string, annotations interface{}, publication []string) error

SendMessage marshals an annotations payload using the outputMessage format and sends it to a Kafka.

type QueueForwarder

type QueueForwarder interface {
	SendMessage(transactionID string, originSystem string, bookmark string, platformVersion string, uuid string, annotations interface{}, publication []string) error
}

QueueForwarder is the interface implemented by types that can send annotation messages to a queue.

Jump to

Keyboard shortcuts

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