Documentation ¶
Index ¶
- type ForecastFormatter
- func (f *ForecastFormatter) AlertMessage(alert *darksky.Alert, timezone string) string
- func (f *ForecastFormatter) Bearing(m darksky.Measurement) string
- func (f *ForecastFormatter) CombinedDataBlockSummary(first *darksky.DataBlock, second *darksky.DataBlock) string
- func (f *ForecastFormatter) Coordinate(m darksky.Measurement) float64
- func (f *ForecastFormatter) DataBlockSummary(dataBlock *darksky.DataBlock) string
- func (f *ForecastFormatter) Day(val darksky.Timestamp, timezone string) string
- func (f *ForecastFormatter) Distance(m darksky.Measurement) string
- func (f *ForecastFormatter) Measurement(m darksky.Measurement) string
- func (f *ForecastFormatter) Percentage(m darksky.Measurement) string
- func (f *ForecastFormatter) Pressure(m darksky.Measurement) string
- func (f *ForecastFormatter) Speed(m darksky.Measurement) string
- func (f *ForecastFormatter) SpeedWithBearing(speed darksky.Measurement, bearing darksky.Measurement) string
- func (f *ForecastFormatter) Temperature(m darksky.Measurement) string
- func (f *ForecastFormatter) Time(val darksky.Timestamp, timezone string) string
- func (f *ForecastFormatter) Title(title string) string
- type Mapper
- type SiUnits
- type Units
- type UsUnits
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ForecastFormatter ¶
type ForecastFormatter struct {
Units Units
}
func NewForecastFormatter ¶
func NewForecastFormatter(flags *darksky.Flags) ForecastFormatter
func (*ForecastFormatter) AlertMessage ¶
func (f *ForecastFormatter) AlertMessage(alert *darksky.Alert, timezone string) string
func (*ForecastFormatter) Bearing ¶
func (f *ForecastFormatter) Bearing(m darksky.Measurement) string
func (*ForecastFormatter) CombinedDataBlockSummary ¶
func (*ForecastFormatter) Coordinate ¶
func (f *ForecastFormatter) Coordinate(m darksky.Measurement) float64
func (*ForecastFormatter) DataBlockSummary ¶
func (f *ForecastFormatter) DataBlockSummary(dataBlock *darksky.DataBlock) string
func (*ForecastFormatter) Day ¶
func (f *ForecastFormatter) Day(val darksky.Timestamp, timezone string) string
func (*ForecastFormatter) Distance ¶
func (f *ForecastFormatter) Distance(m darksky.Measurement) string
func (*ForecastFormatter) Measurement ¶
func (f *ForecastFormatter) Measurement(m darksky.Measurement) string
func (*ForecastFormatter) Percentage ¶
func (f *ForecastFormatter) Percentage(m darksky.Measurement) string
func (*ForecastFormatter) Pressure ¶
func (f *ForecastFormatter) Pressure(m darksky.Measurement) string
func (*ForecastFormatter) Speed ¶
func (f *ForecastFormatter) Speed(m darksky.Measurement) string
func (*ForecastFormatter) SpeedWithBearing ¶
func (f *ForecastFormatter) SpeedWithBearing(speed darksky.Measurement, bearing darksky.Measurement) string
func (*ForecastFormatter) Temperature ¶
func (f *ForecastFormatter) Temperature(m darksky.Measurement) string
func (*ForecastFormatter) Time ¶
func (f *ForecastFormatter) Time(val darksky.Timestamp, timezone string) string
func (*ForecastFormatter) Title ¶
func (f *ForecastFormatter) Title(title string) string
type Mapper ¶
type Mapper struct {
// contains filtered or unexported fields
}
func NewMapper ¶
func NewMapper(forecast darksky.ForecastResponse) Mapper
func (*Mapper) AsWeatherResponse ¶
func (m *Mapper) AsWeatherResponse(location *gpb.GeocodeReply) (*wpb.WeatherReply, error)
type SiUnits ¶
type SiUnits struct {
Units
}
func (SiUnits) Accumulation ¶
func (SiUnits) Temperature ¶
type UsUnits ¶
type UsUnits struct {
Units
}
func (UsUnits) Accumulation ¶
func (UsUnits) Temperature ¶
Click to show internal directories.
Click to hide internal directories.