Add role service and manager

This commit is contained in:
Benedikt Kulmann
2020-08-19 12:55:11 +02:00
parent 143bf118fa
commit 65d71bd6fd
16 changed files with 2940 additions and 409 deletions
+3
View File
@@ -28,6 +28,9 @@ func Server(opts ...Option) grpc.Service {
if err := proto.RegisterValueServiceHandler(service.Server(), handle); err != nil {
options.Logger.Fatal().Err(err).Msg("could not register SettingsValues service handler")
}
if err := proto.RegisterRoleServiceHandler(service.Server(), handle); err != nil {
options.Logger.Fatal().Err(err).Msg("could not register SettingsRoles service handler")
}
service.Init()
return service
+1
View File
@@ -65,6 +65,7 @@ func Server(opts ...Option) http.Service {
mux.Route(options.Config.HTTP.Root, func(r chi.Router) {
proto.RegisterBundleServiceWeb(r, handle)
proto.RegisterValueServiceWeb(r, handle)
proto.RegisterRoleServiceWeb(r, handle)
})
service.Handle(