Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( AllCategories = NyaaCategory{"All categories", 0, 0} Anime = NyaaCategory{"All anime", 1, 0} AnimeMusicVideo = NyaaCategory{"Anime music video", 1, 1} AnimeEnglishTranslated = NyaaCategory{"Anime English translated", 1, 2} AnimeNonEnglishTranslated = NyaaCategory{"Anime non English translated", 1, 3} AnimeRaw = NyaaCategory{"Anime raw", 1, 4} Audio = NyaaCategory{"All Audio", 2, 0} AudioLossless = NyaaCategory{"Audio lossless", 2, 1} AudioLossy = NyaaCategory{"Audio lossy", 2, 2} Literature = NyaaCategory{"All literature", 3, 0} LiteratureEnglishTranslated = NyaaCategory{"Literature English translated", 3, 1} LiteratureNonEnglishTranslated = NyaaCategory{"Literature non English translated", 3, 2} LiteratureRaw = NyaaCategory{"Literature raw", 3, 3} LiveAction = NyaaCategory{"Live action all", 4, 0} LiveActionEnglishTranslated = NyaaCategory{"Live action English translated", 4, 1} LiveActionIdolOrPromotionalVideo = NyaaCategory{"Live action idol/promotional video", 4, 2} LiveActionNonEnglishTranslated = NyaaCategory{"Live action non English translated", 4, 3} LiveActionRaw = NyaaCategory{"Live action raw", 4, 4} Pictures = NyaaCategory{"Pictures all", 5, 0} PicturesGraphics = NyaaCategory{"Graphics", 5, 1} PicturesPhotos = NyaaCategory{"Photos", 5, 2} Software = NyaaCategory{"Software all", 6, 0} SoftwareApplications = NyaaCategory{"Applications", 6, 1} SoftwareGames = NyaaCategory{"Games", 6, 2} )
View Source
var ( NoFilter = NyaaFilter{"No filter", 0} NoRemakes = NyaaFilter{"No remakes", 1} TrustedOnly = NyaaFilter{"Trusted only", 2} )
View Source
var Categories = []NyaaCategory{ AllCategories, Anime, AnimeMusicVideo, AnimeEnglishTranslated, AnimeNonEnglishTranslated, AnimeRaw, Audio, AudioLossless, AudioLossy, Literature, LiteratureEnglishTranslated, LiteratureNonEnglishTranslated, LiteratureRaw, LiveAction, LiveActionEnglishTranslated, LiveActionIdolOrPromotionalVideo, LiveActionNonEnglishTranslated, LiveActionRaw, Pictures, PicturesGraphics, PicturesPhotos, Software, SoftwareApplications, SoftwareGames, }
View Source
var Filters = []NyaaFilter{ NoFilter, NoRemakes, TrustedOnly, }
Functions ¶
This section is empty.
Types ¶
type NyaaCategory ¶
func GetNyaaCategory ¶
func GetNyaaCategory(major, minor int) NyaaCategory
func (NyaaCategory) QueryParam ¶
func (category NyaaCategory) QueryParam() string
func (NyaaCategory) String ¶
func (category NyaaCategory) String() string
type NyaaFilter ¶
func (NyaaFilter) QueryParam ¶
func (filter NyaaFilter) QueryParam() string
func (NyaaFilter) String ¶
func (filter NyaaFilter) String() string
type NyaaResultPage ¶
type NyaaResultPage struct { DisplayedFrom int DisplayedTo int DisplayedOutOf int Results []NyaaEntry }
func Search ¶
func Search(query string, category NyaaCategory, filter NyaaFilter) (NyaaResultPage, error)
func SearchSpecificPage ¶
func SearchSpecificPage(query string, category NyaaCategory, filter NyaaFilter, page int) (NyaaResultPage, error)
Click to show internal directories.
Click to hide internal directories.