Draft: Refactor nucleus to remove hard dependencies on structs
Compare changes
+ 2
− 2
@@ -5,9 +5,9 @@ import (
@@ -142,7 +142,7 @@ func createTestUserToken(userName string, validTokenRequired bool) (string, erro
The idea is to add an aditional layer around the core models
(like networkElement and others).
This will enable more flexibility in the nucleus
package and remove problems with circular dependencies and the question where to place interfaces for our services, stores, ...?
.
This should also remove the interfaces
folder that is filled with interfaces and structs.
After this we can also think about moving movings like rbac
and topology
back in the nucleus instead of in own packages and shared functionalitiy (like stores and services).
This will roughly follow the ideas of ports&adapters, hexagonal architecture and/or onion architecture. (I like this article about it)