Documentation ¶
Overview ¶
Package gomdb is a golang implementation of the OMDB API.
Index ¶
Constants ¶
View Source
const ( MovieSearch = "movie" SeriesSearch = "series" EpisodeSearch = "episode" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MovieResult ¶
type MovieResult struct { Title string Year string Rated string Released string Runtime string Genre string Director string Writer string Actors string Plot string Language string Country string Awards string Poster string Metascore string ImdbRating string ImdbVotes string ImdbID string Type string TomatoMeter string TomatoImage string TomatoRating string TomatoReviews string TomatoFresh string TomatoRotten string TomatoConsensus string TomatoUserMeter string TomatoUserRating string TomatoUserReviews string TomatoURL string DVD string BoxOffice string Production string Website string Response string Error string }
MovieResult is the result struct of an specific movie search
func (MovieResult) String ¶
func (mr MovieResult) String() string
Stringer Interface for MovieResult
type OmdbApi ¶
type OmdbApi struct {
// contains filtered or unexported fields
}
func (*OmdbApi) MovieByImdbID ¶
func (api *OmdbApi) MovieByImdbID(id string) (*MovieResult, error)
MovieByImdbID returns a MovieResult given a ImdbID ex:"tt2015381"
func (*OmdbApi) MovieByTitle ¶
func (api *OmdbApi) MovieByTitle(query *QueryData) (*MovieResult, error)
MovieByTitle returns a MovieResult given Title
type SearchResponse ¶
type SearchResponse struct { Search []SearchResult Response string Error string // contains filtered or unexported fields }
SearchResponse is the struct of the response in a search
type SearchResult ¶
SearchResult is the type for the search results
func (SearchResult) String ¶
func (sr SearchResult) String() string
Stringer Interface for SearchResult
Click to show internal directories.
Click to hide internal directories.