peers

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jan 20, 2024 License: Apache-2.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