The purpose of this project was to learn go-kit. This is my implementation of go-kit's stringsvc example with some additional features and REST API and grpc support.
-
Get protoc from https://github.com/google/protobuf/releases
-
go get -u golang.org/x/net/http2
-
go get -u github.com/golang/protobuf/{proto,protoc-gen-go}
-
protoc stringsvc1.proto --go_out=plugins=grpc:.
curl -OL https://github.com/google/protobuf/releases/download/v3.3.0/protoc-3.3.0-linux-x86_64.zip
unzip protoc-3.3.0-linux-x86_64.zip -d protoc3
sudo mv protoc3/bin/protoc /usr/bin/protoc
- curl -X POST -d '{"input_string": "robert"}' http://localhost:8080/uppercase
- curl -X GET -d '{"input_string": "robert"}' http://localhost:8080/count