More admin data delete endpoints (#361)

This commit is contained in:
Dominic Wong
2022-02-02 12:09:24 +00:00
committed by GitHub
parent e3a83152fe
commit e0bb9a8765
10 changed files with 152 additions and 4 deletions

View File

@@ -3,6 +3,7 @@ package main
import (
"github.com/micro/services/file/handler"
pb "github.com/micro/services/file/proto"
admin "github.com/micro/services/pkg/service/proto"
"github.com/micro/services/pkg/tracing"
"github.com/micro/micro/v3/service"
@@ -16,8 +17,10 @@ func main() {
service.Version("latest"),
)
h := handler.NewFile()
// Register handler
pb.RegisterFileHandler(srv.Server(), handler.NewFile())
pb.RegisterFileHandler(srv.Server(), h)
admin.RegisterAdminHandler(srv.Server(), h)
traceCloser := tracing.SetupOpentracing("file")
defer traceCloser.Close()