Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct { Forecast *ForecastService // contains filtered or unexported fields }
Client .
type Current ¶
type Current struct { Datetime int `json:"dt"` Sunrise int `json:"sunrise"` Sunset int `json:"sunset"` Temperature float64 `json:"temp"` FeelsLike float64 `json:"feels_like"` Pressure float64 `json:"pressure"` Humidity float64 `json:"humidity"` DewPoint float64 `json:"dew_point"` UVI float64 `json:"uvi"` Clouds float64 `json:"clouds"` Visibility float64 `json:"visibility"` WindSpeed float64 `json:"wind_speed"` WindDeg float64 `json:"wind_deg"` WindGust float64 `json:"wind_gust"` Weather []*Weather `json:"weather"` }
type Daily ¶
type Daily struct { Datetime int `json:"dt"` Sunrise int `json:"sunrise"` Sunset int `json:"sunset"` Temperature Temperature `json:"temp"` FeelsLike FeelsLike `json:"feels_like"` Pressure float64 `json:"pressure"` Humidity float64 `json:"humidity"` DewPoint float64 `json:"dew_point"` WindSpeed float64 `json:"wind_speed"` WindDegree float64 `json:"wind_deg"` Weather []*Weather `json:"weather"` Clouds float64 `json:"clouds"` PrecipProbability float64 `json:"pop"` Rain float64 `json:"rain,omitempty"` UVI float64 `json:"uvi"` }
type Forecast ¶
type ForecastService ¶
type ForecastService service
ForecastService provides forecast
func (*ForecastService) Forecast ¶
func (s *ForecastService) Forecast(ctx context.Context, opts wx.ForecastOptions) (*Forecast, error)
Forecast returns a forecast
type Hourly ¶
type Hourly struct { Datetime int `json:"dt"` Temperature float64 `json:"temp"` FeelsLike float64 `json:"feels_like"` Pressure float64 `json:"pressure"` Humidity float64 `json:"humidity"` DewPoint float64 `json:"dew_point"` Clouds float64 `json:"clouds"` Visibility float64 `json:"visibility"` WindSpeed float64 `json:"wind_speed"` WindDegree float64 `json:"wind_deg"` Weather []*Weather `json:"weather"` PrecipProbability float64 `json:"pop"` Rain *Rain `json:"rain,omitempty"` }
type Option ¶
Option provides a configuration mechanism for a Client
func WithHTTPClient ¶
WithHTTPClient sets the underlying http client.
func WithHTTPTracing ¶
WithHTTPTracing enables tracing http calls.
func WithTokenCredentials ¶
WithTokenCredentials provides the tokens for an authenticated user.
func WithTransport ¶
func WithTransport(t http.RoundTripper) Option
WithTransport sets the underlying http client transport.
type Temperature ¶
Click to show internal directories.
Click to hide internal directories.