Skip to content
Snippets Groups Projects

Provide prototype implementation for topology handling

Merged Ghost User requested to merge istaester/init-topology into develop
2 files
+ 30
16
Compare changes
  • Side-by-side
  • Inline
Files
2
@@ -23,10 +23,11 @@ type Role struct {
@@ -23,10 +23,11 @@ type Role struct {
roleService rbacInterfaces.RoleService
roleService rbacInterfaces.RoleService
}
}
// NewRoleServer receives a JWTManager and returns a new Role.
// NewRoleServer receives a JWTManager and a RoleService and returns a new RoleServer.
func NewRoleServer(jwtManager *rbac.JWTManager) *Role {
func NewRoleServer(jwtManager *rbac.JWTManager, roleService rbacInterfaces.RoleService) *Role {
return &Role{
return &Role{
jwtManager: jwtManager,
jwtManager: jwtManager,
 
roleService: roleService,
}
}
}
}
Loading