util

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Oct 23, 2021 License: AGPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetIdAddr

func GetIdAddr(saddr string) (string, string)

func GetStringAddr

func GetStringAddr(addr string, peerId string) string

func Merge

func Merge(addrInfos []*peer.AddrInfo) *peer.AddrInfo

func MultiaddrToAddInfo

func MultiaddrToAddInfo(addrs []multiaddr.Multiaddr) []*peer.AddrInfo

func ToAddInfo

func ToAddInfo(peerId string, saddr string) (*peer.AddrInfo, error)

func ToAddInfos

func ToAddInfos(peerId string, address string) ([]*peer.AddrInfo, error)

func ToMultiaddr

func ToMultiaddr(saddrs []string) []multiaddr.Multiaddr

func ToString

func ToString(addrs []multiaddr.Multiaddr) []string

Types

This section is empty.

Jump to

Keyboard shortcuts

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