Documentation ¶
Index ¶
- Variables
- type Airing
- type Anime
- type AnimeSmall
- type Character
- type CharacterSmall
- type Error
- type Session
- func (s *Session) Auth() (err error)
- func (s *Session) GetAnime(id int) (result *Anime, err error)
- func (s *Session) IsExpired() bool
- func (s *Session) NewRequest(method, urlStr string, body io.Reader) (req *http.Request, err error)
- func (s *Session) SearchAnime(terms string) (results []*AnimeSmall, err error)
- func (s *Session) SearchCharacter(terms string) (results []*CharacterSmall, err error)
Constants ¶
This section is empty.
Variables ¶
View Source
var ( HomeURL *url.URL APIURL *url.URL )
Functions ¶
This section is empty.
Types ¶
type Airing ¶
type Anime ¶
type Anime struct { Id int `json:"id"` Type string `json:"type"` TitleRomaji string `json:"title_romaji"` TitleJapanese string `json:"title_japanese"` TitleEnglish string `json:"title_english"` Synonyms []string `json:"synonyms"` Genres []string `json:"genres"` Description string `json:"description"` ImageURLSmall string `json:"image_url_sml"` ImageURLMedium string `json:"image_url_med"` ImageURLLarge string `json:"image_url_lge"` ImageURLBanner string `json:"image_url_banner"` StartDate string `json:"start_date"` EndDate string `json:"end_date"` Hashtag string `json:"hashtag"` Source string `json:"source"` DurationMinutes int `json:"duration"` AiringStatus string `json:"airing_status"` TotalEpisodes int `json:"total_episodes"` Airing *Airing `json:"airing"` RelationType string `json:"relation_type"` }
func (*Anime) AnimeSmall ¶
func (anime *Anime) AnimeSmall() (sml *AnimeSmall, err error)
type AnimeSmall ¶
type AnimeSmall struct { Id int `json:"id"` Type string `json:"type"` AiringStatus string `json:"airing_status"` TotalEpisodes int `json:"total_episodes"` TitleRomaji string `json:"title_romaji"` TitleJapanese string `json:"title_japanese"` TitleEnglish string `json:"title_english"` Synonyms []string `json:"synonyms"` ImageURLSmall string `json:"image_url_sml"` ImageURLMedium string `json:"image_url_med"` ImageURLLarge string `json:"image_url_lge"` RelationType string `json:"relation_type"` }
type CharacterSmall ¶
type Error ¶
func UnmarshalErrorResponse ¶
type Session ¶
type Session struct {
// contains filtered or unexported fields
}
func NewSession ¶
func (*Session) NewRequest ¶
func (*Session) SearchAnime ¶
func (s *Session) SearchAnime(terms string) (results []*AnimeSmall, err error)
func (*Session) SearchCharacter ¶
func (s *Session) SearchCharacter(terms string) (results []*CharacterSmall, err error)
Click to show internal directories.
Click to hide internal directories.