Skip to content
Snippets Groups Projects
Commit 1e1532da authored by André Sterba's avatar André Sterba
Browse files

Adjust naming

parent a170cf11
Branches
No related tags found
5 merge requests!376Add additional example application hostname-checker,!349Northbound refactoring to implement NIB concept for devices,!343Add basic application framework and example application to show interaction between events an NBI,!339Create basic venv-manager for use with arista,!324Provide prototype implementation for topology handling
Pipeline #104636 failed
This commit is part of merge request !343. Comments created here will be created in the context of that merge request.
......@@ -48,7 +48,7 @@ type Core struct {
pndStore networkdomain.PndStore
userService rbac.UserService
roleService rbac.RoleService
topologyService topology.TService
topologyService topology.TopologyService
nodeService nodes.Service
portService ports.Service
httpServer *http.Server
......
......@@ -34,7 +34,7 @@ func NewNBI(
users rbacInterfaces.UserService,
roles rbacInterfaces.RoleService,
jwt rbac.JWTManager,
topologyService topology.TService,
topologyService topology.TopologyService,
nodeService nodes.Service,
portService ports.Service,
......
......@@ -17,14 +17,14 @@ import (
// Topology holds a topologyService and represents a TopologyServiceServer.
type Topology struct {
apb.UnimplementedTopologyServiceServer
topologyService topology.TService
topologyService topology.TopologyService
nodeService nodes.Service
portService ports.Service
}
// NewTopologyServer receives a topologyService and returns a new TopologyServer.
func NewTopologyServer(
service topology.TService,
service topology.TopologyService,
nodeService nodes.Service,
portService ports.Service,
) *Topology {
......
......@@ -2,8 +2,8 @@ package topology
import "code.fbi.h-da.de/danet/gosdn/controller/topology/links"
// TService defines an interface for a TopologyService
type TService interface {
// TopologyService defines an interface for a TopologyService
type TopologyService interface {
AddLink(links.Link) error
UpdateLink(links.Link) error
DeleteLink(links.Link) error
......@@ -16,7 +16,7 @@ type Service struct {
}
// NewTopologyService creates a new TopologyService
func NewTopologyService(store Store) TService {
func NewTopologyService(store Store) TopologyService {
return &Service{
store: store,
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment