Documentation
¶
Overview ¶
Package routing implements the PeerRouting interface by computing the remote peer's wireguard address from its public key.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var PublicKeyRouter = func(host.Host) (routing.PeerRouting, error) { return FindPeerFunc(FindPeer), nil }
PublicKeyRouter is a PeerRouting implementation that computes the remote peer's wireguard address from its public key.
Functions ¶
Types ¶
type FindPeerFunc ¶
FindPeerFunc wraps a function and implements the PeerRouting interface.
Click to show internal directories.
Click to hide internal directories.