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
Click to show internal directories.
Click to hide internal directories.