pipe

package
v0.0.0-...-f02f0c9 Latest Latest
Warning

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

Go to latest
Published: Feb 21, 2023 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 Cast

type Cast struct {
	ID             string              `json:"id"`
	Name           string              `json:"name"`
	Slug           string              `json:"slug"`
	Image          *CastImage          `json:"image"`
	Characters     []string            `json:"characters"`
	EpisodeCredits *CastEpisodeCredits `json:"episodeCredits"`
}

type CastEpisodeCredits

type CastEpisodeCredits struct {
	Total int64     `json:"total"`
	Years YearRange `json:"years"`
}

type CastImage

type CastImage struct {
	URL    string `json:"url"`
	Width  int64  `json:"width"`
	Height int64  `json:"height"`
}

type ExternalReviews

type ExternalReviews struct {
	Total int64 `json:"total"`
}

type FAQ

type FAQ struct {
	Total int64      `json:"total"` // total number of keywords that are related to this title
	Items []*FAQItem `json:"items"` // a short list of FAQs as preview
}

type FAQItem

type FAQItem struct {
	ID       string `json:"id"`
	Question string `json:"question"`
}

type FeaturedReviewItem

type FeaturedReviewItem struct {
	ID        string        `json:"id"`
	Author    *ReviewAuthor `json:"author"`
	Summary   string        `json:"summary"`
	Text      string        `json:"text"`
	Likes     int64         `json:"likes"`
	Dislikes  int64         `json:"dislikes"`
	CreatedAt string        `json:"createdAt"`
}

type Genre

type Genre struct {
	Name string `json:"name"`
	Slug string `json:"slug"` // can directly be used in advances search feature
}

type ImageItem

type ImageItem struct {
	ID      string `json:"id"`
	URL     string `json:"url"`
	Width   int64  `json:"width"`
	Height  int64  `json:"height"`
	Caption string `json:"caption"`
}

type Images

type Images struct {
	Total   int64         `json:"total"`
	Primary *PrimaryImage `json:"primary"`
	Items   []ImageItem   `json:"items"`
}

type IndexTransform

type IndexTransform struct {
	ID          string          `json:"id" extensions:"x-order=001"`
	Validate    *Validate       `json:"validate" extensions:"x-order=002"`
	Title       *Title          `json:"title" extensions:"x-order=003"`
	Genres      []*Genre        `json:"genres" extensions:"x-order=004"`
	Plot        string          `json:"plot" extensions:"x-order=005"`
	Popularity  *Popularity     `json:"popularity" extensions:"x-order=006"`
	Images      *Images         `json:"images" extensions:"x-order=007"`
	Videos      *Videos         `json:"videos" extensions:"x-order=008"`
	Cast        []*Cast         `json:"cast" extensions:"x-order=009"`
	Reviews     *Reviews        `json:"reviews" extensions:"x-order=010"`
	FAQ         *FAQ            `json:"faq" extensions:"x-order=011"`
	Trivia      *Trivia         `json:"trivia" extensions:"x-order=012"`
	Keywords    *Keywords       `json:"keywords" extensions:"x-order=013"`
	Series      *Series         `json:"series" extensions:"x-order=014"` // only when viewing an episode of a series
	Soundtracks []*Soundtrack   `json:"soundtracks" extensions:"x-order=015"`
	Related     []*RelatedTitle `json:"related" extensions:"x-order=016"` // list of related titles
}

type Keywords

type Keywords struct {
	Total int64    `json:"total"` // total number of keywords that are related to this title
	Items []string `json:"items"` // a short list of keywords as preview
}

type PlaybackItem

type PlaybackItem struct {
	Quality  string `json:"quality"`
	MIMEType string `json:"mimeType"`
	URL      string `json:"url"`
}

type Popularity

type Popularity struct {
	Rank       int64 `json:"rank"`
	Difference int64 `json:"difference"`
}

type PrimaryImage

type PrimaryImage struct {
	ID         string                   `json:"id"`
	URL        string                   `json:"url"`
	Width      int64                    `json:"width"`
	Height     int64                    `json:"height"`
	Caption    string                   `json:"caption"`
	Thumbnails []*PrimaryImageThumbnail `json:"thumbnails"`
}

type PrimaryImageThumbnail

type PrimaryImageThumbnail struct {
	URL   string `json:"url"`
	Width int64  `json:"width"`
}

type Rating

type Rating struct {
	Score       float64 `json:"score"`       // IMDb score from 0 to 10 (includes precision)
	Count       int64   `json:"count"`       // Voters count
	Certificate string  `json:"certificate"` // For example "TV-14"
}

