New admin endpoint to delete data (#359)

This commit is contained in:
Dominic Wong
2022-01-31 16:14:52 +00:00
committed by GitHub
parent d12dee71ad
commit 1f494e6638
7 changed files with 375 additions and 5 deletions

View File

@@ -6,6 +6,7 @@ import (
"github.com/micro/micro/v3/service/store"
otp "github.com/micro/services/otp/proto"
adminpb "github.com/micro/services/pkg/service/proto"
"github.com/micro/services/pkg/tracing"
"github.com/micro/services/user/handler"
proto "github.com/micro/services/user/proto"
@@ -23,6 +24,7 @@ func main() {
)
proto.RegisterUserHandler(srv.Server(), hd)
adminpb.RegisterAdminHandler(srv.Server(), hd)
traceCloser := tracing.SetupOpentracing("user")
defer traceCloser.Close()