multiaddr

package
v0.4.10 Latest Latest
Warning

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

Go to latest
Published: Aug 24, 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 ToMultiaddr added in v0.4.6

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}

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