Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type TorrentFile ¶
Contains all the info about the torrent file
type TorrentInfo ¶
type TorrentInfo struct { Name string Length int64 PieceLength int64 // Pieces string Files []*TorrentFile }
Contains all the meta-info data from the original torrent file
type TorrentMeta ¶
type TorrentMeta struct { AnnounceList []string CreationDate time.Time Encoding string Comment string CreatedBy string Info *TorrentInfo }
Contains all the meta-file data from the original torrent file
func TorrentDecode ¶
func TorrentDecode(b []byte) (*TorrentMeta, error)
Decode byte-array of torrent file into TorrentMeta struct
Click to show internal directories.
Click to hide internal directories.