people

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: 1 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 {
	ID    int    `json:"id"`
	Title string `json:"title"`
	Image string `json:"image"`
}

Anime represents simple anime model for voice actor.

type Character

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

Character represents simple character model for voice actor.

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 people feaatured.

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 people news.

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         time.Time    `json:"birthday"`
	Website          string       `json:"website"`
	Favorite         int          `json:"favorite"`
	More             string       `json:"more"`
	VoiceActors      []VoiceActor `json:"voiceActors"`
	Staff            []Staff      `json:"staff"`
	PublishedManga   []Staff      `json:"publishedManga"`
}

People represents the main model for MyAnimeList people information.

type Staff

type Staff struct {
	ID    int    `json:"id"`
	Title string `json:"title"`
	Image string `json:"image"`
	Role  string `json:"role"`
}

Staff represents simple staff model.

type VoiceActor

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

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

Jump to

Keyboard shortcuts

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