grpc-go/reflection
Edmond 8f3cc6cc26
protoc-gen-go-grpc: export grpc.ServiceDesc (#4035)
2020-11-23 14:56:57 -08:00
..
grpc_reflection_v1alpha protoc-gen-go-grpc: export grpc.ServiceDesc (#4035) 2020-11-23 14:56:57 -08:00
grpc_testing protoc-gen-go-grpc: export grpc.ServiceDesc (#4035) 2020-11-23 14:56:57 -08:00
grpc_testingv3 all: refactor .pb.go generation (#3451) 2020-04-24 08:54:03 -07:00
README.md Minor fixes 2016-06-27 12:01:05 -07:00
serverreflection.go service reflection: include transitive closure for a file (#3851) 2020-09-09 15:37:11 -07:00
serverreflection_test.go testing: Avoid using context.Background (#3949) 2020-11-05 09:25:17 -08:00

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)