Skip to content
Snippets Groups Projects

Add basic application framework and example application to show interaction between events an NBI

Merged Ghost User requested to merge istaester/init-application-framework into develop
4 files
+ 103
55
Compare changes
  • Side-by-side
  • Inline
Files
4
@@ -157,9 +157,17 @@ func bootstrapUnitTest() {
@@ -157,9 +157,17 @@ func bootstrapUnitTest() {
portService := ports.NewPortService(portStore, eventService)
portService := ports.NewPortService(portStore, eventService)
topoloyStore := store.NewGenericStore[links.Link]()
topoloyStore := store.NewGenericStore[links.Link]()
topologyService := topology.NewTopologyService(topoloyStore, nodeService, portService)
topologyService := topology.NewTopologyService(topoloyStore, nodeService, portService, eventService)
northbound := nbi.NewNBI(pndStore, userService, roleService, *jwtManager, topologyService, nodeService, portService)
northbound := nbi.NewNBI(
 
pndStore,
 
userService,
 
roleService,
 
*jwtManager,
 
topologyService,
 
nodeService,
 
portService,
 
)
cpb.RegisterCoreServiceServer(s, northbound.Core)
cpb.RegisterCoreServiceServer(s, northbound.Core)
ppb.RegisterPndServiceServer(s, northbound.Pnd)
ppb.RegisterPndServiceServer(s, northbound.Pnd)
Loading