Documentation
¶
Index ¶
Constants ¶
View Source
const (
API_KEY = "38209d39b738776e07346a91d16a25e4"
)
Variables ¶
This section is empty.
Functions ¶
func GetRandomComedy ¶
Types ¶
type Collection ¶
type Collection struct {
Id int
Name string
Parts []struct {
Id int
Release_date_str string `json:"release_date"`
Release_date time.Time
Poster_path string `json:"poster_path"`
Title string
}
}
func GetCollection ¶
func GetCollection(id string, language string, etag string) (*Collection, error)
type Credits ¶
type Credits struct {
Cast []struct {
Id int
Media_type string `json:"media_type"`
Poster_path string `json:"poster_path"`
Character string
Title string
Name string
First_air_date_str string `json:"first_air_date"`
Release_date_str string `json:"release_date"`
Release_date time.Time
}
Crew []struct {
Id int
Media_type string `json:"media_type"`
Poster_path string `json:"poster_path"`
Job string
Title string
Name string
First_air_date_str string `json:"first_air_date"`
Release_date_str string `json:"release_date"`
Release_date time.Time
}
}
type Episode ¶
type Episode struct {
Air_date_str string `json:"air_date"`
Air_date time.Time
Episode_number int `json:"episode_number"`
Name string
Overview string
Season_number int `json:"season_number"`
Still_path string `json:"still_path"`
Vote_count int `json:"vote_count"`
Vote_average float32 `json:"vote_average"`
Episode_code string
}
type Film ¶
type Film struct {
Etag string
Backdrop_path string `json:"backdrop_path"`
Collection Collection `json:"belongs_to_collection"`
Genres []struct {
Name string
}
Original_title string `json:"original_title"`
Overview string
Poster_path string `json:"poster_path"`
Release_date_str string `json:"release_date"`
Release_date time.Time
Runtime int
Status string
Tagline string
Title string
Vote_count int `json:"vote_count"`
Vote_average float32 `json:"vote_average"`
Credits struct {
Cast []struct {
Character string
Id int
Name string
Profile_path string `json:"profile_path"`
}
Crew []struct {
Id int
Job string
Name string
Profile_path string `json:"profile_path"`
}
}
}
type Person ¶
type Person struct {
Etag string
Birthday_str string `json:"birthday"`
Birthday time.Time `json:"-"`
Deathday_str string `json:"deathday"`
Deathday time.Time `json:"-"`
Name string
Biography string
Place_of_birth string `json:"place_of_birth"`
Profile_path string `json:"profile_path"`
Credits Credits `json:"combined_credits"`
}
type SearchResults ¶
type SearchResults struct {
Query string
Page int
Total_pages int `json:"total_pages"`
Results []struct {
Id int
Media_type string `json:"media_type"`
Name string
Title string
First_air_date_str string `json:"first_air_date"`
Release_date_str string `json:"release_date"`
Poster_path string `json:"poster_path"`
Profile_path string `json:"profile_path"`
Release_date time.Time
}
}
func Search ¶
func Search(query, language, page string) (*SearchResults, error)
func (SearchResults) NextPage ¶
func (r SearchResults) NextPage() int
func (SearchResults) PrevPage ¶
func (r SearchResults) PrevPage() int
type Serie ¶
type Serie struct {
Id string `json:"-"`
Etag string
Backdrop_path string `json:"backdrop_path"`
Episode_run_time []int `json:"episode_run_time"`
First_air_date_str string `json:"first_air_date"`
First_air_date time.Time
Genres []struct {
Name string
}
Last_air_date_str string `json:"last_air_date"`
Last_air_date time.Time
Last_episode_to_air Episode `json:"last_episode_to_air"`
Name string
Number_of_episodes int `json:"number_of_episodes"`
Original_name string `json:"original_name"`
Overview string
Poster_path string `json:"poster_path"`
Seasons []Season
Status string
Type string
Vote_count int `json:"vote_count"`
Vote_average float32 `json:"vote_average"`
Credits struct {
Cast []struct {
Character string
Id int
Name string
Profile_path string `json:"profile_path"`
}
Crew []struct {
Id int
Job string
Name string
Profile_path string `json:"profile_path"`
}
}
}
type TmdbRequest ¶
type TmdbRequest struct {
// contains filtered or unexported fields
}
Click to show internal directories.
Click to hide internal directories.