Documentation
¶
Index ¶
- Constants
- type Client
- func (c *Client) GetMovieById(imdbId string, params map[string]string) (*Result, error)
- func (c *Client) GetMovieByTitle(title string, params map[string]string) (*Result, error)
- func (c *Client) GetSeriesById(imdbId string, params map[string]string) (*Result, error)
- func (c *Client) GetSeriesByTitle(title string, params map[string]string) (*Result, error)
- func (c *Client) SearchMovieByTitle(title string, params map[string]string) (*SearchResponse, error)
- func (c *Client) SearchSeriesByTitle(title string, params map[string]string) (*SearchResponse, error)
- type Rating
- type Result
- type SearchResponse
- type SearchResult
Constants ¶
View Source
const ( OMDB_URL = "http://www.omdbapi.com/" OMDB_IMDB_SOURCE = "Internet Movie Database" OMDB_METACRITIC_SOURCE = "Metacritic" OMDB_ROTTEN_TOMATOES_SOURCE = "Rotten Tomatoes" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func (*Client) GetMovieById ¶
func (*Client) GetMovieByTitle ¶
func (*Client) GetSeriesById ¶
func (*Client) GetSeriesByTitle ¶
func (*Client) SearchMovieByTitle ¶
func (*Client) SearchSeriesByTitle ¶
type Result ¶
type Result struct {
Title string
Year string
Rated string
Released string
Runtime string
Genre string
Language string
Director string
Writer string
Actors string
Plot string
Country string
Awards string
Poster string
Ratings []Rating
Metascore string
ImdbRating string
ImdbVotes string
ImdbID string
Type string
BoxOffice string
Production string
Website string
Response string
Error string
}
type SearchResponse ¶
type SearchResponse struct {
Search []SearchResult
Response string
Error string
TotalResults string
}
Click to show internal directories.
Click to hide internal directories.