From e6a90a8be850152df69f58278a4313081b02251e Mon Sep 17 00:00:00 2001 From: steven Date: Fri, 15 Sep 2023 17:57:45 +0800 Subject: [PATCH] chore: register reflection grpc server --- api/v2/v2.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/api/v2/v2.go b/api/v2/v2.go index 55e330ff..8044246b 100644 --- a/api/v2/v2.go +++ b/api/v2/v2.go @@ -11,6 +11,7 @@ import ( "github.com/usememos/memos/store" "google.golang.org/grpc" "google.golang.org/grpc/credentials/insecure" + "google.golang.org/grpc/reflection" ) type APIV2Service struct { @@ -33,6 +34,7 @@ func NewAPIV2Service(secret string, profile *profile.Profile, store *store.Store apiv2pb.RegisterUserServiceServer(grpcServer, NewUserService(store, secret)) apiv2pb.RegisterMemoServiceServer(grpcServer, NewMemoService(store)) apiv2pb.RegisterTagServiceServer(grpcServer, NewTagService(store)) + reflection.Register(grpcServer) return &APIV2Service{ Secret: secret,