package
Version:
v0.4.10
Opens a new window with list of versions in this module.
Published: Aug 24, 2022
License: Apache-2.0, MIT
Opens a new window with license information.
Imports: 6
Opens a new window with list of imports.
Imported by: 2
Opens a new window with list of known importers.
Documentation
¶
func ToMultiaddr(u *url.URL) (multiaddr.Multiaddr, error)
ToMultiaddr takes a url and converts it into a multiaddr.
converts scheme://host:port/path -> /ip/host/tcp/port/scheme/urlescape{path}
ToURL takes a multiaddr of the form:
/dns/thing.com/http/urlescape<path/to/root>
/ip/192.168.0.1/tcp/80/http
Source Files
¶
Click to show internal directories.
Click to hide internal directories.