In order to generate grp.go file run these commands.
go get -u google.golang.org/grpc
go get -u github.com/golang/protobuf/protoc-gen-go
protoc greet/greetpb/greet.proto --go_out=plugins=grpc:.
protoc calculator/calculatorpb/calculator.proto --go_out=plugins=grpc:.
protoc blog/blogpb/blog.proto --go_out=plugins=grpc:.
Error Codes
Deadlines
SSL Certificate
-
Download the evans: https://github.com/ktr0731/evans/releases
-
Add this line to server.go
// Register reflection service on gRPC server. reflection.Register(s)
-
Add the environment path and run this command:
evans -p 50051 -r
-
Some evans commands:
show package show service show message desc MESSAGE_NAME
show service service SERVICE_NAME call RPC_NAME