17 lines
467 B
Go
17 lines
467 B
Go
package domain
|
|
|
|
import "context"
|
|
|
|
// WeatherInfo represents weather information for a location
|
|
type WeatherInfo struct {
|
|
Location string `json:"location"`
|
|
Temperature float64 `json:"temperature"` // in Celsius
|
|
Description string `json:"description"`
|
|
Humidity int `json:"humidity"`
|
|
}
|
|
|
|
// WeatherClient defines the interface for weather operations
|
|
type WeatherClient interface {
|
|
GetWeather(ctx context.Context, location string) (*WeatherInfo, error)
|
|
}
|