Versions in this module Expand all Collapse all v1 v1.0.3 Aug 2, 2024 Changes in this version + const LogTable + const Version + func GetAqi(aqi float64) string + func GetAqiColor(aqi float64) string + func GetCarWashingDesc(carWashing float64) string + func GetCodeId(code string) string + func GetCodeIdColor(code string) string + func GetCodeType(code string) string + func GetColdRiskDesc(coldRisk float64) string + func GetComfortDesc(comfort float64) string + func GetDailyUltravioletDesc(ultraviolet string) string + func GetDressingDesc(dressing float64) string + func GetRealtimeUltravioletDesc(ultraviolet float64) string + func GetSkyCon(skycon string) string + func GetWindDirectionDesc(direction float64) string + func GetWindSpeed(speed float64) string + func GetWindSpeedDesc(speed float64) string + type Client struct + func NewClient(token string) (*Client, error) + func (c *Client) Daily(ctx context.Context, location string, notMustParams ...gorequest.Params) (*DailyResult, error) + func (c *Client) Hourly(ctx context.Context, location string, notMustParams ...gorequest.Params) (*HourlyResult, error) + func (c *Client) Minutely(ctx context.Context, location string, notMustParams ...gorequest.Params) (*MinutelyResult, error) + func (c *Client) Realtime(ctx context.Context, location string, notMustParams ...gorequest.Params) (*RealtimeResult, error) + func (c *Client) SetClientIP(clientIP string) *Client + func (c *Client) SetLogFun(logFun gorequest.LogFunc) + func (c *Client) Weather(ctx context.Context, location string, notMustParams ...gorequest.Params) (*WeatherResult, error) + type DailyResponse struct + ApiStatus string + ApiVersion string + Lang string + Location []float64 + Result struct{ ... } + ServerTime float64 + Status string + Timezone string + Tzshift float64 + Unit string + type DailyResult struct + Body []byte + Http gorequest.Response + Result DailyResponse + type HourlyResponse struct + ApiStatus string + ApiVersion string + Lang string + Location []float64 + Result struct{ ... } + ServerTime int + Status string + Timezone string + Tzshift int + Unit string + type HourlyResult struct + Body []byte + Http gorequest.Response + Result HourlyResponse + type MinutelyResponse struct + ApiStatus string + ApiVersion string + Lang string + Location []float64 + Result struct{ ... } + ServerTime float64 + Status string + Timezone string + Tzshift float64 + Unit string + type MinutelyResult struct + Body []byte + Http gorequest.Response + Result MinutelyResponse + type RealtimeResponse struct + ApiStatus string + ApiVersion string + Lang string + Location []float64 + Result struct{ ... } + ServerTime int64 + Status string + Timezone string + Tzshift float64 + Unit string + type RealtimeResult struct + Body []byte + Http gorequest.Response + Result RealtimeResponse + type WeatherResponse struct + ApiStatus string + ApiVersion string + Lang string + Location []float64 + Result struct{ ... } + ServerTime int + Status string + Timezone string + Tzshift int + Unit string + type WeatherResult struct + Body []byte + Http gorequest.Response + Result WeatherResponse Other modules containing this package go.dtapp.net/library