addressexchange

package
v1.0.3 Latest Latest
Warning

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

Go to latest
Published: Dec 21, 2023 License: MIT Imports: 7 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ReceiveAddresses

func ReceiveAddresses(context ReceiveAddressesContext, incomingRoute *routerpkg.Route, outgoingRoute *routerpkg.Route,
	peer *peerpkg.Peer) error

ReceiveAddresses asks a peer for more addresses if needed.

func SendAddresses

func SendAddresses(context SendAddressesContext, incomingRoute *routerpkg.Route, outgoingRoute *routerpkg.Route) error

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