handler

package
v0.0.0-...-7bb11d0 Latest Latest
Warning

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

Go to latest
Published: Jun 24, 2023 License: Unlicense Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type WeatherHandler

type WeatherHandler struct {
	// contains filtered or unexported fields
}

func NewWeatherHandler

func NewWeatherHandler(weatherService service.WeatherService, env *bootstrap.Env) *WeatherHandler

func (*WeatherHandler) Weather

func (h *WeatherHandler) Weather(c echo.Context) error

Weather godoc @Summary Show weather info @Description Get weather infos by given city name in query @Tags weather @Accept json @Produce json @Param city query string true "Weather search by city name" Format(city) @Success 200 {object} types.StoreData @Failure 400 {object} utils.HTTPError @Failure 500 {object} utils.HTTPError @Router /weather [get]

Jump to

Keyboard shortcuts

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