Back to

Package controllers

Latest Go to latest

The latest major version is .

Published: Apr 3, 2020 | License: MIT | Module:


type Handler

type Handler struct {
	GetMoviesUseCase    usescases.GetMoviesUseCase
	GetMovieByIDUseCase usescases.GetMovieByIDUseCase
	CreateMovieUseCase  usescases.CreateMoviePort

func (*Handler) Create

func (handler *Handler) Create(c *gin.Context)

Create method controller, get json type movie

func (*Handler) FindByID

func (handler *Handler) FindByID(c *gin.Context)

FindByID method, Find movies by id

func (*Handler) Get

func (handler *Handler) Get(c *gin.Context)

Get All method, Find movies

type RedirectMovieHandler

type RedirectMovieHandler interface {
	Create(c *gin.Context)
	Get(c *gin.Context)
	FindByID(c *gin.Context)

Package Files

Documentation was rendered with GOOS=linux and GOARCH=amd64.

Jump to identifier

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to identifier