source

package
v1.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 30, 2021 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Astro added in v0.5.0

type Astro struct {
	Sunrise          string `json:"sunrise"`
	Sunset           string `json:"sunset"`
	Moonrise         string `json:"moonrise"`
	Moonset          string `json:"moonset"`
	MoonIllumination string `json:"moon_illumination"`
}

type Forecast added in v0.5.0

type Forecast struct {
	Forecastday []Forecastday `json:"forecastday"`
}

type Forecastday added in v0.5.0

type Forecastday struct {
	Date      string `json:"date"`
	DateEpoch int    `json:"date_epoch"`
	Astro     Astro  `json:"astro"`
	Hour      []Hour `json:"hour"`
}

type Hour added in v0.5.0

type Hour struct {
	TimeEpoch    int     `json:"time_epoch"`
	Time         string  `json:"time"`
	TempC        float64 `json:"temp_c"`
	TempF        float64 `json:"temp_f"`
	WindMph      float64 `json:"wind_mph"`
	WindKph      float64 `json:"wind_kph"`
	WindDegree   int     `json:"wind_degree"`
	PressureMb   float64 `json:"pressure_mb"`
	PressureIn   float64 `json:"pressure_in"`
	PrecipMm     float64 `json:"precip_mm"`
	PrecipIn     float64 `json:"precip_in"`
	Cloud        int     `json:"cloud"`
	FeelslikeC   float64 `json:"feelslike_c"`
	FeelslikeF   float64 `json:"feelslike_f"`
	DewpointC    float64 `json:"dewpoint_c"`
	DewpointF    float64 `json:"dewpoint_f"`
	ChanceOfRain string  `json:"chance_of_rain"`
	ChanceOfSnow string  `json:"chance_of_snow"`
	GustMph      float64 `json:"gust_mph"`
	GustKph      float64 `json:"gust_kph"`
}

type NWS

type NWS struct {
	// contains filtered or unexported fields
}

func (*NWS) GetWeather

func (n *NWS) GetWeather() (weather.Records, error)

func (*NWS) Init added in v0.7.0

func (n *NWS) Init(lat string, lon string, retryer http.Retryer) error

type TheGlobalWeather added in v0.5.0

type TheGlobalWeather struct {
	Key string
	// contains filtered or unexported fields
}

func (*TheGlobalWeather) GetAstrocast added in v0.7.0

func (t *TheGlobalWeather) GetAstrocast() (weather.AstroEvents, error)

func (*TheGlobalWeather) GetWeather added in v0.5.0

func (t *TheGlobalWeather) GetWeather() (weather.Records, error)

func (*TheGlobalWeather) Init added in v0.7.0

func (t *TheGlobalWeather) Init(lat string, lon string, retryer http.Retryer) error

type VisualCrossing

type VisualCrossing struct {
	Key string
	// contains filtered or unexported fields
}

func (*VisualCrossing) GetAstrocast added in v0.7.0

func (v *VisualCrossing) GetAstrocast() (weather.AstroEvents, error)

func (*VisualCrossing) GetWeather

func (v *VisualCrossing) GetWeather() (weather.Records, error)

func (*VisualCrossing) Init added in v0.7.0

func (v *VisualCrossing) Init(lat string, lon string, retryer http.Retryer) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL