Documentation ¶
Index ¶
Constants ¶
View Source
const ( // PeerIDLength The peer_id is exactly 20 bytes (characters) long. // https://wiki.theory.org/BitTorrentSpecification#peer_id PeerIDLength = 20 // PeerPrefix Azureus-style PeerPrefix = "-UT3600-" )
View Source
const MAX_METADATA_SIZE = 10 * 1024 * 1024
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type LeechEventHandlers ¶
type Metadata ¶
type Metadata struct { InfoHash []byte // Name should be thought of "Title" of the torrent. For single-file torrents, it is the name // of the file, and for multi-file torrents, it is the name of the root directory. Name string TotalSize uint64 DiscoveredOn int64 // Files must be populated for both single-file and multi-file torrents! Files []persistence.File }
Click to show internal directories.
Click to hide internal directories.