news

package
Version: 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: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DetailParser added in v0.5.0

type DetailParser struct {
	parser.BaseParser
	ID   int
	Data model.News
}

DetailParser is parser for MyAnimeList news information. Exanple: https://myanimelist.net/news/34036779

func InitDetailParser added in v0.5.0

func InitDetailParser(config config.Config, id int) (newsParser DetailParser, err error)

InitDetailParser to initiate all fields and data of DetailParser.

type ListParser

type ListParser struct {
	parser.BaseParser
	Tag  string
	Page int
	Data []model.List
}

ListParser is parser for MyAnimeList news list. Example: https://myanimelist.net/news

func InitListParser

func InitListParser(config config.Config, params ...interface{}) (news ListParser, err error)

InitListParser to initiate all fields and data of ListParser.

type TagParser added in v0.5.0

type TagParser struct {
	parser.BaseParser
	Data model.TagCategory
}

TagParser is parser for MyAnimeList news tag list. Example: https://myanimelist.net/news/tag

func InitTagParser added in v0.5.0

func InitTagParser(config config.Config) (news TagParser, err error)

InitTagParser to initiate all fields and data of TagParser.

Jump to

Keyboard shortcuts

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