search

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jan 16, 2020 License: MIT Imports: 9 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
	Query model.Query
	Data  []model.Anime
}

AnimeParser is parser for MyAnimeList anime search result list. Example: https://myanimelist.net/anime.php?q=naruto

func InitAdvAnimeParser

func InitAdvAnimeParser(queryObj model.Query) (anime AnimeParser, err error)

InitAdvAnimeParser to initiate all fields and data of AnimeParser.

func InitAnimeParser

func InitAnimeParser(query string, page ...int) (anime AnimeParser, err error)

InitAnimeParser to initiate basic fields for InitAdvAnimeParser.

type CharacterParser

type CharacterParser struct {
	parser.BaseParser
	Query string
	Page  int
	Data  []model.Character
}

CharacterParser is parser for MyAnimeList character search result list. Example: https://myanimelist.net/character.php?q=luffy

func InitCharacterParser

func InitCharacterParser(query string, page ...int) (character CharacterParser, err error)

InitCharacterParser to initiate all fields and data of CharacterParser.

type MangaParser

type MangaParser struct {
	parser.BaseParser
	Query model.Query
	Data  []model.Manga
}

MangaParser is parser for MyAnimeList manga search result list. Example: https://mymangalist.net/manga.php?q=naruto

func InitAdvMangaParser

func InitAdvMangaParser(queryObj model.Query) (manga MangaParser, err error)

InitAdvMangaParser to initiate all fields and data of MangaParser.

func InitMangaParser

func InitMangaParser(query string, page ...int) (manga MangaParser, err error)

InitMangaParser to initiate basic fields for InitAdvMangaParser.

type PeopleParser

type PeopleParser struct {
	parser.BaseParser
	Query string
	Page  int
	Data  []model.People
}

PeopleParser is parser for MyAnimeList people search result list. Example: https://myanimelist.net/people.php?q=kana

func InitPeopleParser

func InitPeopleParser(query string, page ...int) (people PeopleParser, err error)

InitPeopleParser to initiate all fields and data of PeopleParser.

type UserParser

type UserParser struct {
	parser.BaseParser
	Query string
	Page  int
	Data  []model.User
}

UserParser is parser for MyAnimeList user search result list. Example: https://myanimelist.net/users.php?q=rl404

func InitUserParser

func InitUserParser(query string, page ...int) (user UserParser, err error)

InitUserParser to initiate all fields and data of UserParser.

Jump to

Keyboard shortcuts

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