controllers

package
v0.0.0-...-c77689c Latest Latest
Warning

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

Go to latest
Published: Apr 3, 2020 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

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

Jump to

Keyboard shortcuts

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