This component reads events from a stream source. Some of these events are known by the component and as such, dealt by it directly. All other events go through topic matching for function invocation.
All known event types have the com.justfaas.
prefix. They are intended for the component.
Event type | Description |
---|---|
event.added | Sent when an event is added. Triggers function(s) matching the event type. |
function.invoked | Sent by the gateway from an async request. Triggers immediate execution. |
The component also exposes an api to allow publishing events from other sources. This is how the gateway publishes async requests, but it can also be used to create connectors from other platforms.
POST /apis/events
The content of the POST request is the event data. Other event details are set using headers.
Header | Description |
---|---|
Content-Type | Optional. The event data content type. |
X-Event-Source | Optional. Used to indicate the event source. |
X-Event-Type | Required. Indicates the type of the event. |
X-Event-Webhook-Url | Optional. When event triggers a function, this is used to indicate a callback Url. |