More data delete endpoints (#363)

This commit is contained in:
Dominic Wong
2022-02-03 17:32:08 +00:00
committed by GitHub
parent ba77f7b2f4
commit 0663f196d5
9 changed files with 144 additions and 14 deletions

View File

@@ -3,6 +3,7 @@ package main
import (
"github.com/micro/services/otp/handler"
pb "github.com/micro/services/otp/proto"
admin "github.com/micro/services/pkg/service/proto"
"github.com/micro/services/pkg/tracing"
"github.com/micro/micro/v3/service"
@@ -15,8 +16,10 @@ func main() {
service.Name("otp"),
)
h := new(handler.Otp)
// Register handler
pb.RegisterOtpHandler(srv.Server(), new(handler.Otp))
pb.RegisterOtpHandler(srv.Server(), h)
admin.RegisterAdminHandler(srv.Server(), h)
traceCloser := tracing.SetupOpentracing("otp")
defer traceCloser.Close()