handlers

package
v0.0.0-...-4d7482c Latest Latest
Warning

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

Go to latest
Published: May 14, 2024 License: MIT Imports: 9 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
}

Handler representa um manipulador HTTP.

func NewHandler

func NewHandler(
	viaCepService service.ViaCepServiceInterface,
	weatherApiService service.WeatherApiServiceInterface,
) *Handler

NewHandler cria uma nova instância do manipulador.

func (*Handler) GetTemperatures

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

GetTemperatures manipula a solicitação para obter temperaturas com base no CEP fornecido.

Jump to

Keyboard shortcuts

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