multiaddr

package
v0.3.9 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 10, 2022 License: Apache-2.0, MIT Imports: 6 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ToMA

func ToMA(u *url.URL) (*multiaddr.Multiaddr, error)

ToMA takes a url and converts it into a multiaddr. converts scheme://host:port/path -> /ip/host/tcp/port/scheme/urlescape{path}

func ToURL

func ToURL(ma multiaddr.Multiaddr) (*url.URL, error)

ToURL takes a multiaddr of the form: /dns/thing.com/http/urlescape<path/to/root> /ip/192.168.0.1/tcp/80/http

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL