season

package
v0.2.2 Latest Latest
Warning

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

Go to latest
Published: Mar 17, 2020 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

season implements Jikan's api/season resources and endpoints

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AnimeElement

type AnimeElement struct {
	MalID       int64          `json:"mal_id"`
	URL         string         `json:"url"`
	Title       string         `json:"title"`
	ImageURL    string         `json:"image_url"`
	Synopsis    string         `json:"synopsis"`
	Type        anime.Type     `json:"type"`
	AiringStart string         `json:"airing_start"`
	Episodes    int64          `json:"episodes"`
	Members     int64          `json:"members"`
	Genres      []common.Genre `json:"genres"`
	Source      Source         `json:"source"`
	Producers   []common.Genre `json:"producers"`
	Score       float64        `json:"score"`
	Licensors   []string       `json:"licensors"`
	R18         bool           `json:"r18"`
	Kids        bool           `json:"kids"`
	Continuing  bool           `json:"continuing"`
}

func (AnimeElement) GetID

func (r AnimeElement) GetID() interface{}

func (AnimeElement) GetType

func (r AnimeElement) GetType() string

type Day

type Day string
const (
	Monday      Day = "monday"
	Tuesday     Day = "tuesday"
	Wednesday   Day = "wednesday"
	Thursday    Day = "thursday"
	Friday      Day = "friday"
	Saturday    Day = "saturday"
	Sunday      Day = "sunday"
	AllSchedule Day = ""
)

type S

type S string
const (
	Winter S = "winter"
	Summer S = "summer"
	Fall   S = "fall"
	Spring S = "spring"
)

type Schedule

type Schedule struct {
	RequestHash        string         `json:"request_hash"`
	RequestCached      bool           `json:"request_cached"`
	RequestCacheExpiry int64          `json:"request_cache_expiry"`
	Monday             []AnimeElement `json:"monday"`
	Tuesday            []AnimeElement `json:"tuesday"`
	Wednesday          []AnimeElement `json:"wednesday"`
	Thursday           []AnimeElement `json:"thursday"`
	Friday             []AnimeElement `json:"friday"`
	Saturday           []AnimeElement `json:"saturday"`
	Sunday             []AnimeElement `json:"sunday"`
	Other              []AnimeElement `json:"other"`
	Unknown            []AnimeElement `json:"unknown"`
}

func GetSchedule

func GetSchedule(day Day) (Schedule, error)

type Season

type Season struct {
	RequestHash        string         `json:"request_hash"`
	RequestCached      bool           `json:"request_cached"`
	RequestCacheExpiry int64          `json:"request_cache_expiry"`
	SeasonName         string         `json:"season_name"`
	SeasonYear         int64          `json:"season_year"`
	Anime              []AnimeElement `json:"anime"`
}

func GetSeason

func GetSeason(season S, year int) (Season, error)

func GetSeasonLater

func GetSeasonLater() (Season, error)

type Source

type Source string
const (
	CardGame      Source = "Card game"
	Empty         Source = "-"
	Game          Source = "Game"
	LightNovel    Source = "Light novel"
	Manga         Source = "Manga"
	Novel         Source = "Novel"
	Original      Source = "Original"
	Other         Source = "Other"
	PictureBook   Source = "Picture book"
	The4KomaManga Source = "4-koma manga"
	VisualNovel   Source = "Visual novel"
	WebManga      Source = "Web manga"
)

Jump to

Keyboard shortcuts

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