type RelatedTitle

type RelatedTitle struct {
	ID              string              `json:"id"`
	Title           *RelatedTitleName   `json:"title"`
	Type            string              `json:"type"`
	CanHaveEpisodes bool                `json:"canHaveEpisodes"`
	Poster          *RelatedTitlePoster `json:"poster"`
	ReleaseYear     *YearRange          `json:"releaseYear"`
	Rating          *Rating             `json:"rating"`
	Duration        int64               `json:"duration"` // unit is seconds
	Genres          []Genre             `json:"genres"`
}

type RelatedTitleName

type RelatedTitleName struct {
	Text     string `json:"text"`
	Original string `json:"original"`
	Slug     string `json:"slug"`
}

type RelatedTitlePoster

type RelatedTitlePoster struct {
	ID     string `json:"id"`
	Width  int64  `json:"width"`
	Height int64  `json:"height"`
	URL    string `json:"url"`
}

type ReviewAuthor

type ReviewAuthor struct {
	ID       string `json:"id"`
	Nickname string `json:"nickname"`
	Rating   int64  `json:"rating"`
}

type Reviews

type Reviews struct {
	Featured []*FeaturedReviewItem `json:"featured"`
	Users    *UsersReviews         `json:"users"`
	External *ExternalReviews      `json:"external"`
}

type Series

type Series struct {
	ID          *SeriesID      `json:"id"`
	Title       *SeriesTitle   `json:"title"`
	Current     *SeriesCurrent `json:"current"`
	ReleaseYear *YearRange     `json:"releaseYear"`
}

type SeriesCurrent

type SeriesCurrent struct {
	Episode int64 `json:"episode"` // episode number (starts from 1)
	Season  int64 `json:"season"`  // season number (starts from 1)
}

type SeriesID

type SeriesID struct {
	Parent          string `json:"parent"`
	EpisodeNext     string `json:"episodeNext"`
	EpisodePrevious string `json:"episodePrevious"`
}

type SeriesTitle

type SeriesTitle struct {
	Text     string `json:"text"`
	Original string `json:"original"`
	Slug     string `json:"slug"`
}

type Soundtrack

type Soundtrack struct {
	Title    string               `json:"title"`
	Comments []*SoundtrackComment `json:"comments"`
}

type SoundtrackComment

type SoundtrackComment struct {
	HTML string `json:"html"`
	Text string `json:"text"`
}

type Thumbnail

type Thumbnail struct {
	URL    string `json:"url"`
	Width  int64  `json:"width"`
	Height int64  `json:"height"`
}

type Title

type Title struct {
	Text     string   `json:"text"`
	Original string   `json:"original"`
	Slug     string   `json:"slug"`
	AKA      []string `json:"aka"`
}

type Trivia

type Trivia struct {
	Total int64    `json:"total"`
	Items []string `json:"items"`
}

type UsersReviews

type UsersReviews struct {
	Total int64 `json:"total"`
}

type Validate

type Validate struct {
	Type            string `json:"type"`
	IsMovie         bool   `json:"isMovie"`
	IsSeries        bool   `json:"isSeries"`
	IsEpisode       bool   `json:"isEpisode"`
	IsAdult         bool   `json:"isAdult"`
	CanHaveEpisodes bool   `json:"canHaveEpisodes"`
}

type VideoItem

type VideoItem struct {
	ID        string            `json:"id"`
	Type      *VideoTypeWrapper `json:"type"`
	Title     string            `json:"title"`
	Duration  int64             `json:"duration"`
	Thumbnail *Thumbnail        `json:"thumbnail"`
}

type VideoItemPrimary

type VideoItemPrimary struct {
	ID          string            `json:"id"`
	Type        *VideoTypeWrapper `json:"type"`
	Title       string            `json:"title"`
	Description string            `json:"description"`
	Duration    int64             `json:"duration"`
	Thumbnail   *Thumbnail        `json:"thumbnail"`
	Playback    []*PlaybackItem   `json:"playback"`
	IsMature    bool              `json:"isMature"`
}

type VideoTypeWrapper

type VideoTypeWrapper struct {
	Text string `json:"text"`
	Slug string `json:"slug"`
}

type Videos

type Videos struct {
	Total     int64               `json:"total"`
	Primaries []*VideoItemPrimary `json:"primaries"`
	Items     []*VideoItem        `json:"items"`
}

type YearRange

type YearRange struct {
	From int64 `json:"from"`
	To   int64 `json:"to"`
}

Jump to

Keyboard shortcuts

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