Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client interface { // ParseResults read given HTML data to search for torrents results. ParseResults(data io.Reader) ([]*Result, error) // SearchURL makes a YggTorrent search URL ready to be used through flaresolverr. SearchURL(query string, category Category, subcategory SubCategory) string }
Client interface describes wrapped YggTorrent client.
type Result ¶
type Result struct { ID string `json:"id"` Name string `json:"name"` PublishedAt time.Time `json:"published_at"` Size string `json:"size"` Seeders uint `json:"seeders"` Leechers uint `json:"leechers"` InfoURL string `json:"uri"` DownloadURL string `json:"download_url"` }
Result is a search result.
type SubCategory ¶
type SubCategory int
SubCategory describes a sub category with a Category.
const ( Movie SubCategory = iota // 2183 TV // 2184 )
func (SubCategory) String ¶
func (i SubCategory) String() string
Click to show internal directories.
Click to hide internal directories.