model

package
v0.8.3 Latest Latest
Warning

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

Go to latest
Published: Jul 13, 2020 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Airing

type Airing struct {
	Start string `json:"start"`
	End   string `json:"end"`
	Day   string `json:"day"`
	Time  string `json:"time"`
}

Airing represents anime airing details.

type AlternativeTitle

type AlternativeTitle struct {
	English  string `json:"english"`
	Japanese string `json:"japanese"`
	Synonym  string `json:"synonym"`
}

AlternativeTitle represents anime & manga alternative titles.

type Anime

type Anime struct {
	ID                int                `json:"id"`
	Title             string             `json:"title"`
	AlternativeTitles AlternativeTitle   `json:"alternativeTitles"`
	Cover             string             `json:"cover"`
	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"`
	Airing            Airing             `json:"airing"`
	Duration          string             `json:"duration"`
	Premiered         string             `json:"premiered"`
	Source            string             `json:"source"`
	Rating            string             `json:"rating"`
	Producers         []IDName           `json:"producers"`
	Licensors         []IDName           `json:"licensors"`
	Studios           []IDName           `json:"studios"`
	Genres            []IDName           `json:"genres"`
	Related           map[string][]Media `json:"related"`
	Characters        []Role             `json:"character"`
	Songs             Song               `json:"songs"`
}

Anime represents anime model retrieved from db.

type Character

type Character struct {
	ID           int     `json:"id"`
	Name         string  `json:"name"`
	Nickname     string  `json:"nickname"`
	KanjiName    string  `json:"kanjiName"`
	Image        string  `json:"image"`
	Favorite     int     `json:"favorite"`
	About        string  `json:"about"`
	Animeography []Media `json:"animeography"`
	Mangaography []Media `json:"mangaography"`
	VoiceActors  []Role  `json:"voiceActors"`
}

Character represents character model retrieved from db.

type IDName

type IDName struct {
	ID   int    `json:"id"`
	Name string `json:"name"`
}

IDName represents common model contains ID and name.

type Manga

type Manga struct {
	ID                int                `json:"id"`
	Title             string             `json:"title"`
	AlternativeTitles AlternativeTitle   `json:"alternativeTitles"`
	Cover             string             `json:"cover"`
	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"`
	Publishing        Publishing         `json:"publishing"`
	Genres            []IDName           `json:"genres"`
	Authors           []Role             `json:"authors"`
	Serializations    []IDName           `json:"serializations"`
	Related           map[string][]Media `json:"related"`
	Characters        []Role             `json:"characters"`
}

Manga represents manga model retrieved from db.

type Media

type Media struct {
	ID    int    `json:"id"`
	Name  string `json:"name"`
	Image string `json:"image"`
	Type  string `json:"type"`
}

Media represents simple anime/manga model.

type People

type People struct {
	ID               int          `json:"id"`
	Name             string       `json:"name"`
	Image            string       `json:"image"`
	GivenName        string       `json:"givenName"`
	FamilyName       string       `json:"familyName"`
	AlternativeNames []string     `json:"alternativeNames"`
	Birthday         string       `json:"birthday"`
	Website          string       `json:"website"`
	Favorite         int          `json:"favorite"`
	More             string       `json:"more"`
	VoiceActors      []VoiceActor `json:"voiceActors"`
	Staff            []Role       `json:"staff"`
	PublishedManga   []Role       `json:"publishedManga"`
}

People represents people model retrieved from db.

type Publishing

type Publishing struct {
	Start string `json:"start"`
	End   string `json:"end"`
}

Publishing represents manga publishing dates.

type Role

type Role struct {
	ID          int    `json:"id"`
	Name        string `json:"name"`
	Image       string `json:"image"`
	Role        string `json:"role"`
	VoiceActors []Role `json:"voiceActors,omitempty"`
	Language    string `json:"language,omitempty"`
}

Role represents common model of character/people role.

type Score

type Score struct {
	Vote    int     `json:"vote"`
	Percent float64 `json:"percent"`
}

Score represents anime & manga stats for each score.

type Song

type Song struct {
	Opening []string `json:"opening"`
	Ending  []string `json:"ending"`
}

Song represents anime opening and ending songs.

type Stats

type Stats struct {
	Summary map[string]int `json:"summary"`
	Score   map[int]Score  `json:"score"`
}

Stats represents anime & manga stats data.

type VoiceActor

type VoiceActor struct {
	Anime     Media `json:"anime"`
	Character Role  `json:"character"`
}

VoiceActor represents voice actor model with their anime and character role.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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