Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AboutHandler ¶
func AboutHandler(w http.ResponseWriter, r *http.Request)
func HomeHandler ¶
func HomeHandler(w http.ResponseWriter, r *http.Request)
Types ¶
type Server ¶
type Server interface { Start() WeatherHandler(w http.ResponseWriter, r *http.Request) }
Server represents a weather server interface
func New ¶
func New(w weatherapi.WeatherApi) Server
type WeatherRequest ¶
WeatherRequest is the data object for SimpleWeather POST request
Click to show internal directories.
Click to hide internal directories.