grpc-go/reflection
Joshua Humphries 145f12a95b
reflection: accept interface instead of grpc.Server struct in Register() (#4340)
2021-04-27 13:15:08 -07:00
..
grpc_reflection_v1alpha cmd/protoc-gen-go-grpc: add protoc and protoc-gen-go-grpc versions to top comment (#4313) 2021-04-09 16:30:59 -07:00
grpc_testing cmd/protoc-gen-go-grpc: add protoc and protoc-gen-go-grpc versions to top comment (#4313) 2021-04-09 16:30:59 -07: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 reflection: accept interface instead of grpc.Server struct in Register() (#4340) 2021-04-27 13:15:08 -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)