genre

package
v0.17.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 22, 2020 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AnimeParser

type AnimeParser struct {
	parser.BaseParser
	ID   int
	Page int
	Data []model.Anime
}

AnimeParser is parser for MyAnimeList genre's anime list. Example: https://myanimelist.net/anime/genre/1/Action

func InitAnimeParser

func InitAnimeParser(config config.Config, id int, page ...int) (genre AnimeParser, err error)

InitAnimeParser to initiate all fields and data of AnimeParser.

type ListParser added in v0.5.0

type ListParser struct {
	parser.BaseParser
	Type string
	Data []model.Genre
}

ListParser is parser for MyAnimeList all anime & manga genres. Example: https://myanimelist.net/anime.php

https://myanimelist.net/manga.php

func InitListParser added in v0.5.0

func InitListParser(config config.Config, gType string) (genres ListParser, err error)

InitListParser to initiate all fields and data of ListParser.

type MangaParser

type MangaParser struct {
	parser.BaseParser
	ID   int
	Page int
	Data []model.Manga
}

MangaParser is parser for MyAnimeList genre's manga list. Example: https://myanimelist.net/manga/genre/1/Action

func InitMangaParser

func InitMangaParser(config config.Config, id int, page ...int) (genre MangaParser, err error)

InitMangaParser to initiate all fields and data of MangaParser.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL