This project is a helloworld demo using grpc framework.
1; generate grpc proto and gateway codes:
- using project binary executables:
make pb
- using executables on local machine:
make lc-pb
2; build binary file:
- using project binary executables:
make build
- using executables on local machine:
make lc-build
3; start grpc server:
make run
-
unary server interceptor for panic recovery.
-
extra grpc tags.
-
trace support.
-
unary, serer-side stream, client-side stream and bidirectional stream support.
-
example of customized interceptor for unary server support.
-
example of customized gRPC response handler.
- graceful shutdown