Forked from here
api/- gRPC service definition for a voting service, contains RPCs for creating, listing and voting onvoteableitemscmd/main.go&service/service.go- service implementationconfig/config.go- service configurationtelemetry- metrics, tracing and profilingdocker-compose.yml- for runningAmazon DynamoDBlocally
Install
Clone
git clone git@github.com:yolkhovyy/golang-grpc-demo.git$ ./start.sh
{"level":"info","time":"2022-08-02T11:29:03+02:00","message":"configuration loaded"}
{"level":"info","service":"ggd","time":"2022-08-02T11:29:03+02:00","time":"2022-08-02T11:29:03+02:00","message":"AWS session created"}
...In the second shell
$ ./send.sh
{
"uuid": "aa271b8e-1245-11ed-8692-02426fbaa4b9"
}
{
"uuid": "aa2df569-1245-11ed-8692-02426fbaa4b9"
}
...In the second shell
$ go test -v -count=1 ./...
=== RUN TestVotingServiceBasic
--- PASS: TestVotingServiceBasic (0.10s)
=== RUN TestVotingServicePaging
--- PASS: TestVotingServicePaging (0.28s)
PASS
ok github.com/yolkhovyy/golang-grpc-demo/service 0.407s./stop.sh