Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AlternativeTitle ¶
type AlternativeTitle struct { English string `json:"english"` Synonym string `json:"synonym"` Japanese string `json:"japanese"` }
AlternativeTitle represents alternative english, synonym, and japanese title of manga.
type Character ¶
type Character struct { ID int `json:"id"` Name string `json:"name"` Image string `json:"image"` Role string `json:"role"` }
Character represents the main model for MyAnimeList manga character.
type Featured ¶ added in v0.5.0
type Featured struct { ID int `json:"id"` Title string `json:"title"` Image string `json:"image"` Summary string `json:"summary"` Username string `json:"username"` View int `json:"view"` IsSpoiler bool `json:"is_spoiler"` IsAdvertorial bool `json:"is_advertorial"` Tags []string `json:"tags"` }
Featured represents the main model for MyAnimeList manga feaatured.
type Manga ¶
type Manga struct { ID int `json:"id"` Cover string `json:"cover"` Title string `json:"title"` AlternativeTitles AlternativeTitle `json:"alternativeTitles"` Synopsis string `json:"synopsis"` Score float64 `json:"score"` Voter int `json:"voter"` Rank int `json:"rank"` Popularity int `json:"popularity"` Member int `json:"member"` Favorite int `json:"favorite"` Type string `json:"type"` Volume int `json:"volume"` Chapter int `json:"chapter"` Status string `json:"status"` StartDate StartEndDate `json:"startDate"` Genres []common.IDName `json:"genres"` Authors []common.IDName `json:"authors"` Serializations []common.IDName `json:"serializations"` Related map[string][]Related `json:"related"` Characters []Character `json:"characters"` Reviews []Review `json:"reviews"` Recommendations []MangaRecommendation `json:"recommendations"` }
Manga represent the main model for MyAnimeList manga information.
type MangaRecommendation ¶
type MangaRecommendation struct { ID int `json:"id"` Title string `json:"title"` Image string `json:"image"` Count int `json:"count"` }
MangaRecommendation represents simple manga recommendation.
type News ¶ added in v0.4.0
type News struct { ID int `json:"id"` Title string `json:"title"` Image string `json:"image"` Content string `json:"content"` Date time.Time `json:"date"` Username string `json:"username"` ForumID int `json:"forum_id"` Comment int `json:"comment"` }
News represents the main model for MyAnimeList manga news.
type Recommendation ¶
type Recommendation struct { ID int `json:"id"` Title string `json:"title"` Image string `json:"image"` Users []UserRec `json:"users"` }
Recommendation represents the main model for MyAnimeList manga recommendation.
type Review ¶
type Review struct { ID int `json:"id"` Username string `json:"username"` Image string `json:"image"` Helpful int `json:"helpful"` Date time.Time `json:"date"` Chapter string `json:"chapter"` Score map[string]int `json:"score"` Review string `json:"review"` }
Review represents the main model for MyAnimeList manga review.
type Score ¶
type Score struct { Type int `json:"type"` Vote int `json:"vote"` Percent float64 `json:"percent"` }
Score represents detail score model and its count.
type StartEndDate ¶
StartEndDate represents manga start and end of publishing date.
type Stats ¶
type Stats struct { Summary map[string]int `json:"summary"` Score []Score `json:"score"` Users []UserStats `json:"users"` }
Stats represents the main model for MyAnimeList manga stats information.