Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetNewTorrents ¶
func GetNewTorrents(client *indexer.Facade, fetchOptions *indexer.GenericSearchOptions) error
GetNewTorrents gets the latest torrents.
func ResolveTorrents ¶
Gets torrent information from a given tracker and updates the torrent db
Types ¶
type Definition ¶
type Definition struct { Announce string "announce" AnnounceList [][]string "announce-list" Comment string "comment" CreatedBy string "created by" CreationDate uint "creation date" Encoding string "encoding" Info DefinitionInfo Publisher string "publisher" PublisherUrl string "publisher-url" InfoBuffer []byte InfoHash string }
func ParseTorrent ¶
func ParseTorrent(torrent string) (*Definition, error)
func ParseTorrentFromStream ¶
func ParseTorrentFromStream(stream io.ReadCloser) (*Definition, error)
func ParseTorrentFromUrl ¶
func ParseTorrentFromUrl(h *indexer.Facade, torrentUrl string) (*Definition, error)
func (*Definition) GetTotalFileSize ¶
func (d *Definition) GetTotalFileSize() uint32
func (*Definition) ToMagnetUrl ¶
func (d *Definition) ToMagnetUrl() string
type DefinitionFile ¶
type DefinitionInfo ¶
type DefinitionInfo struct { FileDuration []int "file-duration" FileMedia []int "file-media" Files []DefinitionFile "files" Name string "name" PieceLength uint "piece length" Pieces string "pieces" Profiles []DefinitionProfile "profiles" }
type DefinitionProfile ¶
Click to show internal directories.
Click to hide internal directories.