Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
OneCall *onecall.Client
Geo *geo.Client
// contains filtered or unexported fields
}
func NewClient ¶
func NewClient(opts *ClientOptions) *Client
func (*Client) GetWeather ¶
func (c *Client) GetWeather(query string, opts *onecall.OneCallOptions) (*GeoDirectOneCallResponse, error)
GetWeather is an opinionated convenience function that first performs geocoding and then gets the One Call forecast.
func (*Client) WithOneCall ¶
func (c *Client) WithOneCall(opts *onecall.ClientOptions) *Client
type ClientOptions ¶
type GeoDirectOneCallResponse ¶
type GeoDirectOneCallResponse struct {
GeoDirect *geo.GeoData
OneCall *onecall.OneCallResponse
}
Click to show internal directories.
Click to hide internal directories.