Go to file
strikerlulu c2af9ec878 chore: initial commit 2023-02-19 00:03:31 +05:30
client chore: initial commit 2023-02-19 00:03:31 +05:30
pb chore: initial commit 2023-02-19 00:03:31 +05:30
server chore: initial commit 2023-02-19 00:03:31 +05:30
Dockerfile.client chore: initial commit 2023-02-19 00:03:31 +05:30
Dockerfile.server chore: initial commit 2023-02-19 00:03:31 +05:30
README.md chore: initial commit 2023-02-19 00:03:31 +05:30
docker-compose.yml chore: initial commit 2023-02-19 00:03:31 +05:30
go.mod chore: initial commit 2023-02-19 00:03:31 +05:30
go.sum chore: initial commit 2023-02-19 00:03:31 +05:30

README.md

Just tinkering with grpc

Setup

docker-compose up
curl localhost:3001/add/3/2

Test mock server

cd ./server
go test

To generate grpc code using protobuf compiler

cd ./pd
protoc --go_out=. --go-grpc_out=. calc_service.proto