An open API service indexing awesome lists of open source software.

https://github.com/serverless/event-gateway-connector

Serverless Event Gateway Connector Framework
https://github.com/serverless/event-gateway-connector

Last synced: 2 months ago
JSON representation

Serverless Event Gateway Connector Framework

Awesome Lists containing this project

README

          

# Event Gateway Connector

Event Gateway Connector enables importing messages (events) from different, popular message queues into Event Gateway. Currently supported technologies: AWS Kinesis, AMQP, AWS CloudTrail.

## Concepts

**Source** is a implementation of message queue client that connects to the queue (based on configuration stored in Connection) and fetches messages. Currently implemented sources can be found in [`sources`](./sources) folder.

**Connection** is a configuration describing a source (address, credentials) and target Event Gateway (e.g. URL, path, event type). Connections are managed by [Config API](#config-api).

## Config API

Config API allows creating connections that Connector will use to fetch data from.

### API

#### List Connections

`GET /v1/spaces//connections`

Payload:
```
{
"connections": [{
"target": "http://localhost:4001",
"eventType": "user.created",
"type": "awskinesis",
"source": {
"streamName": "test",
"region": "us-east-1"
}
}]
}
```

#### Create Connection

`POST /v1/spaces//connections`

Payload:
```
{
"target": "http://localhost:4001",
"eventType": "user.created",
"type": "awskinesis",
"source": {
"streamName": "test",
"region": "us-east-1"
}
}
```

#### Update Connection

`PUT /v1/spaces//connections/`

Payload:
```
{
"target": "http://localhost:4001",
"eventType": "user.created",
"type": "awskinesis",
"source": {
"streamName": "test",
"region": "us-east-1"
}
}
```

#### Delete Connection

`DELETE /v1/spaces//connections/`