add storage and mux handle with handlers
This commit is contained in:
@@ -6,6 +6,8 @@ package go_generate
|
||||
|
||||
import (
|
||||
context "context"
|
||||
_ "go.unistack.org/micro-client-http/v3"
|
||||
v3 "go.unistack.org/micro-server-http/v3"
|
||||
client "go.unistack.org/micro/v3/client"
|
||||
server "go.unistack.org/micro/v3/server"
|
||||
go_generate "go.unistack.org/unistack-org/pkgdash/proto/go_generate"
|
||||
@@ -74,5 +76,6 @@ func RegisterDashboardServiceServer(s server.Server, sh DashboardServiceServer,
|
||||
}
|
||||
h := &dashboardServiceServer{sh}
|
||||
var nopts []server.HandlerOption
|
||||
nopts = append(nopts, v3.HandlerEndpoints(DashboardServiceServerEndpoints))
|
||||
return s.Handle(s.NewHandler(&DashboardService{h}, append(nopts, opts...)...))
|
||||
}
|
Reference in New Issue
Block a user