From d8eaf2052269dcdc4cfbf7f306e18a486702e32d Mon Sep 17 00:00:00 2001 From: Frank Elsinga Date: Wed, 11 Oct 2023 02:24:16 +0200 Subject: [PATCH] enabled grpc reflection on the server Resolves #253 --- server/main.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/server/main.go b/server/main.go index 5e014393..5c8b4741 100644 --- a/server/main.go +++ b/server/main.go @@ -12,6 +12,8 @@ import ( "strings" "time" + "google.golang.org/grpc/reflection" + "github.com/prometheus/client_golang/prometheus/promhttp" "github.com/TUM-Dev/Campus-Backend/server/env" @@ -81,6 +83,7 @@ func main() { // Main GRPC Server grpcServer := grpc.NewServer() pb.RegisterCampusServer(grpcServer, campusService) + reflection.Register(grpcServer) // GRPC Gateway for HTTP REST -> GRPC grpcGatewayMux := runtime.NewServeMux(runtime.WithIncomingHeaderMatcher(