Files
s01e03/internal/domain/weather.go
2026-03-12 19:17:00 +01:00

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)
}