Documentation ¶
Overview ¶
Package mautil provides multiaddr utility functions.
Index ¶
- func FilterPrivateIPs(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 FilterPrivateIPs ¶
func FilterPrivateIPs(maddrs []multiaddr.Multiaddr) []multiaddr.Multiaddr
FilterPrivateIPs returns a new slice of multiaddrs with any private, loopback, or unspecified IP multiaddrs removed. If no multiaddrs are removed, then returns the original slice.
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.