handlers

package
v0.0.0-...-2b26f3a Latest Latest
Warning

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

Go to latest
Published: Mar 18, 2021 License: GPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DetailHandler

type DetailHandler interface {
	DetailPage(w http.ResponseWriter, r *http.Request)
}

func NewDetailHandler

func NewDetailHandler(render render.Render, pokemonLogic logics.PokemonLogic, errorHandler ErrorHandler) DetailHandler

type ErrorHandler

type ErrorHandler interface {
	ShowErrorPage(w http.ResponseWriter, r *http.Request, status int)
}

func NewErrorHandler

func NewErrorHandler(render render.Render) ErrorHandler

type HomeHandler

type HomeHandler interface {
	HomePage(w http.ResponseWriter, r *http.Request)
}

func NewHomeHandler

func NewHomeHandler(render render.Render, pokemonLogic logics.PokemonLogic, pagination pagination.Pagination, errorHandler ErrorHandler) HomeHandler

type SearchHandler

type SearchHandler interface {
	SearchPage(w http.ResponseWriter, r *http.Request)
}

func NewSearchHandler

func NewSearchHandler(render render.Render, pokemonLogic logics.PokemonLogic, pagination pagination.Pagination, errorHandler ErrorHandler) SearchHandler

Jump to

Keyboard shortcuts

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