I installed the latest toolchain according to: https://grpc.io/docs/languages/go/quickstart/ I updated the protoc command line arguments in Makefile based on that quickstart guide, then I ran: make update-grpc This has set the tool version (which you can see at the top of any .pb.go file) to: protoc-gen-go v1.25.0 protoc v3.14.0 |
||
---|---|---|
.. | ||
grpc_reflection_v1alpha | ||
README.md | ||
serverreflection.go |
README.md
Reflection
Package reflection implements server reflection service.
The service implemented is defined in: https://github.com/grpc/grpc/blob/master/src/proto/grpc/reflection/v1alpha/reflection.proto.
To register server reflection on a gRPC server:
import "google.golang.org/grpc/reflection"
s := grpc.NewServer()
pb.RegisterYourOwnServer(s, &server{})
// Register reflection service on gRPC server.
reflection.Register(s)
s.Serve(lis)