This is me, trying out go-kit
Here's the plan
This'll be a server with two endpoints, /add
and /string
. Each endpoint will be responsible by its own service. There'll be a gateway to manage those endpoints.
This project use dep as a dependencies management.
brew install dep
Usage
docker-compose up
curl -XPOST -d'{"s":"hello, world"}' localhost:8000/string/count
curl -XPOST -d'{"s":"hello, world"}' localhost:8000/string/uppercase
curl -XPOST -d'{"a":1,"b":2}' localhost:8000/add/sum
curl -XPOST -d'{"a":"1","b":"2"}' localhost:8000/add/concat