rest

package
v0.0.0-...-c8cc802 Latest Latest
Warning

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

Go to latest
Published: Oct 2, 2023 License: MIT Imports: 11 Imported by: 0

Documentation

Index

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"`
}

Jump to

Keyboard shortcuts

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