Skip to content
This repository was archived by the owner on Apr 20, 2021. It is now read-only.
This repository was archived by the owner on Apr 20, 2021. It is now read-only.

Refactor lib/dbus.go to have the same method names in gRPC and D-Bus #4

@alban

Description

@alban

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions