Skip to content

Commit

Permalink
Add grpc reflection support
Browse files Browse the repository at this point in the history
Allows testing kine with grpcurl

Signed-off-by: Brad Davidson <[email protected]>
  • Loading branch information
brandond committed Dec 7, 2023
1 parent ebf32db commit 3df89cd
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pkg/server/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import (
"google.golang.org/grpc"
"google.golang.org/grpc/health"
healthpb "google.golang.org/grpc/health/grpc_health_v1"
"google.golang.org/grpc/reflection"
)

type KVServerBridge struct {
Expand All @@ -30,4 +31,6 @@ func (k *KVServerBridge) Register(server *grpc.Server) {
hsrv := health.NewServer()
hsrv.SetServingStatus("", healthpb.HealthCheckResponse_SERVING)
healthpb.RegisterHealthServer(server, hsrv)

reflection.Register(server)
}

0 comments on commit 3df89cd

Please sign in to comment.