Bindings for Kafka transport
Binding for MQTT transport support
Constants representing the CloudEvent specification version
A helper function to create an MQTTMessage
the "Content Type" attribute on PUBLISH
the headers and "User Properties"
the message body/payload
a message initialized with the provided attributes
Creates and returns an EmitterFunction
using the supplied
TransportFunction
. The returned EmitterFunction
will invoke the Binding
's binary
or structured
function
to convert a CloudEvent
into a JSON
Message
based on the Mode
provided, and invoke the
TransportFunction with the Message and any supplied options.
a TransportFunction that can accept an event Message
an EmitterFunction to send events with
httpTransport provides a simple HTTP Transport function, which can send a CloudEvent, encoded as a Message to the endpoint. The returned function can be used with emitterFor() to provide an event emitter, for example:
const emitter = emitterFor(httpTransport("http://example.com")); emitter.emit(myCloudEvent) .then(resp => console.log(resp));
the destination endpoint for the event
a function which can be used to send CloudEvents to sink
Generated using TypeDoc
Bindings for HTTP transport support
Binding