initial commit
This commit is contained in:
16
internal/domain/weather.go
Normal file
16
internal/domain/weather.go
Normal file
@@ -0,0 +1,16 @@
|
||||
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)
|
||||
}
|
||||
Reference in New Issue
Block a user