Documentation ¶
Index ¶
- type MovieClient
- func (mc *MovieClient) GetHTMLDoc(url string) (*goquery.Document, error)
- func (mc *MovieClient) GetMovieDescription(document *goquery.Document) (string, error)
- func (mc *MovieClient) GetMovieInfo(inputName string) (MovieInfo, error)
- func (mc *MovieClient) GetMovieName(document *goquery.Document) (string, error)
- func (mc *MovieClient) GetMoviePoster(document *goquery.Document) (string, error)
- func (mc *MovieClient) GetMovieRating(document *goquery.Document) (string, error)
- func (mc *MovieClient) SearchTitleURL(inputName string) (string, error)
- type MovieInfo
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MovieClient ¶
MovieClient represent http client that access imdb site
func GetNewClient ¶
func GetNewClient() *MovieClient
GetNewClient creates new instance of MovieClient
func (*MovieClient) GetHTMLDoc ¶
func (mc *MovieClient) GetHTMLDoc(url string) (*goquery.Document, error)
GetHTMLDoc returns html document
func (*MovieClient) GetMovieDescription ¶
func (mc *MovieClient) GetMovieDescription(document *goquery.Document) (string, error)
GetMovieDescription fetchs movie summary
func (*MovieClient) GetMovieInfo ¶
func (mc *MovieClient) GetMovieInfo(inputName string) (MovieInfo, error)
GetMovieInfo fetches information about a movie
func (*MovieClient) GetMovieName ¶
func (mc *MovieClient) GetMovieName(document *goquery.Document) (string, error)
GetMovieName fetchs movie name
func (*MovieClient) GetMoviePoster ¶
func (mc *MovieClient) GetMoviePoster(document *goquery.Document) (string, error)
GetMoviePoster fetchs movie name
func (*MovieClient) GetMovieRating ¶
func (mc *MovieClient) GetMovieRating(document *goquery.Document) (string, error)
GetMovieRating fetchs movie rating
func (*MovieClient) SearchTitleURL ¶
func (mc *MovieClient) SearchTitleURL(inputName string) (string, error)
SearchTitleURL returns result url after searching
Click to show internal directories.
Click to hide internal directories.