Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetConditions ¶
func GetConditions(owm openweathermap.Interface) func(w http.ResponseWriter, req *http.Request)
func NotAllowed ¶
func NotAllowed() func(w http.ResponseWriter, req *http.Request)
Types ¶
type ErrorResponse ¶
type ErrorResponse struct {
Message string `json:"message"`
}
type GetConditionsResponse ¶
type GetConditionsResponse struct { Temperature float64 `json:"temperature"` Units string `json:"units"` Condition string `json:"condition"` FeelsLike string `json:"feelsLike"` }
TODO I'm definitely not in love with the field names and would want to sync with the team/PM to pick better names :)
Click to show internal directories.
Click to hide internal directories.