Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func HandleWeatherMessage ¶
func InitWeatherLogger ¶
func InitWeatherLogger()
Types ¶
type Client ¶
func (*Client) CurrentWeather ¶
func (c *Client) CurrentWeather(city string) (*WeatherResponse, error)
func (*Client) ForecastWeather ¶
func (c *Client) ForecastWeather(city string, days int) (*WeatherResponse, error)
type CurrentData ¶
type ForecastDay ¶
type WeatherApi ¶
type WeatherApi interface { CurrentWeather(city string) (*WeatherResponse, error) ForecastWeather(city string, days int) (*WeatherResponse, error) }
type WeatherResponse ¶
type WeatherResponse struct { ResolvedAddress string `json:"resolvedAddress"` CurrentConditions CurrentData `json:"currentConditions"` Days []ForecastDay `json:"days"` }
Click to show internal directories.
Click to hide internal directories.