This repository is meant for keeping the notes and codes for gRPC tutorial in GoLang from Udemy.
go get -u github.com/golang/protobuf/protoc-gen-go
go get -u google.golang.org/grpc
go install google.golang.org/protobuf/cmd/protoc-gen-go@latest
brew install protobuf
protoc greet/greetpb/greet.proto --go_out=plugins=grpc:.
go env -w GO111MODULE=auto
Greet Server!
Greet function was invoked with greeting:{first_name:"Anand" last_name:"Verma"}
Hello..I am a client!
Starting to do a unary RPC...
2021/09/15 20:38:49 Response from Greet service: Hello Anand
Calculator Server!
Sum function was invoked with first_num:3 second_num:10
Calculator client
Starting to do a Sum unary RPC...
2021/09/15 22:41:10 Response from calculator service: 13
go run greet/greet_server/server.go
Greet Server!
GreetManyTimes function was invoked with greeting:{first_name:"Anand" last_name:"Verma"}
go run greet/greet_client/client.go
Hello..I am a client!
Starting to do a Server streaming RPC...
2022/02/23 11:11:29 Response from GreetManyTimes: HelloAnand number 0
2022/02/23 11:11:30 Response from GreetManyTimes: HelloAnand number 1
2022/02/23 11:11:31 Response from GreetManyTimes: HelloAnand number 2
2022/02/23 11:11:32 Response from GreetManyTimes: HelloAnand number 3
2022/02/23 11:11:33 Response from GreetManyTimes: HelloAnand number 4
2022/02/23 11:11:34 Response from GreetManyTimes: HelloAnand number 5
2022/02/23 11:11:35 Response from GreetManyTimes: HelloAnand number 6
2022/02/23 11:11:36 Response from GreetManyTimes: HelloAnand number 7
2022/02/23 11:11:37 Response from GreetManyTimes: HelloAnand number 8
2022/02/23 11:11:38 Response from GreetManyTimes: HelloAnand number 9