peers

package
v0.0.0-...-806d497 Latest Latest
Warning

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

Go to latest
Published: Mar 8, 2022 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
	Protocol string
}

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