package
Version:
v0.5.12
Opens a new window with list of versions in this module.
Published: Mar 20, 2023
License: Apache-2.0, MIT
Opens a new window with license information.
Imports: 6
Opens a new window with list of imports.
Imported by: 0
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.