Go to file
strikerlulu 78061c3d46 add k8s and buid it for arm 2024-05-02 09:00:05 +05:30
client chore: initial commit 2023-02-19 00:03:31 +05:30
k8s add k8s and buid it for arm 2024-05-02 09:00:05 +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 add k8s and buid it for arm 2024-05-02 09:00:05 +05:30
Dockerfile.server add k8s and buid it for arm 2024-05-02 09:00:05 +05:30
README.md docs: update README.md 2023-02-19 00:16:17 +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

# 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