strikerlulu 78061c3d46 | ||
---|---|---|
client | ||
k8s | ||
pb | ||
server | ||
Dockerfile.client | ||
Dockerfile.server | ||
README.md | ||
docker-compose.yml | ||
go.mod | ||
go.sum |
README.md
Just tinkering with grpc
Setup
docker-compose up
# add two numbers and get the result
curl localhost:3001/add/3/2
Test mock server
Actually mocking the server for testing...
cd ./server
go test
To generate grpc code using protobuf compiler
cd ./pb
protoc --go_out=. --go-grpc_out=. calc_service.proto