Documentation ¶
Index ¶
- type API
- type Adapter
- func (a Adapter) HandleFunc(path string, f func(http.ResponseWriter, *http.Request)) *mux.Route
- func (a Adapter) ListenAndServe()
- func (a Adapter) MakeCreateMovie(createMovie usecase.CreateMovie, image usecase.GetImage) http.HandlerFunc
- func (a Adapter) MakeDeleteMovie(deleteMovie usecase.DeleteMovie) http.HandlerFunc
- func (a Adapter) MakeGetMovie(getMovie usecase.GetMovie) http.HandlerFunc
- func (a Adapter) MakeGetMovies(getMovies usecase.GetMovies) http.HandlerFunc
- func (a Adapter) MakeSearchMovie(searchMovie usecase.SearchMovie) http.HandlerFunc
- func (a Adapter) MakeSearchMovies(searchMovies usecase.SearchMovies) http.HandlerFunc
- func (a Adapter) NewAPIError(w http.ResponseWriter, status int, message string)
- func (a Adapter) NewAPISuccess(w http.ResponseWriter, status int, payload interface{})
- func (a Adapter) Shutdown()
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Adapter ¶
type Adapter struct {
// contains filtered or unexported fields
}
func NewAdapter ¶
func NewAdapter() Adapter
func (Adapter) HandleFunc ¶
func (Adapter) ListenAndServe ¶
func (a Adapter) ListenAndServe()
func (Adapter) MakeCreateMovie ¶
func (a Adapter) MakeCreateMovie(createMovie usecase.CreateMovie, image usecase.GetImage) http.HandlerFunc
func (Adapter) MakeDeleteMovie ¶
func (a Adapter) MakeDeleteMovie(deleteMovie usecase.DeleteMovie) http.HandlerFunc
func (Adapter) MakeGetMovie ¶
func (a Adapter) MakeGetMovie(getMovie usecase.GetMovie) http.HandlerFunc
func (Adapter) MakeGetMovies ¶
func (a Adapter) MakeGetMovies(getMovies usecase.GetMovies) http.HandlerFunc
func (Adapter) MakeSearchMovie ¶
func (a Adapter) MakeSearchMovie(searchMovie usecase.SearchMovie) http.HandlerFunc
func (Adapter) MakeSearchMovies ¶
func (a Adapter) MakeSearchMovies(searchMovies usecase.SearchMovies) http.HandlerFunc
func (Adapter) NewAPIError ¶
func (a Adapter) NewAPIError(w http.ResponseWriter, status int, message string)
func (Adapter) NewAPISuccess ¶
func (a Adapter) NewAPISuccess(w http.ResponseWriter, status int, payload interface{})
Click to show internal directories.
Click to hide internal directories.