handlers

package
v0.0.0-...-ec124a2 Latest Latest
Warning

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

Go to latest
Published: May 24, 2024 License: AGPL-3.0 Imports: 5 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 {
	// contains filtered or unexported fields
}

func NewHandler

func NewHandler(services *services.Services) *Handler

func (*Handler) GetPokemon

func (h *Handler) GetPokemon(w http.ResponseWriter, r *http.Request)

func (*Handler) GetPokemonQueue

func (h *Handler) GetPokemonQueue(w http.ResponseWriter, r *http.Request)

func (*Handler) HandleError

func (h *Handler) HandleError(err error, w http.ResponseWriter)

func (*Handler) HandleResponse

func (h *Handler) HandleResponse(obj any, w http.ResponseWriter)

func (*Handler) InitRoutes

func (h *Handler) InitRoutes() http.Handler

func (*Handler) QueueTrigger

func (h *Handler) QueueTrigger(w http.ResponseWriter, r *http.Request)

func (*Handler) SyncPokemon

func (h *Handler) SyncPokemon(w http.ResponseWriter, r *http.Request)

Jump to

Keyboard shortcuts

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