Documentation ¶
Overview ¶
Package mautil provides multiaddr utility functions.
Index ¶
- func CleanPeerAddrInfo(target peer.AddrInfo) peer.AddrInfo
- func FilterPublic(maddrs []multiaddr.Multiaddr) []multiaddr.Multiaddr
- func FindHTTPAddrs(maddrs []multiaddr.Multiaddr) []multiaddr.Multiaddr
- func MultiaddrStringToNetAddr(maddrStr string) (net.Addr, error)
- func ParsePeers(addrs []string) ([]peer.AddrInfo, error)
- func StringsToMultiaddrs(addrs []string) ([]multiaddr.Multiaddr, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CleanPeerAddrInfo ¶ added in v0.5.12
func FilterPublic ¶ added in v0.3.3
func FilterPublic(maddrs []multiaddr.Multiaddr) []multiaddr.Multiaddr
FilterPublic returns a new slice of multiaddrs with any private, loopback, or unspecified multiaddrs removed.
func FindHTTPAddrs ¶
func FindHTTPAddrs(maddrs []multiaddr.Multiaddr) []multiaddr.Multiaddr
func ParsePeers ¶
ParsePeers parses a list of multiaddr strings into a list of AddrInfo.
func StringsToMultiaddrs ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.