azsource

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Mar 30, 2023 License: BSD-3-Clause Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Formatter

type Formatter struct {
}

func NewForecastFormatter

func NewForecastFormatter() Formatter

func (*Formatter) SpeedWithBearing

func (f *Formatter) SpeedWithBearing(w *azweather.Wind) string

func (*Formatter) Title

func (f *Formatter) Title(title string) string

func (*Formatter) WeatherUnit

func (f *Formatter) WeatherUnit(w *azweather.WeatherUnit) string

type Mapper

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

func NewMapper

func NewMapper(hourly []azweather.HourlyForecast) Mapper

func (*Mapper) AsPlanResponse

func (m *Mapper) AsPlanResponse(location *gpb.GeocodeReply, units string) (*wpb.PlanReply, error)

Jump to

Keyboard shortcuts

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