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 1c3492c commit 5328e60
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 5328e60

Please sign in to comment.