Documentation ¶
Index ¶
- type AlternativeTitle
- type Anime
- type AnimeCharacter
- type AnimeRecommendation
- type Character
- type Episode
- type Promotion
- type Recommendation
- type Related
- type Review
- type Score
- type SimpleEpisode
- type Song
- type Staff
- type StartEndDate
- type Stats
- type UserRec
- type UserStats
- type Video
- type VoiceActor
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 anime.
type Anime ¶
type Anime struct { ID int `json:"id"` Cover string `json:"cover"` Title string `json:"title"` AlternativeTitles AlternativeTitle `json:"alternativeTitles"` Video string `json:"video"` 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"` Episode int `json:"episode"` Status string `json:"status"` StartDate StartEndDate `json:"startDate"` Premiered string `json:"premiered"` Broadcast string `json:"broadcast"` Producers []common.IDName `json:"producers"` Licensors []common.IDName `json:"licensors"` Studios []common.IDName `json:"studios"` Source string `json:"source"` Genres []common.IDName `json:"genres"` Duration string `json:"duration"` Rating string `json:"rating"` Related map[string][]Related `json:"related"` Characters []AnimeCharacter `json:"characters"` Staff []Staff `json:"staff"` Song Song `json:"song"` Reviews []Review `json:"reviews"` Recommendations []AnimeRecommendation `json:"recommendations"` }
Anime represent the main model for MyAnimeList anime information.
type AnimeCharacter ¶
type AnimeCharacter struct { ID int `json:"id"` Name string `json:"name"` Role string `json:"role"` Image string `json:"image"` VaId int `json:"vaId"` VaName string `json:"vaName"` VaImage string `json:"vaImage"` VaRole string `json:"vaRole"` }
AnimeCharacter represents simple character model with its voice actor information.
type AnimeRecommendation ¶
type AnimeRecommendation struct { ID int `json:"id"` Title string `json:"title"` Image string `json:"image"` Count int `json:"count"` }
AnimeRecommendation represents simple anime recommendation.
type Character ¶
type Character struct { ID int `json:"id"` Name string `json:"name"` Image string `json:"image"` Role string `json:"role"` VoiceActors []VoiceActor `json:"voiceActors"` }
Character represents the main model for MyAnimeList anime character.
type Episode ¶
type Episode struct { Episode int `json:"episode"` Title string `json:"title"` JapaneseTitle string `json:"japaneseTitle"` AiredDate string `json:"airedDate"` Link string `json:"link"` Tag string `json:"tag"` }
Episode represents the main model for MyAnimeList anime episode information.
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 anime recommendation.
type Review ¶
type Review struct { ID int `json:"id"` Username string `json:"username"` Image string `json:"image"` Helpful int `json:"helpful"` Date common.DateTime `json:"date"` Episode string `json:"episode"` Score map[string]int `json:"score"` Review string `json:"review"` }
Review represents the main model for MyAnimeList anime 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 SimpleEpisode ¶
type SimpleEpisode struct { Episode int `json:"episode"` Title string `json:"title"` Link string `json:"link"` }
SimpleEpisode represents anime episode simple model.
type Staff ¶
type Staff struct { ID int `json:"id"` Name string `json:"name"` Role string `json:"role"` Image string `json:"image"` }
Staff represents the main model for MyAnimeList anime staff.
type StartEndDate ¶
StartEndDate represents anime start and end of airing 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 anime stats information.
type UserStats ¶
type UserStats struct { Username string `json:"username"` Image string `json:"image"` Score int `json:"score"` Status string `json:"status"` Episode string `json:"episode"` Date string `json:"date"` }
UserStats represents simple user's stats model.
type Video ¶
type Video struct { Episodes []SimpleEpisode `json:"episodes"` Promotions []Promotion `json:"promotions"` }
Video represents the main model for MyAnimeList anime video information.