service

package
v0.0.0-...-8fe99ee Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 26, 2022 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewSearchMovieSearchService

func NewSearchMovieSearchService(searchMovieRepository repository.SearchMovieRepository) *searchMovieService

func NewTmdbService

func NewTmdbService(tmdbRepository repository.TmdbRepository) *tmdbService

Types

type SearchMovieService

type SearchMovieService interface {
	CreateOrUpdateSearchMovie(newSearchMovie model.CreateSearchMovieRequest) error
	GetPopularSearchMovies() ([]model.SearchMovie, error)
}

type TmdbService

type TmdbService interface {
	GetPopularMovieFromTmdb(page int) ([]model.PopularTmdbResponse, error)
	GetMovieDetailFromTmdb(movieId int) (model.TmdbMovieDetailResponse, error)
	GetPopularSeriesFromTmdb(page int) ([]model.PopularTmdbResponse, error)
	GetSerieDetailFromTmdb(movieId int) (model.TmdbSerieDetailResponse, error)
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL