Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrDetailsNotFound = errors.New("media details not found")
)
View Source
var (
ErrRatingProviderNotFound = errors.New("no ratings provider parser found")
)
Functions ¶
This section is empty.
Types ¶
type Controller ¶
func NewController ¶
func NewController(cache cache.Cache, retrievers ...Retriever) *Controller
func (*Controller) DetailsByTitleBulk ¶
type OmdbClient ¶
type OmdbClient struct {
// contains filtered or unexported fields
}
func Omdb ¶
func Omdb(apiKey string) *OmdbClient
type OmdbMovie ¶
type OmdbMovie struct { Title string `json:"Title"` Year string `json:"Year"` Rated string `json:"Rated"` Released string `json:"Released"` Runtime string `json:"Runtime"` Genre string `json:"Genre"` Director string `json:"Director"` Writer string `json:"Writer"` Actors string `json:"Actors"` Plot string `json:"Plot"` Language string `json:"Language"` Country string `json:"Country"` Awards string `json:"Awards"` Poster string `json:"Poster"` Ratings []struct { Source string `json:"Source"` Value string `json:"Value"` } `json:"Ratings"` Metascore string `json:"Metascore"` ImdbRating string `json:"imdbRating"` ImdbVotes string `json:"imdbVotes"` ImdbID string `json:"imdbID"` Type string `json:"Type"` DVD string `json:"DVD"` BoxOffice string `json:"BoxOffice"` Production string `json:"Production"` Website string `json:"Website"` Response string `json:"Response"` }
Click to show internal directories.
Click to hide internal directories.