Open AlexCheema opened 14 hours ago
Hello. Did the YAML that I did send you via discord is good for you ? Thanks in advance. Best Regards. Benjamin.
Hello. Did the YAML that I did send you via discord is good for you ? Thanks in advance. Best Regards. Benjamin.
It looks a bit overcomplicated. Basically you need to implement
@abstractmethod
async def discover_peers(self, wait_for_peers: int = 0) -> List[PeerHandle]:
pass
The only PeerHandle
we support right now is GRPCPeerHandle
so you just need to be able to create a GRPCPeerHandle
for each peer. Here's the constructor:
class GRPCPeerHandle(PeerHandle):
def __init__(self, _id: str, address: str, device_capabilities: DeviceCapabilities):
self._id = _id
self.address = address
self._device_capabilities = device_capabilities
self.channel = None
self.stub = None
So you need an id
, address
and device_capabilities
for each peer in the configuration file.
Okay, I will look into that.
ManualDiscovery
discovery moduleUDPDiscovery
andTailscaleDiscovery
discovery modules for a reference implementation. This should be even simpler than these.