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
1 file
+ 3
3
Compare changes
  • Side-by-side
  • Inline
@@ -147,15 +147,15 @@ func bootstrapUnitTest() {
@@ -147,15 +147,15 @@ func bootstrapUnitTest() {
jwtManager := rbacImpl.NewJWTManager("", (10000 * time.Hour))
jwtManager := rbacImpl.NewJWTManager("", (10000 * time.Hour))
topoloyStore := store.NewGenericStore[links.Link]()
topologyService := topology.NewTopologyService(topoloyStore)
nodeStore := store.NewGenericStore[nodes.Node]()
nodeStore := store.NewGenericStore[nodes.Node]()
nodeService := nodes.NewNodeService(nodeStore)
nodeService := nodes.NewNodeService(nodeStore)
portStore := store.NewGenericStore[ports.Port]()
portStore := store.NewGenericStore[ports.Port]()
portService := ports.NewPortService(portStore)
portService := ports.NewPortService(portStore)
 
topoloyStore := store.NewGenericStore[links.Link]()
 
topologyService := topology.NewTopologyService(topoloyStore, nodeService, portService)
 
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)
Loading