2021-05-14 11:50:41 +10:00
|
|
|
package request_strategy
|
|
|
|
|
2021-09-15 10:30:37 +10:00
|
|
|
import (
|
2021-09-18 20:34:14 +10:00
|
|
|
"github.com/anacrolix/torrent/metainfo"
|
2021-09-15 10:30:37 +10:00
|
|
|
"github.com/anacrolix/torrent/storage"
|
|
|
|
)
|
|
|
|
|
2021-05-14 11:50:41 +10:00
|
|
|
type Torrent struct {
|
|
|
|
Pieces []Piece
|
2021-09-15 10:30:37 +10:00
|
|
|
Capacity storage.TorrentCapacity
|
2021-11-29 10:14:16 +11:00
|
|
|
// Some value that's unique and stable between runs.
|
2021-09-19 15:16:37 +10:00
|
|
|
InfoHash metainfo.Hash
|
2021-10-10 11:32:27 +11:00
|
|
|
ChunksPerPiece uint32
|
2021-05-14 11:50:41 +10:00
|
|
|
|
|
|
|
MaxUnverifiedBytes int64
|
|
|
|
}
|