Documentation ¶
Index ¶
Constants ¶
View Source
const (
UrlApi = "https://cdn-secure.buienalarm.nl/api/3.4/forecast.php?lat={lat}&lon={lon}®ion={region}&unit=mm/u"
)
Variables ¶
This section is empty.
Functions ¶
func Fetch ¶
func Fetch(coord cfac.Coordinate, c *colly.Collector, cb Callback, ecb cfac.ErrorCallback)
Types ¶
type Forecast ¶
type Forecast struct { Success bool `json:"success"` Start int `json:"start"` StartHuman string `json:"start_human"` Temp int `json:"temp"` Delta int `json:"delta"` Precip []int `json:"precip"` Levels Level `json:"levels"` Grid Grid `json:"grid"` Source string `json:"source"` Bounds Bounds `json:"bounds"` }
type ResponseForecast ¶
type ResponseForecast Forecast
Click to show internal directories.
Click to hide internal directories.