Documentation
¶
Overview ¶
wherez (Where Zee) lets you register and discover sibling nodes in the network based on a shared passphrase. It uses the Mainline DHT network to advertise its own existence and to look for other nodes that are running with the same passphrase.
Wherez authenticates sibling peers using an HMAC-based mechanism.
Example applications: - find the location of your company's doozerd, Chubby or DNS servers. - robust way for stolen notebooks to "phone home". - register and locate servers in a corporate network based on function, by using different passphrases for the DNS server, LDAP server, etc.
This software is in early stages of development.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FindAuthenticatedPeers ¶
FindAuthenticatedPeers uses the BitTorrent DHT network to find sibling Wherez nodes that are using the same passphrase. Wherez will listen on the specified port for both TCP and UDP protocols. The port must be accessible from the public Internet (UPnP is not supported yet).
Wherez will try aggressively to find at least minPeers as fast as possible.
The passphrase will be used to authenticate remote peers. This wherez node will keep running indefinitely as a DHT node.
If appPort is a positive number, wherez will advertise that our main application is on port appPort of the current host. If it's negative, it doesn't announce itself as a peer.
