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