addressexchange

package
v1.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 24, 2024 License: ISC Imports: 7 Imported by: 0

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL