Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ReceiveAddresses ¶
func ReceiveAddresses(context ReceiveAddressesContext, incomingRoute *router.Route, outgoingRoute *router.Route, peer *peerpkg.Peer) error
ReceiveAddresses asks a peer for more addresses if needed.
func SendAddresses ¶
func SendAddresses(context SendAddressesContext, incomingRoute *router.Route, outgoingRoute *router.Route) error
SendAddresses sends addresses to a peer that requests it.
Types ¶
type ReceiveAddressesContext ¶
type ReceiveAddressesContext interface {
AddressManager() *addressmanager.AddressManager
}
ReceiveAddressesContext is the interface for the context needed for the ReceiveAddresses flow.
type SendAddressesContext ¶
type SendAddressesContext interface {
AddressManager() *addressmanager.AddressManager
}
SendAddressesContext is the interface for the context needed for the SendAddresses flow.
Click to show internal directories.
Click to hide internal directories.