Versions in this module Expand all Collapse all v1 v1.3.2 Aug 18, 2023 Changes in this version + const Arabic + const Bengali + const CNAPIAddress + const Czech + const Dutch + const EasternPacific + const English + const Estonian + const Filipino + const Finnish + const French + const German + const Greek + const Hebrew + const Hindi + const Icelandic + const Indonesian + const Italian + const Japanese + const Korean + const Latin + const Malay + const NorthAtlantic + const NorthIndian + const NorthWestPacific + const Norwegian + const Polish + const Portuguese + const Russian + const SimplifiedChinese + const SouthIndian + const SouthWesternPacific + const Spanish + const Swedish + const Thai + const TraditionalChinese + const Turkish + const Vietnamese + func GetSignature(publicID, key string, param map[string]string) (paramstr, signature string) + type Credential struct + IsBusiness bool + Key string + PublicID string + func NewCredential(publicID, key string, isBusiness bool) (credential *Credential) + type HeWeatherAPI interface + GetFullURL func(credential *Credential) (url string) + Run func(credential *Credential) (result string, err error) + SetAPIOptionParam func(config map[string]string) + SetCustomAPIAddress func(address string) + SetTimeout func(timeout time.Duration) + func NewAirQualityClient(location, duration string) (client HeWeatherAPI, err error) + func NewGeoCityClient(location string) (client HeWeatherAPI) + func NewGeoPOIClient(location string, poiType string) (client HeWeatherAPI) + func NewGeoPOIRangeClient(location string, poiType string) (client HeWeatherAPI) + func NewGeoTopCityClient() (client HeWeatherAPI) + func NewGridRealTimeWeatherClient(location string) (client HeWeatherAPI) + func NewGridWeatherForecastClient(location string, duration string) (client HeWeatherAPI, err error) + func NewHistoricalClient(location, date, historicalType string) (client HeWeatherAPI, err error) + func NewLiveIndexClient(location, indexType, duration string) (client HeWeatherAPI, err error) + func NewMinutelyClient(location string) (client HeWeatherAPI) + func NewMoonClient(location, date string) (client HeWeatherAPI) + func NewOceanCurrentsClient(location, date string) (client HeWeatherAPI) + func NewOceanTideClient(location, date string) (client HeWeatherAPI) + func NewRealTimeWeatherClient(location string) (client HeWeatherAPI) + func NewSolarElevationAngleClient(location, date, timeStr, tz, alt string) (client HeWeatherAPI) + func NewSolarRadiationClient(location, duration string) (client HeWeatherAPI) + func NewStormForecastClient(stormID string) (client HeWeatherAPI) + func NewStormListClient(basin, year string) (client HeWeatherAPI) + func NewStormTrackClient(stormID string) (client HeWeatherAPI) + func NewSunClient(location, date string) (client HeWeatherAPI) + func NewSunandMoonClient(location, date string) (client HeWeatherAPI) + func NewWarningClient(location string) (client HeWeatherAPI) + func NewWarningListClient(warningRange string) (client HeWeatherAPI) + func NewWeatherForecastClient(location string, duration string) (client HeWeatherAPI, err error) + func NewWeatherPOIClient(location, duration string) (client HeWeatherAPI, err error) + type NewClientErr struct + Reason string + func (e *NewClientErr) Error() string