Documentation ¶
Index ¶
- type Application
- func (app *Application) CreateMovieHandler(w http.ResponseWriter, r *http.Request)
- func (app *Application) DeleteMovieHandler(w http.ResponseWriter, r *http.Request)
- func (app *Application) HealthcheckHandler(w http.ResponseWriter, r *http.Request)
- func (app *Application) Routes() http.Handler
- func (app *Application) ServerRun()
- func (app *Application) ShowMovieHandler(w http.ResponseWriter, r *http.Request)
- func (app *Application) UpdateMovieHandler(w http.ResponseWriter, r *http.Request)
- type PatchRequest
- type ProduceRequest
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Application ¶
type Application struct { Config config.AppConfig Logger zerolog.Logger Middleware *middleware.MiddleWare Status int Err error Storage *storage.Storage }
func (*Application) CreateMovieHandler ¶
func (app *Application) CreateMovieHandler(w http.ResponseWriter, r *http.Request)
func (*Application) DeleteMovieHandler ¶
func (app *Application) DeleteMovieHandler(w http.ResponseWriter, r *http.Request)
func (*Application) HealthcheckHandler ¶
func (app *Application) HealthcheckHandler(w http.ResponseWriter, r *http.Request)
func (*Application) Routes ¶
func (app *Application) Routes() http.Handler
func (*Application) ServerRun ¶
func (app *Application) ServerRun()
func (*Application) ShowMovieHandler ¶
func (app *Application) ShowMovieHandler(w http.ResponseWriter, r *http.Request)
func (*Application) UpdateMovieHandler ¶
func (app *Application) UpdateMovieHandler(w http.ResponseWriter, r *http.Request)
type PatchRequest ¶
type PatchRequest struct { Title *string `json:"title"` Year *int32 `json:"year"` Runtime *middleware.Runtime `json:"runtime"` Genres []string `json:"genres"` }
type ProduceRequest ¶
type ProduceRequest struct { Title string `json:"title"` Year int32 `json:"year"` Runtime middleware.Runtime `json:"runtime"` Genres []string `json:"genres"` }
Click to show internal directories.
Click to hide internal directories.