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
+ 2
2
Compare changes
  • Side-by-side
  • Inline
@@ -47,7 +47,7 @@ func (t Topology) AddLink(ctx context.Context, request *apb.AddLinkRequest) (*ap
@@ -47,7 +47,7 @@ func (t Topology) AddLink(ctx context.Context, request *apb.AddLinkRequest) (*ap
TargetNode: targetNode,
TargetNode: targetNode,
TargetPort: targetPort,
TargetPort: targetPort,
}
}
err = topologyService.AddLink(link)
err = t.topologyService.AddLink(link)
if err != nil {
if err != nil {
return nil, status.Errorf(codes.Aborted, "%v", err)
return nil, status.Errorf(codes.Aborted, "%v", err)
}
}
@@ -60,7 +60,7 @@ func (t Topology) AddLink(ctx context.Context, request *apb.AddLinkRequest) (*ap
@@ -60,7 +60,7 @@ func (t Topology) AddLink(ctx context.Context, request *apb.AddLinkRequest) (*ap
// GetTopology returns the current topology in the form of all links
// GetTopology returns the current topology in the form of all links
func (t Topology) GetTopology(ctx context.Context, request *apb.GetTopologyRequest) (*apb.GetTopologyResponse, error) {
func (t Topology) GetTopology(ctx context.Context, request *apb.GetTopologyRequest) (*apb.GetTopologyResponse, error) {
topo, err := topologyService.GetAll()
topo, err := t.topologyService.GetAll()
if err != nil {
if err != nil {
return nil, status.Errorf(codes.Aborted, "%v", err)
return nil, status.Errorf(codes.Aborted, "%v", err)
}
}
Loading