The object TCDDBus in lib/dbus.go is exposing the methods Install, ConfigureIngress, ConfigureEgress over D-Bus and gRPC. But the methods for gRPC (protoc) and D-Bus (godbus) cannot have the same name because there is no function overloading in Golang. This has been worked around by using the ugly suffix Method in api/service.proto. So this should be refactored to use two different objects calling the same code internally.
The object
TCDDBus
in lib/dbus.go is exposing the methods Install, ConfigureIngress, ConfigureEgress over D-Bus and gRPC. But the methods for gRPC (protoc
) and D-Bus (godbus) cannot have the same name because there is no function overloading in Golang. This has been worked around by using the ugly suffix Method in api/service.proto. So this should be refactored to use two different objects calling the same code internally.