grpc: google.golang.org/grpc/reflection Index | Files | Directories

package reflection

import "google.golang.org/grpc/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)

Index

Package Files

serverreflection.go

func Register Uses

func Register(s *grpc.Server)

Register registers the server reflection service on the given gRPC server.

Directories

PathSynopsis
grpc_reflection_v1alpha
grpc_testing
grpc_testingv3Package grpc_testingv3 is a generated protocol buffer package.

Package reflection imports 14 packages (graph) and is imported by 160 packages. Updated 2018-11-13. Refresh now. Tools for package owners.