Back to godoc.org
google.golang.org/grpc / reflection

Package reflection

v1.32.0
Latest Go to latest

The latest major version is .

Published: Sep 8, 2020 | License: Apache-2.0 | Module: google.golang.org/grpc

Overview

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

func Register

func Register(s *grpc.Server)

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

Documentation was rendered with GOOS=linux and GOARCH=amd64.

Jump to identifier

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to identifier