pollen

package
v0.0.0-...-6e49c5b Latest Latest
Warning

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

Go to latest
Published: Nov 4, 2018 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type API

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

API interacts with the pollen count API

func NewAPI

func NewAPI() *API

func (*API) GetPollen

func (api *API) GetPollen(ctx context.Context, loc *tz.Location) (*Forecast, error)

type DataPoint

type DataPoint struct {
	Day   time.Time
	Index float64
}

type Forecast

type Forecast struct {
	Location   Location
	DataPoints []DataPoint
}

type Location

type Location struct {
	Zip   string
	City  string
	State string
}

Jump to

Keyboard shortcuts

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