noaa

package
v0.0.0-...-bb3eb04 Latest Latest
Warning

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

Go to latest
Published: Jan 10, 2021 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Station

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

Station represents a NOAA station location

func NewStation

func NewStation(logger *zap.Logger, url string, title string, latitude float64, longitude float64) *Station

NewStation creates a new station.

func (*Station) GetForecast

func (s *Station) GetForecast(ctx context.Context) ([]*weather.WeatherForecast, error)

GetForecast returns the forecast for this station

func (*Station) GetReport

func (s *Station) GetReport(ctx context.Context) (*weather.WeatherReport, error)

GetReport returns the current weather report for this station.

func (*Station) Name

func (s *Station) Name() string

Name returns the printable name of this weather station

Jump to

Keyboard shortcuts

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