models

package
v0.0.0-...-c2f36be Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 30, 2024 License: BSD-3-Clause Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Anime

type Anime struct {
	Type            string           `json:"Type"`
	Resources       AnimeResource    `json:"Resources"`
	Titles          AnimeTitles      `json:"Titles"`
	Description     string           `json:"Description,omitempty"`
	MetaData        []MetaData       `json:"MetaData"`
	PortraitIMG     AnimeImage       `json:"PortraitIMG"`
	LandscapeIMG    AnimeImage       `json:"LandscapeIMG"`
	Status          string           `json:"Status"`
	ContentRating   string           `json:"ContentRating"`
	CountryOfOrigin string           `json:"CountryOfOrigin"`
	Period          AnimePeriod      `json:"Period"`
	StartAt         AnimeDate        `json:"StartAt"`
	EndAt           AnimeDate        `json:"EndAt"`
	Studios         []AnimeCompany   `json:"Studios"`
	Genres          []AnimeGenre     `json:"Genres"`
	Producers       []AnimeCompany   `json:"Producers"`
	Licensors       []AnimeCompany   `json:"Licensors"`
	Tags            []AnimeTag       `json:"Tags"`
	Relations       []AnimeRelation  `json:"Relations"`
	Characters      []AnimeCharacter `json:"Characters"`
	InnerSeasons    []AnimeSeason    `json:"InnerSeasons,omitempty"`
	Episodes        []AnimeEpisode   `json:"Episodes,omitempty"`
	Trailers        []AnimeTrailer   `json:"Trailers"`
	External        []AnimeLink      `json:"External"`
	Themes          AnimeThemes      `json:"Themes"`
	Posters         []AnimeImage     `json:"Posters"`
	Backdrops       []AnimeImage     `json:"Backdrops"`
	Logos           []AnimeImage     `json:"Logos"`
	Banners         []AnimeImage     `json:"Banners"`
	Arts            []AnimeImage     `json:"Arts"`
}

type AnimeCharacter

type AnimeCharacter struct {
	ID          AnimeID      `json:"ID"`
	Name        AnimeName    `json:"Name"`
	Images      []AnimeImage `json:"Images"`
	Description struct {
		Mal     string `json:"Mal"`
		AniList string `json:"AniList"`
	} `json:"Description,omitempty"`
	MetaData    []MetaData        `json:"MetaData,omitempty"`
	InitialAge  int               `json:"Age"`
	Gender      string            `json:"Gender"`
	DateOfBirth AnimeDate         `json:"DateOfBirth"`
	Role        string            `json:"Role"`
	VoiceActor  []AnimeVoiceActor `json:"VoiceActor"`
}

type AnimeCompany

type AnimeCompany struct {
	ID   AnimeID `json:"ID"`
	Name string  `json:"name"`
}

type AnimeContentRating

type AnimeContentRating struct {
	TVPG string `json:"TVPG"`
	MPAA string `json:"MPAA"`
}

type AnimeDate

type AnimeDate struct {
	Year  int `json:"Year"`
	Month int `json:"Month"`
	Day   int `json:"Day"`
}

func (AnimeDate) IsZero

func (v AnimeDate) IsZero() bool

func (*AnimeDate) Max

func (v *AnimeDate) Max(i *AnimeDate)

type AnimeEpisode

type AnimeEpisode struct {
	EnTitle        string                `json:"EnTitle,omitempty"`
	JpTitle        string                `json:"JpTitle,omitempty"`
	RmTitle        string                `json:"RmTitle,omitempty"`
	Aired          bool                  `json:"Aired"`
	ReleaseTime    AnimeTime             `json:"ReleaseTime"`
	MetaData       []MetaData            `json:"MetaData"`
	Runtime        int                   `json:"Runtime"`
	Filler         bool                  `json:"Filler"`
	Special        bool                  `json:"Special"`
	SeasonNumber   int                   `json:"SeasonNumber"`
	AbsoluteNumber float32               `json:"AbsoluteNumber"`
	Number         float32               `json:"Number"`
	ThumbnailsIMG  AnimeImage            `json:"ThumbnailsIMG"`
	Resources      AnimeEpisodeResources `json:"Resources"`
}

type AnimeEpisodeResources

type AnimeEpisodeResources struct {
	Mal         int    `json:"Mal"`
	AniDB       int    `json:"AniDB"`
	TVDBID      int64  `json:"TVDBID"`
	TMDBID      int64  `json:"TMDBID"`
	SimklID     int64  `json:"SimklID"`
	Crunchyroll string `json:"Crunchyroll"`
}

type AnimeGenre

type AnimeGenre string

type AnimeID

type AnimeID struct {
	Mal     int   `json:"Mal"`
	AniList int   `json:"Anilist"`
	AniDB   int   `json:"Anidb"`
	TVDBID  int64 `json:"TVDbID"`
	TMDBID  int64 `json:"TMDbID"`
}

