Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Anime ¶
type Anime struct {
ID string `json:"id"`
Type string `json:"type"`
Links struct {
Self string `json:"self"`
} `json:"links"`
Attributes struct {
TBA string `json:"tba"`
AbbreviatedTitles []string `json:"abbreviatedTitles"`
AverageRating string `json:"averageRating"`
Status string `json:"status"`
AgeRating string `json:"ageRating"`
Subtype string `json:"subtype"`
CanonicalTitle string `json:"canonicalTitle"`
EpisodeLength int `json:"episodeLength"`
CoverImage struct {
Original string `json:"original"`
Tiny string `json:"tiny"`
Small string `json:"small"`
Large string `json:"large"`
} `json:"coverImage"`
Slug string `json:"slug"`
Titles struct {
EnJp string `json:"en_jp"`
JaJp string `json:"ja_jp"`
} `json:"titles"`
AgeRatingGuide string `json:"ageRatingGuide"`
StartDate string `json:"startDate"`
EpisodeCount int `json:"episodeCount"`
FavoritesCount int `json:"favoritesCount"`
NSFW bool `json:"nsfw"`
EndDate string `json:"endDate"`
RatingRank int `json:"ratingRank"`
PosterImage struct {
Tiny string `json:"tiny"`
Small string `json:"small"`
Medium string `json:"medium"`
Large string `json:"large"`
Original string `json:"original"`
} `json:"posterImage"`
Synopsis string `json:"synopsis"`
ShowType string `json:"showType"`
UserCount int `json:"userCount"`
PopularityRank int `json:"popularityRank"`
} `json:"attributes"`
YoutubeVideoID string `json:"youtubeVideoId"`
}
Anime struct with all the anime data from kitsu
type AnimeByID ¶
type AnimeByID struct {
ID string `json:"id"`
Type string `json:"type"`
Links struct {
Self string `json:"self"`
} `json:"links"`
Attributes struct {
TBA string `json:"tba"`
AbbreviatedTitles []string `json:"abbreviatedTitles"`
AverageRating string `json:"averageRating"`
Status string `json:"status"`
AgeRating string `json:"ageRating"`
Subtype string `json:"subtype"`
CanonicalTitle string `json:"canonicalTitle"`
EpisodeLength int `json:"episodeLength"`
CoverImage struct {
Original string `json:"original"`
Tiny string `json:"tiny"`
Small string `json:"small"`
Large string `json:"large"`
} `json:"coverImage"`
Slug string `json:"slug"`
Titles struct {
En string `json:"en"`
EnJp string `json:"en_jp"`
JaJp string `json:"ja_jp"`
} `json:"titles"`
AgeRatingGuide string `json:"ageRatingGuide"`
StartDate string `json:"startDate"`
EpisodeCount int `json:"episodeCount"`
FavoritesCount int `json:"favoritesCount"`
NSFW bool `json:"nsfw"`
EndDate string `json:"endDate"`
RatingRank int `json:"ratingRank"`
PosterImage struct {
Tiny string `json:"tiny"`
Small string `json:"small"`
Medium string `json:"medium"`
Large string `json:"large"`
Original string `json:"original"`
} `json:"posterImage"`
Synopsis string `json:"synopsis"`
ShowType string `json:"showType"`
UserCount int `json:"userCount"`
PopularityRank int `json:"popularityRank"`
} `json:"attributes"`
YoutubeVideoID string `json:"youtubeVideoId"`
}
AnimeByID holds the data from searching an anime by the id
type Character ¶
type Character struct {
ID string `json:"id"`
Type string `json:"type"`
Links struct {
Self string `json:"self"`
} `json:"links"`
Attributes struct {
CreatedAt string `json:"createdAt"`
UpdatedAt string `json:"updatedAt"`
Slug string `json:"slug"`
Name string `json:"name"`
MalID int `json:"malId"`
Description string `json:"description"`
Image struct {
Original string `json:"original"`
}
} `json:"attributes"`
}
Character struct with all the character data from kitsu
func SearchCharacter ¶
SearchCharacter search for a character on kitsu.io query being the character to search for
type Drama ¶
type Drama struct {
ID string `json:"id"`
Type string `json:"type"`
Links struct {
Self string `json:"self"`
} `json:"links"`
Attributes struct {
CreatedAt string `json:"createdAt"`
UpdatedAt string `json:"updatedAt"`
Slug string `json:"slug"`
Synopsis string `json:"synopsis"`
Titles struct {
En string `json:"en"`
EnJp string `json:"en_jp"`
JaJp string `json:"ja_jp"`
} `json:"titles"`
CanonicalTitle string `json:"canonicalTitle"`
AbbreviatedTitles []string `json:"abbreviatedTitles"`
AverageRating string `json:"averageRating"`
UserCount int `json:"userCount"`
FavoritesCount int `json:"favoritesCount"`
StartDate string `json:"startDate"`
EndDate string `json:"endDate"`
PopularityRank int `json:"popularityRank"`
RatingRank int `json:"ratingRank"`
AgeRating string `json:"ageRating"`
AgeRatingGuide string `json:"ageRatingGuide"`
SubType string `json:"subType"`
Status string `json:"status"`
PosterImage struct {
Tiny string `json:"tiny"`
Small string `json:"small"`
Medium string `json:"medium"`
Large string `json:"large"`
Original string `json:"original"`
} `json:"posterImage"`
CoverImage struct {
Tiny string `json:"tiny"`
Small string `json:"small"`
Large string `json:"large"`
Original string `json:"original"`
} `json:"coverImage"`
EpisodeCount int `json:"episodeCount"`
EpisodeLength int `json:"episodeLength"`
YoutubeVideoID string `json:"youtubeVideoId"`
NSFW bool `json:"nsfw"`
} `json:"attributes"`
Relationships struct{} `json:"relationships"`
}
Drama struct with all the drama data from kitsu
func SearchDrama ¶
SearchDrama search for a drama on kitsu.io query being the producer to search for
type Manga ¶
type Manga struct {
ID string `json:"id"`
Type string `json:"type"`
Links struct {
Self string `json:"self"`
} `json:"links"`
Attributes struct {
CreatedAt string `json:"createdAt"`
UpdatedAt string `json:"updatedAt"`
Slug string `json:"slug"`
Synopsis string `json:"synopsis"`
Titles struct {
En string `json:"en"`
EnJp string `json:"en_jp"`
JaJp string `json:"ja_jp"`
} `json:"titles"`
CanonicalTitle string `json:"canonicalTitle"`
AbbreviatedTitles []string `json:"abbreviatedTitles"`
AverageRating string `json:"averageRating"`
UserCount int `json:"userCount"`
FavoritesCount int `json:"favoritesCount"`
StartDate string `json:"startDate"`
EndDate string `json:"endDate"`
PopularityRank int `json:"popularityRank"`
RatingRank int `json:"ratingRank"`
AgeRating string `json:"ageRating"`
AgeRatingGuide string `json:"ageRatingGuide"`
Subtype string `json:"subtype"`
Status string `json:"status"`
TBA string `json:"tba"`
PosterImage struct {
Tiny string `json:"tiny"`
Small string `json:"small"`
Medium string `json:"medium"`
Large string `json:"large"`
Original string `json:"original"`
} `json:"posterImage"`
CoverImage struct {
Tiny string `json:"tiny"`
Small string `json:"small"`
Large string `json:"large"`
Original string `json:"original"`
} `json:"coverImage"`
ChapterCount int `json:"chapterCount"`
VolumeCount int `json:"volumeCount"`
Serialization string `json:"serialization"`
MangaType string `json:"mangaType"`
} `json:"attributes"`
}
Manga struct with all the manga data from kitsu
type MangaByID ¶
type MangaByID struct {
ID string `json:"id"`
Type string `json:"type"`
Links struct {
Self string `json:"self"`
} `json:"links"`
Attributes struct {
CreatedAt string `json:"createdAt"`
UpdatedAt string `json:"updatedAt"`
Slug string `json:"slug"`
Synopsis string `json:"synopsis"`
Titles struct {
En string `json:"en"`
EnJp string `json:"en_jp"`
JaJp string `json:"ja_jp"`
} `json:"titles"`
CanonicalTitle string `json:"canonicalTitle"`
AbbreviatedTitles []string `json:"abbreviatedTitles"`
AverageRating string `json:"averageRating"`
UserCount int `json:"userCount"`
FavoritesCount int `json:"favoritesCount"`
StartDate string `json:"startDate"`
EndDate string `json:"endDate"`
PopularityRank int `json:"popularityRank"`
RatingRank int `json:"ratingRank"`
AgeRating string `json:"ageRating"`
AgeRatingGuide string `json:"ageRatingGuide"`
Subtype string `json:"subtype"`
Status string `json:"status"`
TBA string `json:"tba"`
PosterImage struct {
Tiny string `json:"tiny"`
Small string `json:"small"`
Medium string `json:"medium"`
Large string `json:"large"`
Original string `json:"original"`
} `json:"posterImage"`
CoverImage struct {
Tiny string `json:"tiny"`
Small string `json:"small"`
Large string `json:"large"`
Original string `json:"original"`
} `json:"coverImage"`
ChapterCount int `json:"chapterCount"`
VolumeCount int `json:"volumeCount"`
Serialization string `json:"serialization"`
MangaType string `json:"mangaType"`
} `json:"attributes"`
}
MangaByID holds the data from searching a manga by the id
type Producers ¶
type Producers struct {
ID string `json:"id"`
Type string `json:"type"`
Links struct {
Self string `json:"self"`
} `json:"links"`
Attributes struct {
CreatedAt string `json:"createdAt"`
UpdatedAt string `json:"updatedAt"`
Slug string `json:"slug"`
Name string `json:"name"`
} `json:"attributes"`
Relationships struct {
AnimeProductions struct {
Links struct {
Self string `json:"self"`
Related string `json:"related"`
} `json:"links"`
} `json:"animeProductions"`
} `json:"relationships"`
}
Producers struct with all the producers data from kitsu
func SearchProducer ¶
SearchProducer search for a producer on kitsu.io query being the producer to search for
type Stats ¶
type Stats struct {
ID string `json:"id"`
Type string `json:"type"`
Links struct {
Self string `json:"self"`
} `json:"links"`
Attributes struct {
CreatedAt string `json:"createdAt"`
UpdatedAt string `json:"updatedAt"`
Kind string `json:"kind"`
StatsData struct {
Total int `json:"total"`
TotalMedia int `json:"total_media"`
Activity []string `json:"activity"`
AllCategories struct {
War int `json:"war"`
Asia int `json:"asia"`
Cops int `json:"cops"`
Idol int `json:"idol"`
Mars int `json:"mars"`
Navy int `json:"navy"`
Past int `json:"past"`
Alien int `json:"alien"`
Angel int `json:"angel"`
Angst int `json:"angst"`
China int `json:"china"`
Crime int `json:"crime"`
Deity int `json:"deity"`
Demon int `json:"demon"`
} `json:"all_categories"`
AllTime struct {
TotalTime int `json:"total_time"`
TotalMedia int `json:"total_media"`
TotalProgress int `json:"total_progress"`
} `json:"all_time"`
AllYears struct{} `json:"all_years"`
} `json:"statsData"`
} `json:"attributes"`
Relationships struct{} `json:"relationships"`
}
Stats struct with all the stats from the user
type User ¶
type User struct {
ID string `json:"id"`
Type string `json:"type"`
Links struct {
Self string `json:"self"`
} `json:"links"`
Attributes struct {
CreatedAt string `json:"createdAt"`
UpdatedAt string `json:"updatedAt"`
Name string `json:"name"`
PastNames []string `json:"pastNames"`
Slug string `json:"slug"`
About string `json:"about"`
Location string `json:"location"`
WaifuOrHusbando string `json:"waifuOrHusbando"`
FollowersCount int `json:"followersCount"`
FollowingCount int `json:"followingCount"`
LifeSpentOnAnime int `json:"lifeSpentOnAnime"`
Birthday string `json:"birthday"`
Gender string `json:"gender"`
CommentsCount int `json:"commentsCount"`
FavoritesCount int `json:"favoritesCount"`
LikesGivenCount int `json:"likesGivenCount"`
ReviewsCount int `json:"reviewsCount"`
LikesReceivedCount int `json:"likesReceivedCount"`
PostsCount int `json:"postsCount"`
RatingsCount int `json:"ratingsCount"`
MediaReactionsCount int `json:"mediaReactionsCount"`
ProExpiresAt string `json:"proExpiresAt"`
Title string `json:"title"`
ProfileCompleted bool `json:"profileCompleted"`
FeedCompleted bool `json:"feedCompleted"`
Website string `json:"website"`
Avatar struct {
Tiny string `json:"tiny"`
Small string `json:"small"`
Medium string `json:"medium"`
Large string `json:"large"`
Original string `json:"original"`
} `json:"avatar"`
CoverImage struct {
Tiny string `json:"tiny"`
Small string `json:"small"`
Large string `json:"large"`
Original string `json:"original"`
} `json:"coverImage"`
RatingSystem string `json:"ratingSystem"`
Theme string `json:"theme"`
FacebookID string `json:"facebookId"`
} `json:"attributes"`
Relationships struct{} `json:"relationships"` // Relationships can contain different stuff for everyone
}
User struct with all the user's data from kitsu
func SearchUser ¶
SearchUser search for a user on kitsu.io query being the user to search for
type UserByID ¶
type UserByID struct {
ID string `json:"id"`
Type string `json:"type"`
Links struct {
Self string `json:"self"`
} `json:"links"`
Attributes struct {
CreatedAt string `json:"createdAt"`
UpdatedAt string `json:"updatedAt"`
Name string `json:"name"`
PastNames []string `json:"pastNames"`
Slug string `json:"slug"`
About string `json:"about"`
Location string `json:"location"`
WaifuOrHusbando string `json:"waifuOrHusbando"`
FollowersCount int `json:"followersCount"`
FollowingCount int `json:"followingCount"`
LifeSpentOnAnime int `json:"lifeSpentOnAnime"`
Birthday string `json:"birthday"`
Gender string `json:"gender"`
CommentsCount int `json:"commentsCount"`
FavoritesCount int `json:"favoritesCount"`
LikesGivenCount int `json:"likesGivenCount"`
ReviewsCount int `json:"reviewsCount"`
LikesReceivedCount int `json:"likesReceivedCount"`
PostsCount int `json:"postsCount"`
RatingsCount int `json:"ratingsCount"`
MediaReactionsCount int `json:"mediaReactionsCount"`
ProExpiresAt string `json:"proExpiresAt"`
Title string `json:"title"`
ProfileCompleted bool `json:"profileCompleted"`
FeedCompleted bool `json:"feedCompleted"`
Website string `json:"website"`
Avatar struct {
Tiny string `json:"tiny"`
Small string `json:"small"`
Medium string `json:"medium"`
Large string `json:"large"`
Original string `json:"original"`
} `json:"avatar"`
CoverImage struct {
Tiny string `json:"tiny"`
Small string `json:"small"`
Large string `json:"large"`
Original string `json:"original"`
} `json:"coverImage"`
RatingSystem string `json:"ratingSystem"`
Theme string `json:"theme"`
FacebookID string `json:"facebookId"`
} `json:"attributes"`
Relationships struct{} `json:"relationships"`
}
UserByID struct with all the user's data from kitsu