Documentation ¶
Index ¶
- type Handler
- func (h *Handler) GetPokemon(w http.ResponseWriter, r *http.Request)
- func (h *Handler) GetPokemonQueue(w http.ResponseWriter, r *http.Request)
- func (h *Handler) HandleError(err error, w http.ResponseWriter)
- func (h *Handler) HandleResponse(obj any, w http.ResponseWriter)
- func (h *Handler) InitRoutes() http.Handler
- func (h *Handler) QueueTrigger(w http.ResponseWriter, r *http.Request)
- func (h *Handler) SyncPokemon(w http.ResponseWriter, r *http.Request)
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 (*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 (*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)
Click to show internal directories.
Click to hide internal directories.