type AnimeImage

type AnimeImage struct {
	Height    int    `json:"Height,omitempty"`
	Width     int    `json:"Width,omitempty"`
	Image     string `json:"Image"`
	Thumbnail string `json:"Thumbnail"`
}

type AnimeInfo

type AnimeInfo struct {
	Title string
	Query string
	Type  string
	MalID int
	SD    AnimeDate
	ED    AnimeDate
}
type AnimeLink struct {
	Site string `json:"Site"`
	URL  string `json:"Link"`
}

type AnimeName

type AnimeName struct {
	Full        string   `json:"Full"`
	Native      string   `json:"Native"`
	Alternative []string `json:"Alternative"`
	Spoilers    []string `json:"Spoilers,omitempty"`
	Translate   []struct {
		Iso693_1 string `json:"Iso693_1"`
		Name     string `json:"Name"`
	} `json:"Translate,omitempty"`
}

type AnimePeriod

type AnimePeriod struct {
	Season string `json:"Season"`
	Year   int    `json:"Year"`
}

type AnimeRelation

type AnimeRelation struct {
	Nature string `json:"Nature"`
	Nodes  []struct {
		ID     AnimeID `json:"ID"`
		Name   string  `json:"Name"`
		Format string  `json:"Format"`
		Type   string  `json:"Type"`
	} `json:"Nodes"`
}

type AnimeResource

type AnimeResource struct {
	Mal         int    `json:"Mal"`
	AniList     int    `json:"AniList"`
	AniDB       int    `json:"AniDB"`
	Kitsu       string `json:"Kitsu"`
	TVDBID      int64  `json:"TVDBID"`
	TMDBID      int64  `json:"TMDBID"`
	IMDBID      string `json:"IMDBID"`
	AniSearch   int64  `json:"AniSearch"`
	LiveChart   int64  `json:"LiveChart"`
	NotifyMoe   string `json:"NotifyMoe"`
	AnimePlanet string `json:"AnimePlanet"`
	WikiData    string `json:"WikiData"`
}

type AnimeSeason

type AnimeSeason struct {
	MetaData    []MetaData     `json:"MetaData"`
	PortraitIMG AnimeImage     `json:"PortraitIMG"`
	Number      int            `json:"Number"`
	TVDBID      int64          `json:"TVDBID"`
	TMDBID      int64          `json:"TMDBID"`
	StartAt     AnimeDate      `json:"StartAt"`
	EndAt       AnimeDate      `json:"EndAt"`
	Posters     []AnimeImage   `json:"Posters"`
	Trailers    []AnimeTrailer `json:"Trailers"`
}

type AnimeTag

type AnimeTag string

type AnimeThemeEntry

type AnimeThemeEntry struct {
	Episodes []int             `json:"Episodes"`
	Videos   []AnimeThemeVideo `json:"Videos"`
}

type AnimeThemeItem

type AnimeThemeItem struct {
	Song    string            `json:"Song"`
	Entries []AnimeThemeEntry `json:"Entries"`
}

type AnimeThemeVideo

type AnimeThemeVideo struct {
	Source     string `json:"Source"`
	Resolution int    `json:"Resolution"`
	Link       string `json:"Link"`
}

type AnimeThemes

type AnimeThemes struct {
	OP []AnimeThemeItem `json:"OP"`
	ED []AnimeThemeItem `json:"ED"`
}

type AnimeTime

type AnimeTime struct {
	Year  int   `json:"Year"`
	Month int   `json:"Month"`
	Day   int   `json:"Day"`
	Unix  int64 `json:"Unix"`
}

type AnimeTitles

type AnimeTitles struct {
	Original []string `json:"Original"`
	English  []string `json:"English"`
	Synonyms []string `json:"Synonyms"`
}

type AnimeTrailer

type AnimeTrailer struct {
	IsOfficial bool   `json:"IsOfficial"`
	HostName   string `json:"HostName"`
	HostKey    string `json:"HostKey"`
}

type AnimeVideo

type AnimeVideo struct {
	Source   string   `json:"Source"`
	Referer  string   `json:"Referer,omitempty"`
	Type     string   `json:"Type"`
	Quality  string   `json:"Quality"`
	Language Language `json:"Language"`
}

type AnimeVoiceActor

type AnimeVoiceActor struct {
	ID          AnimeID      `json:"ID"`
	Name        AnimeName    `json:"Name"`
	Language    Language     `json:"Language"`
	Images      []AnimeImage `json:"Images"`
	SocialMedia []AnimeLink  `json:"SocialMedia"`
	Age         int          `json:"Age"`
	Gender      string       `json:"Gender"`
	DateOfBirth AnimeDate    `json:"DateOfBirth"`
	DateOfDeath AnimeDate    `json:"DateOfDeath"`
	Home        string       `json:"Home"`
}

type Country

