Documentation ¶
Index ¶
Constants ¶
View Source
const ( // DestinationHub is the key used for destination-hub name header. DestinationHub = "destination-hub" // CompressionType is the key used for compression type header. CompressionType = "content-encoding" // Size is the key used for total bundle size header. Size = "size" // Offset is the key used for message fragment offset header. Offset = "offset" // FragmentationTimestamp is the key used for bundle fragmentation time header. FragmentationTimestamp = "fragmentation-timestamp" // Broadcast can be used as destination when a bundle should be broadcasted. Broadcast = "" // Kafka transportType and transportFormat values Kafka TransportType = "kafka" Chan TransportType = "chan" KafkaMessageFormat TransportFormat = "message" CloudEventsFormat TransportFormat = "cloudEvents" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type KafkaConfig ¶
type KafkaConfig struct { BootstrapServer string CaCertPath string ClientCertPath string ClientKeyPath string EnableTLS bool ProducerConfig *KafkaProducerConfig ConsumerConfig *KafkaConsumerConfig }
Kafka Config
type KafkaConsumerConfig ¶
type KafkaProducerConfig ¶
type Message ¶
type Message struct { Destination string `json:"destination"` Key string `json:"key"` ID string `json:"id"` MsgType string `json:"msgType"` Version string `json:"version"` Payload []byte `json:"payload"` }
Message abstracts a message object to be used by different transport components.
type TransportConfig ¶
type TransportFormat ¶
type TransportFormat string
type TransportType ¶
type TransportType string
Click to show internal directories.
Click to hide internal directories.