Opens a new window with list of versions in this module.
Published: Mar 15, 2017
Opens a new window with license information.
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Package peerdiscovery provides automatic detection of other peers in the same subnet.
It does this by utilizing broadcastmessages over UDP. The package is in part based on
GetLocalIP return the IP-address of the local client. It does this by
dialing the Google DNS service, hence it will fail if it is unable to reach
Start initiate listening for other peers while also start broadcasting
to others. The `id`-field in the callbacks have the form:
where the latter part is the IPv4 address of the peer.
Config defines configuration for the package, including callbacks.
Peer holds information of address, ports and when it was detected.
DeepCopy safely returns a copy of the peer.
Click to show internal directories.
Click to hide internal directories.