Versions in this module Expand all Collapse all v0 v0.4.0 Jun 5, 2020 Changes in this version + type AnnounceURL string + type File struct + Len int + Md5 []byte + Path []string + type FileParser struct + Filename string + func (fp *FileParser) Parse() (*MetaInfo, error) + type InfoDict struct + Files []File + Hash [20]byte + Len int + Md5 []byte + Name string + PieceLen int + Pieces []byte + Private int + func (info *InfoDict) Bytes(filename string) ([]byte, error) + func (info *InfoDict) FilesInfo() []File + func (info *InfoDict) NumPieces() int + func (info *InfoDict) Parse() error + func (info *InfoDict) PieceHash(i int) []byte + func (info *InfoDict) PieceLength(i int) int + func (info *InfoDict) PieceOffset(i int) int64 + func (info *InfoDict) PiecesHash() [][]byte + func (info *InfoDict) TotalLength() (total int) + type InfoHashParser struct + InfoHash [20]byte + func (ip *InfoHashParser) Parse() (*MetaInfo, error) + type MagnetParser struct + URI string + func (mp *MagnetParser) Parse() (*MetaInfo, error) + type MetaInfo struct + Announce string + AnnounceList [][]string + Comment string + Created string + CreationDate int + Encoding string + Info *InfoDict + InfoBytes []byte + func LoadMetainfoFile(filename string) (*MetaInfo, error) + func (m *MetaInfo) CreateTorrentFile(fileName string) error + func (m *MetaInfo) Parse() error + type Parser interface + Parse func() (*MetaInfo, error) + type ReaderParser struct + R io.Reader + func (rp *ReaderParser) Parse() (*MetaInfo, error) v0.2.0 May 27, 2020