manga

package
v0.17.0 Latest Latest
Warning

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

Go to latest
Published: Oct 22, 2020 License: MIT Imports: 2 Imported by: 0

Documentation

Index

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 manga.

type Character

type Character struct {
	ID    int    `json:"id"`
	Name  string `json:"name"`
	Image string `json:"image"`
	Role  string `json:"role"`
}

Character represents the main model for MyAnimeList manga character.

type Club added in v0.5.0

type Club struct {
	ID     int    `json:"id"`
	Name   string `json:"name"`
	Member int    `json:"member"`
}

Club represents the main model for MyAnimeList manga clubs.

type Featured struct {
	ID            int      `json:"id"`
	Title         string   `json:"title"`
	Image         string   `json:"image"`
	Summary       string   `json:"summary"`
	Username      string   `json:"username"`
	View          int      `json:"view"`
	IsSpoiler     bool     `json:"is_spoiler"`
	IsAdvertorial bool     `json:"is_advertorial"`
	Tags          []string `json:"tags"`
}

Featured represents the main model for MyAnimeList manga feaatured.

type Manga

type Manga struct {
	ID                int                   `json:"id"`
	Cover             string                `json:"cover"`
	Title             string                `json:"title"`
	AlternativeTitles AlternativeTitle      `json:"alternativeTitles"`
	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"`
	StartDate         StartEndDate          `json:"startDate"`
	Genres            []common.IDName       `json:"genres"`
	Authors           []common.IDName       `json:"authors"`
	Serializations    []common.IDName       `json:"serializations"`
	Related           map[string][]Related  `json:"related"`
	Characters        []Character           `json:"characters"`
	Reviews           []Review              `json:"reviews"`
	News              []News                `json:"news"`
	Featured          []Featured            `json:"featured"`
	Recommendations   []MangaRecommendation `json:"recommendations"`
}

Manga represent the main model for MyAnimeList manga information.

type MangaRecommendation

type MangaRecommendation struct {
	ID    int    `json:"id"`
	Title string `json:"title"`
	Image string `json:"image"`
	Count int    `json:"count"`
}

MangaRecommendation represents simple manga recommendation.

type News added in v0.4.0

type News struct {
	ID       int       `json:"id"`
	Title    string    `json:"title"`
	Image    string    `json:"image"`
	Content  string    `json:"content"`
	Date     time.Time `json:"date"`
	Username string    `json:"username"`
	ForumID  int       `json:"forum_id"`
	Comment  int       `json:"comment"`
}

News represents the main model for MyAnimeList manga news.

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 manga recommendation.

type Related struct {
	ID    int    `json:"id"`
	Title string `json:"title"`
	Type  string `json:"type"`
}

Related represents related anime & manga model.

type Review

type Review struct {
	ID       int            `json:"id"`
	Username string         `json:"username"`
	Image    string         `json:"image"`
	Helpful  int            `json:"helpful"`
	Date     time.Time      `json:"date"`
	Chapter  string         `json:"chapter"`
	Score    map[string]int `json:"score"`
	Review   string         `json:"review"`
}

Review represents the main model for MyAnimeList manga 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 StartEndDate

type StartEndDate struct {
	Start time.Time `json:"start"`
	End   time.Time `json:"end"`
}

StartEndDate represents manga start and end of publishing 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 manga stats information.

type UserRec

type UserRec struct {
	Username string `json:"username"`
	Content  string `json:"content"`
}

UserRec represents user recommendation simple model.

type UserStats

type UserStats struct {
	Username string    `json:"username"`
	Image    string    `json:"image"`
	Score    int       `json:"score"`
	Status   string    `json:"status"`
	Volume   string    `json:"volume"`
	Chapter  string    `json:"chapter"`
	Date     time.Time `json:"date"`
}

UserStats represents simple user's stats model.

Jump to

Keyboard shortcuts

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