Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Peer ¶
type Peer struct {
ID ID
Addresses []*ma.Multiaddr
}
Peer represents the identity information of an IPFS Node, including ID, and relevant Addresses.
func (*Peer) AddAddress ¶
func (p *Peer) AddAddress(a *ma.Multiaddr)
AddAddress adds the given Multiaddr address to Peer's addresses.
func (*Peer) NetAddress ¶
func (p *Peer) NetAddress(n string) *ma.Multiaddr
NetAddress returns the first Multiaddr found for a given network.
Click to show internal directories.
Click to hide internal directories.