Documentation
¶
Index ¶
Constants ¶
const APIEndpoint = "https://api.mangarockhd.com/query/web401/"
APIEndpoint is the mangarock api endpoint :)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Author ¶
type Author struct { Name string `json:"name"` OID string `json:"oid"` Role string `json:"role"` Thumbnail string `json:"thumbnail"` }
Author contains the info related to a manga author
type Chapter ¶
type Chapter struct { CID int `json:"cid"` Name string `json:"name"` OID string `json:"oid"` Order int `json:"order"` UpdatedAt int `json:"updated_at"` }
Chapter contains the information related to a Manga chapter
type Character ¶
type Character struct { Name string `json:"name"` OID string `json:"oid"` Thumbnail string `json:"thumbnail"` }
Character contains the information related to a Manga character
type Client ¶
Client contains only the `client` by now Maybe in future it can contains an ApiKey
func NewClientWithOptions ¶
NewClientWithOptions returns a Client instance with the given options
func (*Client) Info ¶
func (c *Client) Info(comicName string) (*MangaRockInfo, error)
Info returns the info related to a manga
func (*Client) Pages ¶
func (c *Client) Pages(comicName string) (*MangaRockPages, error)
Pages returns the pages related to a manga
func (*Client) SetOptions ¶
Set Additional options to the client instance
type Manga ¶
type Manga struct { Author string `json:"author"` Name string `json:"name"` Description string `json:"description"` Thumbnail string `json:"thumbnail"` Cover string `json:"cover"` OID string `json:"oid"` MsID int `json:"msid"` Authors []*Author `json:"authors"` Alias []string `json:"alias"` Artworks []string `json:"artworks"` Characters []*Character `json:"characters"` Chapters []*Chapter `json:"chapters"` Categories []int `json:"categories"` Completed bool `json:"completed"` RichCategories []*RichCategory `json:"rich_categories"` MrsSeries int `json:"mrs_series"` Extra map[string]string `json:"extra"` LastUpdate int `json:"last_update"` Direction int `json:"direction"` Rank int `json:"rank"` Mid int `json:"mid"` TotalChapters int `json:"total_chapters"` Removed bool `json:"removed"` }
Manga Struct contains all the informations returned by mangarock about a manga
type MangaRockInfo ¶
MangaRockInfo is used to parse a response from the `info` endpoint Contains the information related to a Manga
type MangaRockPages ¶
MangaRockPages is used to parse a response from `pages` endpoint Contains the link to the images related to a manga
type RichCategory ¶
RichCategory contains the info related to a manga category