controller

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Jun 12, 2020 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type API

type API struct{}

type Adapter

type Adapter struct {
	// contains filtered or unexported fields
}

func NewAdapter

func NewAdapter() Adapter

func (Adapter) HandleFunc

func (a Adapter) HandleFunc(path string, f func(http.ResponseWriter, *http.Request)) *mux.Route

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{})

func (Adapter) Shutdown

func (a Adapter) Shutdown()

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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