Update Core authored by Malte Bauch's avatar Malte Bauch
The `Core` struct holds the instances of all attached southbound interfaces as well as the controller's principal network domains. The `Core` struct represents the core of the controller. The `Core` itself holds [Principal Network Domains](https://code.fbi.h-da.de/cocsn/gosdn/-/wikis/Nucleus/Principal-Network-Domain) and [Southbound Interfaces](https://code.fbi.h-da.de/cocsn/gosdn/-/wikis/Nucleus/Southbound-Interface) in a respective [store](https://code.fbi.h-da.de/cocsn/gosdn/-/wikis/Nucleus/Storable).
```plantuml ```plantuml
class Core << (S,Aquamarine) >> { class Core << (S,Aquamarine) >> {
- domains <font color=blue>map</font>[string]interfaces.PrincipalNetworkDomain
- sbis <font color=blue>map</font>[string]interfaces.SouthboundInterface
- database database.Database - database database.Database
- config controllerConfig - pndc pndStore
- sbic sbiStore
+ IsRunning <font color=blue>chan</font> bool - httpServer *http.Server
- stopChan <font color=blue>chan</font> os.Signal
- readControllerConfig(configFileController string) error
- readClientConfig(configFileClient string) error
+ Init(socket string, configFileController string, configFileClient string, IsRunningChannel <font color=blue>chan</font> bool)
+ AttachDatabase()
+ Shutdown()
} }
``` ```
\ No newline at end of file