peersource

package
v1.1.2 Latest Latest
Warning

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

Go to latest
Published: Nov 7, 2019 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Source

type Source int

Source indicates how we found the Peer.

const (
	// Tracker indicates that the peer is found from tracker by announcing the torrent.
	Tracker Source = iota
	// DHT indicates that the peer is found from DHT node.
	DHT
	// PEX indicates that the peer is found from another peer with PEX messages.
	PEX
	// Manual indicates that the peer is added manually by user.
	Manual
	// Incoming indicates that the peer found us. We did not found the peer.
	Incoming
)

func (Source) String

func (s Source) String() string

Jump to

Keyboard shortcuts

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