try-go-kit

module
v0.0.0-...-3c3176f Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 8, 2017 License: GPL-3.0

README

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL