Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ShowMovieResults ¶
func ShowMovieResults(movies MovieResults)
func ShowTvShowResults ¶
func ShowTvShowResults(tvShows TvShowResults)
Types ¶
type Episode ¶
type Episode struct {
ID string `json:"id"`
AirDate string `json:"air_date"`
EpisodeNumber int `json:"episode_number"`
SeasonNumber int `json:"season_number"`
Name string `json:"name"`
Overview string `json:"overview"`
StillURL string `json:"still_url"`
VoteAverage float32 `json:"vote_average"`
VoteCount int64 `json:"vote_count"`
}
type MovieClient ¶
type MovieDetails ¶
type MovieResults ¶
type TvShowClient ¶
type TvShowClient interface {
SearchTvShow(ctx context.Context, query string, year int, page int) (TvShowResults, error)
GetTvShow(ctx context.Context, id string) (TvShow, error)
GetTvShowDetails(ctx context.Context, id string) (TvShowDetails, error)
GetEpisode(ctx context.Context, id string, seasonNumber int, episodeNumber int) (Episode, error)
}
type TvShowDetails ¶
type TvShowDetails struct {
TvShow
SeasonCount int `json:"season_count"`
EpisodeCount int `json:"episode_count"`
LastEpisode Episode `json:"last_episode"`
NextEpisode Episode `json:"next_episode"`
Status Status `json:"status"`
Seasons []Season `json:"seasons"`
Genres []Genre `json:"genres"`
Cast []Person `json:"cast"`
Studio []Studio `json:"studio"`
}
type TvShowResults ¶
Click to show internal directories.
Click to hide internal directories.