Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Adapter ¶
type Adapter struct {
// contains filtered or unexported fields
}
Adapter uses metaweather service for providing weather data.
func NewAdapter ¶
NewAdapter creates new adapter instance.
func (*Adapter) GetWeather ¶
func (a *Adapter) GetWeather(ctx context.Context, req bikerental.WeatherRequest) (*bikerental.Weather, error)
GetWeather fetches weather data for a location.
Click to show internal directories.
Click to hide internal directories.