type Country struct {
	Name      string `json:"Name"`
	ShortName string `json:"ShortName"`
	ISO3166_1 string `json:"Iso3166_1"`
}

type FinalAnime

type FinalAnime struct {
	Type   string `json:"Type"`
	Titles struct {
		Original string   `json:"Original"`
		Synonyms []string `json:"Synonyms"`
	} `json:"Titles"`
	MetaData      []MetaData              `json:"MetaData"`
	PortraitIMG   AnimeImage              `json:"PortraitIMG"`
	LandscapeIMG  AnimeImage              `json:"LandscapeIMG"`
	ContentRating AnimeContentRating      `json:"ContentRating,omitempty"`
	Posters       []AnimeImage            `json:"Posters"`
	Backdrops     []AnimeImage            `json:"Backdrops"`
	Logos         []AnimeImage            `json:"Logos"`
	Banners       []AnimeImage            `json:"Banners"`
	Arts          []AnimeImage            `json:"Arts"`
	Period        AnimePeriod             `json:"Period"`
	StartAt       AnimeDate               `json:"StartAt"`
	EndAt         AnimeDate               `json:"EndAt"`
	Studios       []AnimeCompany          `json:"Studios"`
	Genres        []AnimeGenre            `json:"Genres"`
	Producers     []AnimeCompany          `json:"Producers"`
	Licensors     []AnimeCompany          `json:"Licensors"`
	Tags          []AnimeTag              `json:"Tags"`
	External      []AnimeLink             `json:"External"`
	Resources     FinalAnimeMovieResource `json:"Resources,omitempty"`
	Themes        AnimeThemes             `json:"Themes,omitempty"`
	Seasons       []FinalAnimeSeason      `json:"Seasons,omitempty"`
}

type FinalAnimeEpisode

type FinalAnimeEpisode struct {
	OriginalTitle string                `json:"OriginalTitle"`
	RomanjiTitle  string                `json:"RomanjiTitle"`
	Aired         bool                  `json:"Aired"`
	ReleaseTime   AnimeTime             `json:"ReleaseTime"`
	MetaData      []MetaData            `json:"MetaData"`
	Runtime       int                   `json:"Runtime"`
	Filler        bool                  `json:"Filler"`
	Special       bool                  `json:"Special"`
	Number        float32               `json:"Number"`
	ThumbnailIMG  AnimeImage            `json:"ThumbnailIMG"`
	Resources     AnimeEpisodeResources `json:"Resources"`
}

type FinalAnimeMovieResource

type FinalAnimeMovieResource struct {
	Mal         int    `json:"Mal"`
	AniList     int    `json:"AniList"`
	AniDB       int    `json:"AniDB"`
	Kitsu       string `json:"Kitsu"`
	TVDBID      int64  `json:"TVDBID,omitempty"`
	TMDBID      int64  `json:"TMDBID"`
	IMDBID      string `json:"IMDBID"`
	AniSearch   int64  `json:"AniSearch"`
	LiveChart   int64  `json:"LiveChart"`
	NotifyMoe   string `json:"NotifyMoe"`
	AnimePlanet string `json:"AnimePlanet"`
	WikiData    string `json:"WikiData"`
}

type FinalAnimeSeason

type FinalAnimeSeason struct {
	MetaData      []MetaData               `json:"MetaData"`
	Resources     FinalAnimeSeasonResource `json:"Resources"`
	PortraitIMG   AnimeImage               `json:"PortraitIMG"`
	Number        int                      `json:"Number"`
	ContentRating AnimeContentRating       `json:"ContentRating,omitempty"`
	Status        string                   `json:"Status"`
	Posters       []AnimeImage             `json:"Posters"`
	Trailers      []AnimeTrailer           `json:"Trailers"`
	Themes        AnimeThemes              `json:"Themes,omitempty"`
	Episodes      []FinalAnimeEpisode      `json:"Episodes"`
}

type FinalAnimeSeasonResource

type FinalAnimeSeasonResource struct {
	Mal         int    `json:"Mal"`
	AniList     int    `json:"AniList"`
	AniDB       int    `json:"AniDB"`
	Kitsu       string `json:"Kitsu"`
	TVDBID      int64  `json:"TVDBID"`
	TMDBID      int64  `json:"TMDBID"`
	AniSearch   int64  `json:"AniSearch"`
	LiveChart   int64  `json:"LiveChart"`
	NotifyMoe   string `json:"NotifyMoe"`
	AnimePlanet string `json:"AnimePlanet"`
}

type Language

type Language struct {
	Name     string `json:"name"`
	ISO639_1 string `json:"iso639_1"`
}

type MetaData

type MetaData struct {
	Language Language `json:"Language"`
	Title    string   `json:"Title"`
	OverView string   `json:"OverView"`
}

type Video

type Video struct {
	Link     string `json:"link"`
	Referer  string `json:"referer"`
	Type     string `json:"type"`
	Quality  string `json:"quality"`
	Language string `json:"language"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL