peer

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: May 23, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	FilterAll       = "all"
	FilterAttempted = "attempted"
	FilterSuccesses = "successes"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type List

type List struct {
	Peers []*Peer
}

func NewList

func NewList() *List

func (*List) GetPeers

func (l *List) GetPeers(filter string) error

type Peer

type Peer struct {
	Ip       []byte
	Port     uint16
	Services uint64
	Time     time.Time
	Status   item.PeerConnectionStatus
}

Jump to

Keyboard shortcuts

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