Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BencodeInfo ¶
type BencodeInfo struct { Files *[]FileInfo `bencode:"files,omitempty"` Name string `bencode:"name"` Length *uint64 `bencode:"length,omitempty"` Md5sum *string `bencode:"md5sum,omitempty"` Pieces string `bencode:"pieces"` PieceLength uint64 `bencode:"piece length"` Private *int `bencode:"private,omitempty"` Source *string `bencode:"source,omitempty"` }
type BencodeTorrent ¶
type BencodeTorrent struct { Announce string `bencode:"announce"` CreatedBy *string `bencode:"created by,omitempty"` CreatedAt *int `bencode:"creation date,omitempty"` Info BencodeInfo `bencode:"info"` }
func ReadTorrent ¶
func ReadTorrent(filePath string) (*BencodeTorrent, error)
Click to show internal directories.
Click to hide internal directories.