Documentation ¶
Overview ¶
Package mangadex implements a client which can download chapters from Mangadex
Index ¶
Constants ¶
View Source
const ApiUrl = "https://api.mangadex.org"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Chapter ¶
type Chapter struct { ID string `json:"id"` Attributes ChapterAttributes `json:"attributes"` }
type ChapterAttributes ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func (*Client) CreateChapterArchive ¶
func (c *Client) CreateChapterArchive(ch *Chapter, data *HomeURLData, forChapter func(i int) error, cont *sync.Controller) (*archive.ZipFile, error)
func (*Client) GetHomeUrl ¶
func (c *Client) GetHomeUrl(cid string) (*HomeURLData, error)
type Error ¶
type Error struct { ID string `json:"id"` Status int `json:"status"` Title string `json:"title"` Detail string `json:"detail"` }
Error represents an error returned from Mangadex when attempting to retrieve a Mangadex@Home url
type HomeURLData ¶ added in v0.16.1
Click to show internal directories.
Click to hide internal directories.