search

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Jun 20, 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
	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(config config.Config, queryObj model.Query) (anime AnimeParser, err error)

InitAdvAnimeParser to initiate all fields and data of AnimeParser.

func InitAnimeParser

func InitAnimeParser(config config.Config, 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(config config.Config, query string, page ...int) (character CharacterParser, err error)

InitCharacterParser to initiate all fields and data of CharacterParser.

type ClubParser added in v0.5.0

type ClubParser struct {
	parser.BaseParser
	Query    string
	Category int
	Sort     int
	Page     int
	Data     []model.Club
}

ClubParser is parser for MyAnimeclub club club. Exanple: https://myanimeclub.net/clubs.php?catid=1&cn=naruto&action=find

func InitClubParser added in v0.5.0

func InitClubParser(config config.Config, query string, params ...int) (club ClubParser, err error)

InitClubParser to initiate all fields and data of ClubParser.

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(config config.Config, queryObj model.Query) (manga MangaParser, err error)

InitAdvMangaParser to initiate all fields and data of MangaParser.

func InitMangaParser

func InitMangaParser(config config.Config, 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(config config.Config, 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(config config.Config, 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