Skip to content

Commit 05bbad6

Browse files
committed
Add reflection for grpcui
1 parent e831787 commit 05bbad6

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

cmd/server/main.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ import (
1414
"google.golang.org/grpc"
1515
"google.golang.org/grpc/codes"
1616
"google.golang.org/grpc/metadata"
17+
"google.golang.org/grpc/reflection"
1718
"google.golang.org/grpc/status"
1819

1920
echov1 "github.com/e-flux-platform/echo-grpc/gen/go/road/echo/v1"
@@ -53,6 +54,7 @@ func run(ctx context.Context, listenAddr string) error {
5354

5455
srv := grpc.NewServer()
5556
echov1.RegisterEchoServiceServer(srv, &server{})
57+
reflection.Register(srv)
5658

5759
eg, ctx := errgroup.WithContext(ctx)
5860
eg.Go(func() error {

0 commit comments

Comments
 (0)