Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/andrzejewsky/api-gateway
A simple implementation of api gateway pattern
https://github.com/andrzejewsky/api-gateway
api api-gateway apigateway golang microservices
Last synced: about 22 hours ago
JSON representation
A simple implementation of api gateway pattern
- Host: GitHub
- URL: https://github.com/andrzejewsky/api-gateway
- Owner: andrzejewsky
- Created: 2017-03-19T16:34:59.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2017-03-19T17:29:56.000Z (almost 8 years ago)
- Last Synced: 2024-11-08T20:50:18.102Z (about 2 months ago)
- Topics: api, api-gateway, apigateway, golang, microservices
- Language: Go
- Homepage:
- Size: 4.88 KB
- Stars: 1
- Watchers: 0
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## API gateway
A simple implementation of api gateway pattern
### How to use
Example:
```
./gatewey
-listen=127.0.0.1:8181
// service 1
-endpoint="/s1"
-dest=http://127.0.0.1:9091
// service 2
-endpoint="/s2
-dest=http://127.0.0.1:9092
// another services...
```Where:
* listen - it's our gateway address
* endpoint - it's a endpoint for service called _s1_
* dest - it's a destination / real address of given service _s1_So everything which is sending to the our gateway on _/s1_ route
will forward to the destination address specified in the _dest_ param.
You can use combination of _endpoint_ and _dest_ param many times.