weather

package
v0.0.0-...-a53416d Latest Latest
Warning

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

Go to latest
Published: Oct 18, 2021 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Adapter

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

Adapter uses metaweather service for providing weather data.

func NewAdapter

func NewAdapter(address string, timeout time.Duration, httpDoer ahttp.Doer) (*Adapter, error)

NewAdapter creates new adapter instance.

func (*Adapter) GetWeather

GetWeather fetches weather data for a location.

Jump to

Keyboard shortcuts

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