From 42010329d2a1596be3590e59eb2a9f70fde86718 Mon Sep 17 00:00:00 2001 From: Josh Chorlton Date: Tue, 27 Jul 2021 08:35:54 -0600 Subject: [PATCH] support grpc reflection on APIs Signed-off-by: Josh Chorlton --- go/vt/servenv/grpc_server.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/go/vt/servenv/grpc_server.go b/go/vt/servenv/grpc_server.go index 98268a50942..066020a1d5d 100644 --- a/go/vt/servenv/grpc_server.go +++ b/go/vt/servenv/grpc_server.go @@ -31,6 +31,7 @@ import ( "google.golang.org/grpc" "google.golang.org/grpc/credentials" "google.golang.org/grpc/keepalive" + "google.golang.org/grpc/reflection" "context" @@ -213,6 +214,9 @@ func serveGRPC() { return } + // register reflection to support list calls :) + reflection.Register(GRPCServer) + // listen on the port log.Infof("Listening for gRPC calls on port %v", *GRPCPort) listener, err := net.Listen("tcp", fmt.Sprintf(":%d", *GRPCPort))