Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type BitTorrent ¶
BitTorrent
func (*BitTorrent) GetTorrentMetaInfo ¶
func (b *BitTorrent) GetTorrentMetaInfo() (*MetaInfo, error)
get torrent meta info.
func (*BitTorrent) ReadTorrentInformation ¶
func (b *BitTorrent) ReadTorrentInformation(r io.Reader) (*MetaInfo, error)
Read torrent information
type DirectoryInfo ¶
type DirectoryInfo struct { Name string Dirs []*DirectoryInfo Files []*File }
directory information
type InfoDict ¶
type InfoDict struct { Files []FileDict // multiple files. Name string Length uint64 `bencode:"length"` Md5sum string PieceLength uint64 `bencode:"piece length"` Pieces string `bencode:"pieces"` Publisher string `bencode:"publisher"` PublisherURL string `bencode:"publisher-url"` }
torrent info section
Click to show internal directories.
Click to hide internal directories.