Documentation ¶
Index ¶
- Variables
- func GetInfo(b BaseSite, url string) (string, string)
- func Initialize(b BaseSite, comic *core.Comic) error
- func LoadComicFromSource(source, url, country, format, imagesFormat string, all, last, imagesOnly bool, ...) ([]*core.Comic, error)
- func RetrieveIssueLinks(b BaseSite, url string, all, last bool) ([]string, error)
- type BaseSite
- type Comicextra
- type Mangadex
- type Mangareader
- type Mangarock
- type Mangatown
Constants ¶
This section is empty.
Variables ¶
View Source
var SupportedSites = []string{
"www.comicextra.com",
"mangarock.com",
"www.mangareader.net",
"www.mangatown.com",
"www.mangahere.cc",
"mangadex.org",
}
SupportedSites are the supported sites.
Functions ¶
Types ¶
type BaseSite ¶ added in v0.12.3
type BaseSite interface { // Initialize will initialize the comic struct with the images link Initialize(comic *core.Comic) error // GetInfo will return the comic name and issue number GetInfo(url string) (string, string) // RetrieveIssueLinks will return the images links of a comic RetrieveIssueLinks(url string, all, last bool) ([]string, error) }
BaseSite specifies an implementation of a Site which allows you to retrieve a manga/comic basics info and imges links
type Comicextra ¶ added in v0.12.3
type Comicextra struct{}
func (*Comicextra) GetInfo ¶ added in v0.12.3
func (c *Comicextra) GetInfo(url string) (string, string)
func (*Comicextra) Initialize ¶ added in v0.12.3
func (c *Comicextra) Initialize(comic *core.Comic) error
Initialize will initialize the comic based on comicextra.com
func (*Comicextra) RetrieveIssueLinks ¶ added in v0.12.3
func (c *Comicextra) RetrieveIssueLinks(url string, all, last bool) ([]string, error)
RetrieveIssueLinks gets a slice of urls for all issues in a comic
type Mangadex ¶ added in v0.17.0
func NewMangadex ¶ added in v0.17.0
NewMangadex returns a Mangadex instance
func (*Mangadex) Initialize ¶ added in v0.17.0
Initialize loads links and metadata from mangadex
type Mangareader ¶ added in v0.12.3
type Mangareader struct{}
func (*Mangareader) GetInfo ¶ added in v0.12.3
func (m *Mangareader) GetInfo(url string) (string, string)
func (*Mangareader) Initialize ¶ added in v0.12.3
func (m *Mangareader) Initialize(comic *core.Comic) error
Initialize loads links and metadata from mangareader
func (*Mangareader) RetrieveIssueLinks ¶ added in v0.12.3
func (m *Mangareader) RetrieveIssueLinks(url string, all, last bool) ([]string, error)
RetrieveIssueLinks gets a slice of urls for all issues in a comic
type Mangarock ¶ added in v0.12.3
func NewMangarock ¶ added in v0.12.3
func (*Mangarock) Initialize ¶ added in v0.12.3
Initialize loads links and metadata from mangarock
Click to show internal directories.
Click to hide internal directories.