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
- Host: GitHub
- URL: https://github.com/serverless/event-gateway-connector
- Owner: serverless
- Created: 2018-09-08T18:18:51.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2018-12-06T08:53:30.000Z (about 7 years ago)
- Last Synced: 2025-04-18T07:51:35.544Z (8 months ago)
- Language: Go
- Size: 72.3 KB
- Stars: 7
- Watchers: 27
- Forks: 5
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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/`