Documentation ¶
Index ¶
- type Engine
- func (e *Engine) AutoMigrate(v bool) error
- func (e *Engine) Fetch(url string, provider mt.Provider) (*http.Response, error)
- func (e *Engine) GetActorInfoByProviderID(name, id string, lazy bool) (*model.ActorInfo, error)
- func (e *Engine) GetActorInfoByURL(rawURL string, lazy bool) (*model.ActorInfo, error)
- func (e *Engine) GetActorPrimaryImage(name, id string) (image.Image, error)
- func (e *Engine) GetActorProviderByName(name string) (mt.ActorProvider, error)
- func (e *Engine) GetActorProviderByURL(rawURL string) (mt.ActorProvider, error)
- func (e *Engine) GetActorProviders() map[string]mt.ActorProvider
- func (e *Engine) GetImageByURL(provider mt.Provider, url string, ratio, pos float64, auto bool) (img image.Image, err error)
- func (e *Engine) GetMovieBackdropImage(name, id string) (image.Image, error)
- func (e *Engine) GetMovieInfoByProviderID(name, id string, lazy bool) (*model.MovieInfo, error)
- func (e *Engine) GetMovieInfoByURL(rawURL string, lazy bool) (*model.MovieInfo, error)
- func (e *Engine) GetMoviePrimaryImage(name, id string, ratio, pos float64) (image.Image, error)
- func (e *Engine) GetMovieProviderByName(name string) (mt.MovieProvider, error)
- func (e *Engine) GetMovieProviderByURL(rawURL string) (mt.MovieProvider, error)
- func (e *Engine) GetMovieProviders() map[string]mt.MovieProvider
- func (e *Engine) GetMovieReviewsByProviderID(name, id string) ([]*model.MovieReviewInfo, error)
- func (e *Engine) GetMovieReviewsByProviderURL(name, rawURL string) ([]*model.MovieReviewInfo, error)
- func (e *Engine) GetMovieThumbImage(name, id string) (image.Image, error)
- func (e *Engine) IsActorProvider(name string) (ok bool)
- func (e *Engine) IsMovieProvider(name string) (ok bool)
- func (e *Engine) MustGetActorProviderByName(name string) mt.ActorProvider
- func (e *Engine) MustGetMovieProviderByName(name string) mt.MovieProvider
- func (e *Engine) SearchActor(keyword, name string, fallback bool) ([]*model.ActorSearchResult, error)
- func (e *Engine) SearchActorAll(keyword string, fallback bool) (results []*model.ActorSearchResult, err error)
- func (e *Engine) SearchMovie(keyword, name string, fallback bool) ([]*model.MovieSearchResult, error)
- func (e *Engine) SearchMovieAll(keyword string, fallback bool) (results []*model.MovieSearchResult, err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Engine ¶
type Engine struct {
// contains filtered or unexported fields
}
func (*Engine) AutoMigrate ¶
func (*Engine) Fetch ¶
Fetch fetches content from url. If provider is nil, the default fetcher will be used.
func (*Engine) GetActorInfoByProviderID ¶
func (*Engine) GetActorInfoByURL ¶
func (*Engine) GetActorPrimaryImage ¶
func (*Engine) GetActorProviderByName ¶
func (e *Engine) GetActorProviderByName(name string) (mt.ActorProvider, error)
func (*Engine) GetActorProviderByURL ¶
func (e *Engine) GetActorProviderByURL(rawURL string) (mt.ActorProvider, error)
func (*Engine) GetActorProviders ¶
func (e *Engine) GetActorProviders() map[string]mt.ActorProvider
func (*Engine) GetImageByURL ¶
func (*Engine) GetMovieBackdropImage ¶
func (*Engine) GetMovieInfoByProviderID ¶
func (*Engine) GetMovieInfoByURL ¶
func (*Engine) GetMoviePrimaryImage ¶
func (*Engine) GetMovieProviderByName ¶
func (e *Engine) GetMovieProviderByName(name string) (mt.MovieProvider, error)
func (*Engine) GetMovieProviderByURL ¶
func (e *Engine) GetMovieProviderByURL(rawURL string) (mt.MovieProvider, error)
func (*Engine) GetMovieProviders ¶
func (e *Engine) GetMovieProviders() map[string]mt.MovieProvider
func (*Engine) GetMovieReviewsByProviderID ¶ added in v1.2.0
func (e *Engine) GetMovieReviewsByProviderID(name, id string) ([]*model.MovieReviewInfo, error)
func (*Engine) GetMovieReviewsByProviderURL ¶ added in v1.2.0
func (e *Engine) GetMovieReviewsByProviderURL(name, rawURL string) ([]*model.MovieReviewInfo, error)
func (*Engine) GetMovieThumbImage ¶
func (*Engine) IsActorProvider ¶
func (*Engine) IsMovieProvider ¶
func (*Engine) MustGetActorProviderByName ¶
func (e *Engine) MustGetActorProviderByName(name string) mt.ActorProvider
func (*Engine) MustGetMovieProviderByName ¶
func (e *Engine) MustGetMovieProviderByName(name string) mt.MovieProvider
func (*Engine) SearchActor ¶
func (*Engine) SearchActorAll ¶
func (*Engine) SearchMovie ¶
func (*Engine) SearchMovieAll ¶
func (e *Engine) SearchMovieAll(keyword string, fallback bool) (results []*model.MovieSearchResult, err error)
SearchMovieAll searches the keyword from all providers.
Click to show internal directories.
Click to hide internal directories.