Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Run ¶
func Run(input Input) map[PeerId]PeerNextRequestState
TODO: We could do metainfo requests here.
Types ¶
type ChunksIter ¶
type ClientPieceOrder ¶
type ClientPieceOrder struct{}
type Peer ¶
type Peer struct { HasPiece func(i pieceIndex) bool MaxRequests int HasExistingRequest func(r Request) bool Choking bool PieceAllowedFast func(pieceIndex) bool DownloadRate float64 Age time.Duration // This is passed back out at the end, so must support equality. Could be a type-param later. Id PeerId }
type PeerNextRequestState ¶
Click to show internal directories.
Click to hide internal directories.