util

package
v0.0.0-...-49862cc Latest Latest
Warning

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

Go to latest
Published: Feb 14, 2022 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	IPv6StartMark = "["
	IPv6EndMark   = "]"
)

Variables

This section is empty.

Functions

func ParsePeerID

func ParsePeerID(s string) ([]string, error)

ParsePeerID PeerId.parse("a:b") = new PeerId("a", "b", 0 , -1) PeerId.parse("a:b:c") = new PeerId("a", "b", "c", -1) PeerId.parse("a:b::d") = new PeerId("a", "b", 0, "d") PeerId.parse("a:b:c:d") = new PeerId("a", "b", "c", "d")

Types

type EndPoint

type EndPoint struct {
	IP   string
	Port int
}

Jump to

Keyboard shortcuts

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