peers

package
v0.0.0-...-c3fa490 Latest Latest
Warning

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

Go to latest
Published: May 31, 2021 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Peer

type Peer struct {
	IP   net.IP
	Port uint16
}

Peer encodes connection information for a peer

func Unmarshal

func Unmarshal(peersBin []byte) ([]Peer, error)

Unmarshal parses peer IP addresses and ports from a buffer

func (Peer) String

func (p Peer) String() string

Jump to

Keyboard shortcuts

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