Documentation
¶
Index ¶
- Variables
- type Activity
- func (*Activity) Descriptor() ([]byte, []int)deprecated
- func (x *Activity) GetDistance() float64
- func (x *Activity) GetMovingTime() int64
- func (x *Activity) GetName() string
- func (x *Activity) GetSportType() string
- func (x *Activity) GetTimestamp() *timestamppb.Timestamp
- func (*Activity) ProtoMessage()
- func (x *Activity) ProtoReflect() protoreflect.Message
- func (x *Activity) Reset()
- func (x *Activity) String() string
- type ActivityStats
- func (*ActivityStats) Descriptor() ([]byte, []int)deprecated
- func (x *ActivityStats) GetAllRideotals() *ActivityTotal
- func (x *ActivityStats) GetAllRunTotals() *ActivityTotal
- func (x *ActivityStats) GetBiggestRideDistance() float64
- func (x *ActivityStats) GetRecentRideTotals() *ActivityTotal
- func (x *ActivityStats) GetRecentRunTotals() *ActivityTotal
- func (x *ActivityStats) GetYearToDateRideTotals() *ActivityTotal
- func (x *ActivityStats) GetYearToDateRunTotals() *ActivityTotal
- func (*ActivityStats) ProtoMessage()
- func (x *ActivityStats) ProtoReflect() protoreflect.Message
- func (x *ActivityStats) Reset()
- func (x *ActivityStats) String() string
- type ActivityTotal
- func (*ActivityTotal) Descriptor() ([]byte, []int)deprecated
- func (x *ActivityTotal) GetCount() int64
- func (x *ActivityTotal) GetDistance() float64
- func (x *ActivityTotal) GetMovingTime() int64
- func (*ActivityTotal) ProtoMessage()
- func (x *ActivityTotal) ProtoReflect() protoreflect.Message
- func (x *ActivityTotal) Reset()
- func (x *ActivityTotal) String() string
- type AthleteStats
- func (*AthleteStats) Descriptor() ([]byte, []int)deprecated
- func (x *AthleteStats) GetActivities() []*Activity
- func (x *AthleteStats) GetActivityStats() *ActivityStats
- func (x *AthleteStats) GetTimestamp() *timestamppb.Timestamp
- func (*AthleteStats) ProtoMessage()
- func (x *AthleteStats) ProtoReflect() protoreflect.Message
- func (x *AthleteStats) Reset()
- func (x *AthleteStats) String() string
- type BillingReport
- func (*BillingReport) Descriptor() ([]byte, []int)deprecated
- func (x *BillingReport) GetBillingAmount() map[string]float64
- func (x *BillingReport) GetBillingPeriod() string
- func (x *BillingReport) GetTaxAmount() map[string]float64
- func (*BillingReport) ProtoMessage()
- func (x *BillingReport) ProtoReflect() protoreflect.Message
- func (x *BillingReport) Reset()
- func (x *BillingReport) String() string
- type CurrentWeather
- func (*CurrentWeather) Descriptor() ([]byte, []int)deprecated
- func (x *CurrentWeather) GetRain() float64
- func (x *CurrentWeather) GetTemperature() float64
- func (x *CurrentWeather) GetTimestamp() *timestamppb.Timestamp
- func (x *CurrentWeather) GetWeather() *WeatherDetails
- func (x *CurrentWeather) GetWindDirection() int64
- func (x *CurrentWeather) GetWindGust() float64
- func (x *CurrentWeather) GetWindSpeed() float64
- func (*CurrentWeather) ProtoMessage()
- func (x *CurrentWeather) ProtoReflect() protoreflect.Message
- func (x *CurrentWeather) Reset()
- func (x *CurrentWeather) String() string
- type Dummy
- type ExchangeRate
- func (*ExchangeRate) Descriptor() ([]byte, []int)deprecated
- func (x *ExchangeRate) GetFromCurrency() string
- func (x *ExchangeRate) GetRate() float64
- func (x *ExchangeRate) GetTimestamp() *timestamppb.Timestamp
- func (x *ExchangeRate) GetToCurrency() string
- func (*ExchangeRate) ProtoMessage()
- func (x *ExchangeRate) ProtoReflect() protoreflect.Message
- func (x *ExchangeRate) Reset()
- func (x *ExchangeRate) String() string
- type ExchangeRates
- type ForecastTemperatures
- func (*ForecastTemperatures) Descriptor() ([]byte, []int)deprecated
- func (x *ForecastTemperatures) GetDay() float64
- func (x *ForecastTemperatures) GetDayMax() float64
- func (x *ForecastTemperatures) GetDayMin() float64
- func (x *ForecastTemperatures) GetEvening() float64
- func (x *ForecastTemperatures) GetMorning() float64
- func (x *ForecastTemperatures) GetNight() float64
- func (*ForecastTemperatures) ProtoMessage()
- func (x *ForecastTemperatures) ProtoReflect() protoreflect.Message
- func (x *ForecastTemperatures) Reset()
- func (x *ForecastTemperatures) String() string
- type ForecastWeather
- func (*ForecastWeather) Descriptor() ([]byte, []int)deprecated
- func (x *ForecastWeather) GetTemperatures() *ForecastTemperatures
- func (x *ForecastWeather) GetTimestamp() *timestamppb.Timestamp
- func (x *ForecastWeather) GetWeather() *WeatherDetails
- func (x *ForecastWeather) GetWindSpeed() float64
- func (*ForecastWeather) ProtoMessage()
- func (x *ForecastWeather) ProtoReflect() protoreflect.Message
- func (x *ForecastWeather) Reset()
- func (x *ForecastWeather) String() string
- type IndoorClimate
- func (*IndoorClimate) Descriptor() ([]byte, []int)deprecated
- func (x *IndoorClimate) GetDeviceId() string
- func (x *IndoorClimate) GetTimestamp() *timestamppb.Timestamp
- func (x *IndoorClimate) GetType() MeasurementType
- func (x *IndoorClimate) GetValue() string
- func (*IndoorClimate) ProtoMessage()
- func (x *IndoorClimate) ProtoReflect() protoreflect.Message
- func (x *IndoorClimate) Reset()
- func (x *IndoorClimate) String() string
- type Location
- type MeasurementType
- func (MeasurementType) Descriptor() protoreflect.EnumDescriptor
- func (x MeasurementType) Enum() *MeasurementType
- func (MeasurementType) EnumDescriptor() ([]byte, []int)deprecated
- func (x MeasurementType) Number() protoreflect.EnumNumber
- func (x MeasurementType) String() string
- func (MeasurementType) Type() protoreflect.EnumType
- type RoomClimate
- func (*RoomClimate) Descriptor() ([]byte, []int)deprecated
- func (x *RoomClimate) GetBattery() string
- func (x *RoomClimate) GetHumidity() string
- func (x *RoomClimate) GetTemperature() string
- func (x *RoomClimate) GetTimestamp() *timestamppb.Timestamp
- func (*RoomClimate) ProtoMessage()
- func (x *RoomClimate) ProtoReflect() protoreflect.Message
- func (x *RoomClimate) Reset()
- func (x *RoomClimate) String() string
- type WeatherData
- func (*WeatherData) Descriptor() ([]byte, []int)deprecated
- func (x *WeatherData) GetCurrent() *CurrentWeather
- func (x *WeatherData) GetForecast() []*ForecastWeather
- func (x *WeatherData) GetHourlyForecast() []*CurrentWeather
- func (x *WeatherData) GetLocation() *Location
- func (x *WeatherData) GetUnits() string
- func (*WeatherData) ProtoMessage()
- func (x *WeatherData) ProtoReflect() protoreflect.Message
- func (x *WeatherData) Reset()
- func (x *WeatherData) String() string
- type WeatherDetails
- func (*WeatherDetails) Descriptor() ([]byte, []int)deprecated
- func (x *WeatherDetails) GetConditionId() int64
- func (x *WeatherDetails) GetDescription() string
- func (x *WeatherDetails) GetGroup() string
- func (x *WeatherDetails) GetIcon() string
- func (*WeatherDetails) ProtoMessage()
- func (x *WeatherDetails) ProtoReflect() protoreflect.Message
- func (x *WeatherDetails) Reset()
- func (x *WeatherDetails) String() string
Constants ¶
This section is empty.
Variables ¶
var ( MeasurementType_name = map[int32]string{ 0: "TEMPERATURE", 1: "HUMIDITY", 2: "BATTERY", } MeasurementType_value = map[string]int32{ "TEMPERATURE": 0, "HUMIDITY": 1, "BATTERY": 2, } )
Enum value maps for MeasurementType.
var File_billingreport_proto protoreflect.FileDescriptor
var File_dummy_proto protoreflect.FileDescriptor
var File_exchangerate_proto protoreflect.FileDescriptor
var File_indoorClimate_proto protoreflect.FileDescriptor
var File_strava_proto protoreflect.FileDescriptor
var File_weather_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type Activity ¶ added in v1.0.12
type Activity struct {
// The name of the activity.
Name string `protobuf:"bytes,1,opt,name=Name,proto3" json:"Name,omitempty"`
// The activity's distance.
Distance float64 `protobuf:"fixed64,2,opt,name=Distance,proto3" json:"Distance,omitempty"`
// The activity's moving time.
MovingTime int64 `protobuf:"varint,3,opt,name=MovingTime,proto3" json:"MovingTime,omitempty"`
// Type of an activity.
SportType string `protobuf:"bytes,4,opt,name=SportType,proto3" json:"SportType,omitempty"`
// Timestamp an activity is related to.
Timestamp *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=Timestamp,proto3" json:"Timestamp,omitempty"`
// contains filtered or unexported fields
}
Description of a single activity.
func (*Activity) Descriptor
deprecated
added in
v1.0.12
func (*Activity) GetDistance ¶ added in v1.0.12
func (*Activity) GetMovingTime ¶ added in v1.0.12
func (*Activity) GetSportType ¶ added in v1.0.12
func (*Activity) GetTimestamp ¶ added in v1.0.12
func (x *Activity) GetTimestamp() *timestamppb.Timestamp
func (*Activity) ProtoMessage ¶ added in v1.0.12
func (*Activity) ProtoMessage()
func (*Activity) ProtoReflect ¶ added in v1.0.12
func (x *Activity) ProtoReflect() protoreflect.Message
type ActivityStats ¶ added in v1.0.12
type ActivityStats struct {
// The longest distance ridden by the athlete.
BiggestRideDistance float64 `protobuf:"fixed64,1,opt,name=BiggestRideDistance,proto3" json:"BiggestRideDistance,omitempty"`
// The recent (last 4 weeks) ride stats for the athlete.
RecentRideTotals *ActivityTotal `protobuf:"bytes,2,opt,name=RecentRideTotals,proto3" json:"RecentRideTotals,omitempty"`
// The recent (last 4 weeks) run stats for the athlete.
RecentRunTotals *ActivityTotal `protobuf:"bytes,3,opt,name=RecentRunTotals,proto3" json:"RecentRunTotals,omitempty"`
// The year to date ride stats for the athlete.
YearToDateRideTotals *ActivityTotal `protobuf:"bytes,4,opt,name=YearToDateRideTotals,proto3" json:"YearToDateRideTotals,omitempty"`
// The year to date run stats for the athlete.
YearToDateRunTotals *ActivityTotal `protobuf:"bytes,5,opt,name=YearToDateRunTotals,proto3" json:"YearToDateRunTotals,omitempty"`
// The all time ride stats for the aTthlete.
AllRideotals *ActivityTotal `protobuf:"bytes,6,opt,name=AllRideotals,proto3" json:"AllRideotals,omitempty"`
// The all time run stats for the athlete.
AllRunTotals *ActivityTotal `protobuf:"bytes,7,opt,name=AllRunTotals,proto3" json:"AllRunTotals,omitempty"`
// contains filtered or unexported fields
}
ActivityTotal contains current year and total stats for an athlete.
func (*ActivityStats) Descriptor
deprecated
added in
v1.0.12
func (*ActivityStats) Descriptor() ([]byte, []int)
Deprecated: Use ActivityStats.ProtoReflect.Descriptor instead.
func (*ActivityStats) GetAllRideotals ¶ added in v1.0.12
func (x *ActivityStats) GetAllRideotals() *ActivityTotal
func (*ActivityStats) GetAllRunTotals ¶ added in v1.0.12
func (x *ActivityStats) GetAllRunTotals() *ActivityTotal
func (*ActivityStats) GetBiggestRideDistance ¶ added in v1.0.12
func (x *ActivityStats) GetBiggestRideDistance() float64
func (*ActivityStats) GetRecentRideTotals ¶ added in v1.0.12
func (x *ActivityStats) GetRecentRideTotals() *ActivityTotal
func (*ActivityStats) GetRecentRunTotals ¶ added in v1.0.12
func (x *ActivityStats) GetRecentRunTotals() *ActivityTotal
func (*ActivityStats) GetYearToDateRideTotals ¶ added in v1.0.12
func (x *ActivityStats) GetYearToDateRideTotals() *ActivityTotal
func (*ActivityStats) GetYearToDateRunTotals ¶ added in v1.0.12
func (x *ActivityStats) GetYearToDateRunTotals() *ActivityTotal
func (*ActivityStats) ProtoMessage ¶ added in v1.0.12
func (*ActivityStats) ProtoMessage()
func (*ActivityStats) ProtoReflect ¶ added in v1.0.12
func (x *ActivityStats) ProtoReflect() protoreflect.Message
func (*ActivityStats) Reset ¶ added in v1.0.12
func (x *ActivityStats) Reset()
func (*ActivityStats) String ¶ added in v1.0.12
func (x *ActivityStats) String() string
type ActivityTotal ¶ added in v1.0.12
type ActivityTotal struct {
// The number of activities considered in this total.
Count int64 `protobuf:"varint,1,opt,name=Count,proto3" json:"Count,omitempty"`
// The total distance covered by the considered activities.
Distance float64 `protobuf:"fixed64,2,opt,name=Distance,proto3" json:"Distance,omitempty"`
// The total moving time of the considered activities in seconds.
MovingTime int64 `protobuf:"varint,3,opt,name=MovingTime,proto3" json:"MovingTime,omitempty"`
// contains filtered or unexported fields
}
func (*ActivityTotal) Descriptor
deprecated
added in
v1.0.12
func (*ActivityTotal) Descriptor() ([]byte, []int)
Deprecated: Use ActivityTotal.ProtoReflect.Descriptor instead.
func (*ActivityTotal) GetCount ¶ added in v1.0.12
func (x *ActivityTotal) GetCount() int64
func (*ActivityTotal) GetDistance ¶ added in v1.0.12
func (x *ActivityTotal) GetDistance() float64
func (*ActivityTotal) GetMovingTime ¶ added in v1.0.12
func (x *ActivityTotal) GetMovingTime() int64
func (*ActivityTotal) ProtoMessage ¶ added in v1.0.12
func (*ActivityTotal) ProtoMessage()
func (*ActivityTotal) ProtoReflect ¶ added in v1.0.12
func (x *ActivityTotal) ProtoReflect() protoreflect.Message
func (*ActivityTotal) Reset ¶ added in v1.0.12
func (x *ActivityTotal) Reset()
func (*ActivityTotal) String ¶ added in v1.0.12
func (x *ActivityTotal) String() string
type AthleteStats ¶ added in v1.0.12
type AthleteStats struct {
// ActivityStats contains current year and total stats for an athlete.
ActivityStats *ActivityStats `protobuf:"bytes,1,opt,name=ActivityStats,proto3" json:"ActivityStats,omitempty"`
// List of latest activities of an athlete.
Activities []*Activity `protobuf:"bytes,2,rep,name=Activities,proto3" json:"Activities,omitempty"`
// Timestamp, point in time this stats has been retrieved from Strava.
Timestamp *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=Timestamp,proto3" json:"Timestamp,omitempty"`
// contains filtered or unexported fields
}
AthleteStats contains stats, current year and total, together with latest activities of an athlete.
func (*AthleteStats) Descriptor
deprecated
added in
v1.0.12
func (*AthleteStats) Descriptor() ([]byte, []int)
Deprecated: Use AthleteStats.ProtoReflect.Descriptor instead.
func (*AthleteStats) GetActivities ¶ added in v1.0.12
func (x *AthleteStats) GetActivities() []*Activity
func (*AthleteStats) GetActivityStats ¶ added in v1.0.12
func (x *AthleteStats) GetActivityStats() *ActivityStats
func (*AthleteStats) GetTimestamp ¶ added in v1.0.12
func (x *AthleteStats) GetTimestamp() *timestamppb.Timestamp
func (*AthleteStats) ProtoMessage ¶ added in v1.0.12
func (*AthleteStats) ProtoMessage()
func (*AthleteStats) ProtoReflect ¶ added in v1.0.12
func (x *AthleteStats) ProtoReflect() protoreflect.Message
func (*AthleteStats) Reset ¶ added in v1.0.12
func (x *AthleteStats) Reset()
func (*AthleteStats) String ¶ added in v1.0.12
func (x *AthleteStats) String() string
type BillingReport ¶ added in v1.0.8
type BillingReport struct {
// BillingPeriod this report belongs to.
BillingPeriod string `protobuf:"bytes,1,opt,name=BillingPeriod,proto3" json:"BillingPeriod,omitempty"`
// BillingAmount contains a list of amounts realated to a currency.
BillingAmount map[string]float64 `` /* 155-byte string literal not displayed */
// TaxAmount contains a list of tax amounts realated to a currency.
TaxAmount map[string]float64 `` /* 147-byte string literal not displayed */
// contains filtered or unexported fields
}
BillingReport contains AWS costs extracted from billing reports.
func (*BillingReport) Descriptor
deprecated
added in
v1.0.8
func (*BillingReport) Descriptor() ([]byte, []int)
Deprecated: Use BillingReport.ProtoReflect.Descriptor instead.
func (*BillingReport) GetBillingAmount ¶ added in v1.0.8
func (x *BillingReport) GetBillingAmount() map[string]float64
func (*BillingReport) GetBillingPeriod ¶ added in v1.0.8
func (x *BillingReport) GetBillingPeriod() string
func (*BillingReport) GetTaxAmount ¶ added in v1.0.8
func (x *BillingReport) GetTaxAmount() map[string]float64
func (*BillingReport) ProtoMessage ¶ added in v1.0.8
func (*BillingReport) ProtoMessage()
func (*BillingReport) ProtoReflect ¶ added in v1.0.8
func (x *BillingReport) ProtoReflect() protoreflect.Message
func (*BillingReport) Reset ¶ added in v1.0.8
func (x *BillingReport) Reset()
func (*BillingReport) String ¶ added in v1.0.8
func (x *BillingReport) String() string
type CurrentWeather ¶ added in v1.0.3
type CurrentWeather struct {
// Timestamp a weather infirmation is related to.
Timestamp *timestamppb.Timestamp `protobuf:"bytes,1,opt,name=Timestamp,proto3" json:"Timestamp,omitempty"`
// Temperature. Units - default: kelvin, metric: Celsius, imperial: Fahrenheit
Temperature float64 `protobuf:"fixed64,2,opt,name=Temperature,proto3" json:"Temperature,omitempty"`
// Wind speed. Wind speed. Units – default: metre/sec, metric: metre/sec, imperial: miles/hour
WindSpeed float64 `protobuf:"fixed64,3,opt,name=WindSpeed,proto3" json:"WindSpeed,omitempty"`
// Weather details
Weather *WeatherDetails `protobuf:"bytes,4,opt,name=Weather,proto3" json:"Weather,omitempty"`
// Wind direction, degrees (meteorological)
WindDirection int64 `protobuf:"varint,5,opt,name=WindDirection,proto3" json:"WindDirection,omitempty"`
// Wind gust. Wind gust. Units – default: metre/sec, metric: metre/sec, imperial: miles/hour.
WindGust float64 `protobuf:"fixed64,6,opt,name=WindGust,proto3" json:"WindGust,omitempty"`
// Rain mm/h (Liter/hour)
Rain float64 `protobuf:"fixed64,7,opt,name=Rain,proto3" json:"Rain,omitempty"`
// contains filtered or unexported fields
}
Current weather data.
func (*CurrentWeather) Descriptor
deprecated
added in
v1.0.3
func (*CurrentWeather) Descriptor() ([]byte, []int)
Deprecated: Use CurrentWeather.ProtoReflect.Descriptor instead.
func (*CurrentWeather) GetRain ¶ added in v1.0.15
func (x *CurrentWeather) GetRain() float64
func (*CurrentWeather) GetTemperature ¶ added in v1.0.3
func (x *CurrentWeather) GetTemperature() float64
func (*CurrentWeather) GetTimestamp ¶ added in v1.0.3
func (x *CurrentWeather) GetTimestamp() *timestamppb.Timestamp
func (*CurrentWeather) GetWeather ¶ added in v1.0.3
func (x *CurrentWeather) GetWeather() *WeatherDetails
func (*CurrentWeather) GetWindDirection ¶ added in v1.0.9
func (x *CurrentWeather) GetWindDirection() int64
func (*CurrentWeather) GetWindGust ¶ added in v1.0.11
func (x *CurrentWeather) GetWindGust() float64
func (*CurrentWeather) GetWindSpeed ¶ added in v1.0.3
func (x *CurrentWeather) GetWindSpeed() float64
func (*CurrentWeather) ProtoMessage ¶ added in v1.0.3
func (*CurrentWeather) ProtoMessage()
func (*CurrentWeather) ProtoReflect ¶ added in v1.0.3
func (x *CurrentWeather) ProtoReflect() protoreflect.Message
func (*CurrentWeather) Reset ¶ added in v1.0.3
func (x *CurrentWeather) Reset()
func (*CurrentWeather) String ¶ added in v1.0.3
func (x *CurrentWeather) String() string
type Dummy ¶ added in v1.0.4
type Dummy struct {
// Id of this event.
Id string `protobuf:"bytes,1,opt,name=Id,proto3" json:"Id,omitempty"`
// contains filtered or unexported fields
}
Dummy is an event for testing.
func (*Dummy) Descriptor
deprecated
added in
v1.0.4
func (*Dummy) ProtoMessage ¶ added in v1.0.4
func (*Dummy) ProtoMessage()
func (*Dummy) ProtoReflect ¶ added in v1.0.4
func (x *Dummy) ProtoReflect() protoreflect.Message
type ExchangeRate ¶ added in v1.0.5
type ExchangeRate struct {
// FromCurrency is the base currency used for exchange rate.
FromCurrency string `protobuf:"bytes,1,opt,name=FromCurrency,proto3" json:"FromCurrency,omitempty"`
// ToCurrency is the target currency for an exchange rate.
ToCurrency string `protobuf:"bytes,2,opt,name=ToCurrency,proto3" json:"ToCurrency,omitempty"`
// Rate is an exchange rate for two currencies at a specific time.
Rate float64 `protobuf:"fixed64,3,opt,name=Rate,proto3" json:"Rate,omitempty"`
// Timestamp is a point in time an exchange is valid.
Timestamp *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=Timestamp,proto3" json:"Timestamp,omitempty"`
// contains filtered or unexported fields
}
ExchangeRate contains rate of currency translation between two difference currencies at a sepcific time.
func (*ExchangeRate) Descriptor
deprecated
added in
v1.0.5
func (*ExchangeRate) Descriptor() ([]byte, []int)
Deprecated: Use ExchangeRate.ProtoReflect.Descriptor instead.
func (*ExchangeRate) GetFromCurrency ¶ added in v1.0.5
func (x *ExchangeRate) GetFromCurrency() string
func (*ExchangeRate) GetRate ¶ added in v1.0.5
func (x *ExchangeRate) GetRate() float64
func (*ExchangeRate) GetTimestamp ¶ added in v1.0.5
func (x *ExchangeRate) GetTimestamp() *timestamppb.Timestamp
func (*ExchangeRate) GetToCurrency ¶ added in v1.0.5
func (x *ExchangeRate) GetToCurrency() string
func (*ExchangeRate) ProtoMessage ¶ added in v1.0.5
func (*ExchangeRate) ProtoMessage()
func (*ExchangeRate) ProtoReflect ¶ added in v1.0.5
func (x *ExchangeRate) ProtoReflect() protoreflect.Message
func (*ExchangeRate) Reset ¶ added in v1.0.5
func (x *ExchangeRate) Reset()
func (*ExchangeRate) String ¶ added in v1.0.5
func (x *ExchangeRate) String() string
type ExchangeRates ¶ added in v1.0.6
type ExchangeRates struct {
// Rates is a list of ExhangeRate.
Rates []*ExchangeRate `protobuf:"bytes,1,rep,name=Rates,proto3" json:"Rates,omitempty"`
// contains filtered or unexported fields
}
ExchangeRates is a list of different exchange rates.
func (*ExchangeRates) Descriptor
deprecated
added in
v1.0.6
func (*ExchangeRates) Descriptor() ([]byte, []int)
Deprecated: Use ExchangeRates.ProtoReflect.Descriptor instead.
func (*ExchangeRates) GetRates ¶ added in v1.0.6
func (x *ExchangeRates) GetRates() []*ExchangeRate
func (*ExchangeRates) ProtoMessage ¶ added in v1.0.6
func (*ExchangeRates) ProtoMessage()
func (*ExchangeRates) ProtoReflect ¶ added in v1.0.6
func (x *ExchangeRates) ProtoReflect() protoreflect.Message
func (*ExchangeRates) Reset ¶ added in v1.0.6
func (x *ExchangeRates) Reset()
func (*ExchangeRates) String ¶ added in v1.0.6
func (x *ExchangeRates) String() string
type ForecastTemperatures ¶ added in v1.0.3
type ForecastTemperatures struct {
// Morning temperature
Morning float64 `protobuf:"fixed64,1,opt,name=Morning,proto3" json:"Morning,omitempty"`
// Day temperature
Day float64 `protobuf:"fixed64,2,opt,name=Day,proto3" json:"Day,omitempty"`
// Evening temperature
Evening float64 `protobuf:"fixed64,3,opt,name=Evening,proto3" json:"Evening,omitempty"`
// Night temperature
Night float64 `protobuf:"fixed64,4,opt,name=Night,proto3" json:"Night,omitempty"`
// Min daily temperature.
DayMin float64 `protobuf:"fixed64,5,opt,name=DayMin,proto3" json:"DayMin,omitempty"`
// Max daily temperature.
DayMax float64 `protobuf:"fixed64,6,opt,name=DayMax,proto3" json:"DayMax,omitempty"`
// contains filtered or unexported fields
}
forecastTemperature contains forecast temperature data for a single day Units – default: kelvin, metric: Celsius, imperial: Fahrenheit
func (*ForecastTemperatures) Descriptor
deprecated
added in
v1.0.3
func (*ForecastTemperatures) Descriptor() ([]byte, []int)
Deprecated: Use ForecastTemperatures.ProtoReflect.Descriptor instead.
func (*ForecastTemperatures) GetDay ¶ added in v1.0.3
func (x *ForecastTemperatures) GetDay() float64
func (*ForecastTemperatures) GetDayMax ¶ added in v1.0.3
func (x *ForecastTemperatures) GetDayMax() float64
func (*ForecastTemperatures) GetDayMin ¶ added in v1.0.3
func (x *ForecastTemperatures) GetDayMin() float64
func (*ForecastTemperatures) GetEvening ¶ added in v1.0.3
func (x *ForecastTemperatures) GetEvening() float64
func (*ForecastTemperatures) GetMorning ¶ added in v1.0.3
func (x *ForecastTemperatures) GetMorning() float64
func (*ForecastTemperatures) GetNight ¶ added in v1.0.3
func (x *ForecastTemperatures) GetNight() float64
func (*ForecastTemperatures) ProtoMessage ¶ added in v1.0.3
func (*ForecastTemperatures) ProtoMessage()
func (*ForecastTemperatures) ProtoReflect ¶ added in v1.0.3
func (x *ForecastTemperatures) ProtoReflect() protoreflect.Message
func (*ForecastTemperatures) Reset ¶ added in v1.0.3
func (x *ForecastTemperatures) Reset()
func (*ForecastTemperatures) String ¶ added in v1.0.3
func (x *ForecastTemperatures) String() string
type ForecastWeather ¶ added in v1.0.3
type ForecastWeather struct {
// Timestamp a weather infirmation is related to.
Timestamp *timestamppb.Timestamp `protobuf:"bytes,1,opt,name=Timestamp,proto3" json:"Timestamp,omitempty"`
// Forecast temperatures for the whole day
Temperatures *ForecastTemperatures `protobuf:"bytes,2,opt,name=Temperatures,proto3" json:"Temperatures,omitempty"`
// Wind speed. Wind speed. Units – default: metre/sec, metric: metre/sec, imperial: miles/hour
WindSpeed float64 `protobuf:"fixed64,3,opt,name=WindSpeed,proto3" json:"WindSpeed,omitempty"`
// Weather details
Weather *WeatherDetails `protobuf:"bytes,4,opt,name=Weather,proto3" json:"Weather,omitempty"`
// contains filtered or unexported fields
}
ForeCastWeather contains forecast weather data for a single day
func (*ForecastWeather) Descriptor
deprecated
added in
v1.0.3
func (*ForecastWeather) Descriptor() ([]byte, []int)
Deprecated: Use ForecastWeather.ProtoReflect.Descriptor instead.
func (*ForecastWeather) GetTemperatures ¶ added in v1.0.3
func (x *ForecastWeather) GetTemperatures() *ForecastTemperatures
func (*ForecastWeather) GetTimestamp ¶ added in v1.0.3
func (x *ForecastWeather) GetTimestamp() *timestamppb.Timestamp
func (*ForecastWeather) GetWeather ¶ added in v1.0.3
func (x *ForecastWeather) GetWeather() *WeatherDetails
func (*ForecastWeather) GetWindSpeed ¶ added in v1.0.3
func (x *ForecastWeather) GetWindSpeed() float64
func (*ForecastWeather) ProtoMessage ¶ added in v1.0.3
func (*ForecastWeather) ProtoMessage()
func (*ForecastWeather) ProtoReflect ¶ added in v1.0.3
func (x *ForecastWeather) ProtoReflect() protoreflect.Message
func (*ForecastWeather) Reset ¶ added in v1.0.3
func (x *ForecastWeather) Reset()
func (*ForecastWeather) String ¶ added in v1.0.3
func (x *ForecastWeather) String() string
type IndoorClimate ¶ added in v1.0.7
type IndoorClimate struct {
// Timestamp an indoor climate information is related to.
Timestamp *timestamppb.Timestamp `protobuf:"bytes,1,opt,name=Timestamp,proto3" json:"Timestamp,omitempty"`
// DEvide which sends this measurement.
DeviceId string `protobuf:"bytes,2,opt,name=DeviceId,proto3" json:"DeviceId,omitempty"`
// Measurement type.
Type MeasurementType `protobuf:"varint,3,opt,name=Type,proto3,enum=events.MeasurementType" json:"Type,omitempty"`
// Measurement value.
Value string `protobuf:"bytes,4,opt,name=value,proto3" json:"value,omitempty"`
// contains filtered or unexported fields
}
Indoor Climate data contains a measurement and it's value given by a device at a specific time.
func (*IndoorClimate) Descriptor
deprecated
added in
v1.0.7
func (*IndoorClimate) Descriptor() ([]byte, []int)
Deprecated: Use IndoorClimate.ProtoReflect.Descriptor instead.
func (*IndoorClimate) GetDeviceId ¶ added in v1.0.7
func (x *IndoorClimate) GetDeviceId() string
func (*IndoorClimate) GetTimestamp ¶ added in v1.0.7
func (x *IndoorClimate) GetTimestamp() *timestamppb.Timestamp
func (*IndoorClimate) GetType ¶ added in v1.0.7
func (x *IndoorClimate) GetType() MeasurementType
func (*IndoorClimate) GetValue ¶ added in v1.0.7
func (x *IndoorClimate) GetValue() string
func (*IndoorClimate) ProtoMessage ¶ added in v1.0.7
func (*IndoorClimate) ProtoMessage()
func (*IndoorClimate) ProtoReflect ¶ added in v1.0.7
func (x *IndoorClimate) ProtoReflect() protoreflect.Message
func (*IndoorClimate) Reset ¶ added in v1.0.7
func (x *IndoorClimate) Reset()
func (*IndoorClimate) String ¶ added in v1.0.7
func (x *IndoorClimate) String() string
type Location ¶
type Location struct {
// Longitude coordinate.
Longitude float64 `protobuf:"fixed64,1,opt,name=Longitude,proto3" json:"Longitude,omitempty"`
// Latitude coordinate.
Latitude float64 `protobuf:"fixed64,2,opt,name=Latitude,proto3" json:"Latitude,omitempty"`
// contains filtered or unexported fields
}
Geographical coordinates weather information are related to
func (*Location) Descriptor
deprecated
func (*Location) GetLatitude ¶
func (*Location) GetLongitude ¶
func (*Location) ProtoMessage ¶
func (*Location) ProtoMessage()
func (*Location) ProtoReflect ¶
func (x *Location) ProtoReflect() protoreflect.Message
type MeasurementType ¶ added in v1.0.7
type MeasurementType int32
Measurement types.
const ( MeasurementType_TEMPERATURE MeasurementType = 0 MeasurementType_HUMIDITY MeasurementType = 1 MeasurementType_BATTERY MeasurementType = 2 )
func (MeasurementType) Descriptor ¶ added in v1.0.7
func (MeasurementType) Descriptor() protoreflect.EnumDescriptor
func (MeasurementType) Enum ¶ added in v1.0.7
func (x MeasurementType) Enum() *MeasurementType
func (MeasurementType) EnumDescriptor
deprecated
added in
v1.0.7
func (MeasurementType) EnumDescriptor() ([]byte, []int)
Deprecated: Use MeasurementType.Descriptor instead.
func (MeasurementType) Number ¶ added in v1.0.7
func (x MeasurementType) Number() protoreflect.EnumNumber
func (MeasurementType) String ¶ added in v1.0.7
func (x MeasurementType) String() string
func (MeasurementType) Type ¶ added in v1.0.7
func (MeasurementType) Type() protoreflect.EnumType
type RoomClimate ¶ added in v1.0.16
type RoomClimate struct {
// Timestamp an indoor climate information is related to.
Timestamp *timestamppb.Timestamp `protobuf:"bytes,1,opt,name=Timestamp,proto3" json:"Timestamp,omitempty"`
Temperature string `protobuf:"bytes,2,opt,name=Temperature,proto3" json:"Temperature,omitempty"`
Humidity string `protobuf:"bytes,3,opt,name=Humidity,proto3" json:"Humidity,omitempty"`
Battery string `protobuf:"bytes,4,opt,name=Battery,proto3" json:"Battery,omitempty"`
// contains filtered or unexported fields
}
RoomClimate contains information, temperature, humidity and maybe battey level, for a single room.
func (*RoomClimate) Descriptor
deprecated
added in
v1.0.16
func (*RoomClimate) Descriptor() ([]byte, []int)
Deprecated: Use RoomClimate.ProtoReflect.Descriptor instead.
func (*RoomClimate) GetBattery ¶ added in v1.0.16
func (x *RoomClimate) GetBattery() string
func (*RoomClimate) GetHumidity ¶ added in v1.0.16
func (x *RoomClimate) GetHumidity() string
func (*RoomClimate) GetTemperature ¶ added in v1.0.16
func (x *RoomClimate) GetTemperature() string
func (*RoomClimate) GetTimestamp ¶ added in v1.0.16
func (x *RoomClimate) GetTimestamp() *timestamppb.Timestamp
func (*RoomClimate) ProtoMessage ¶ added in v1.0.16
func (*RoomClimate) ProtoMessage()
func (*RoomClimate) ProtoReflect ¶ added in v1.0.16
func (x *RoomClimate) ProtoReflect() protoreflect.Message
func (*RoomClimate) Reset ¶ added in v1.0.16
func (x *RoomClimate) Reset()
func (*RoomClimate) String ¶ added in v1.0.16
func (x *RoomClimate) String() string
type WeatherData ¶ added in v1.0.3
type WeatherData struct {
// Location a weather information belongs to
Location *Location `protobuf:"bytes,1,opt,name=Location,proto3" json:"Location,omitempty"`
// Defines units for temperature and wind speed. Possible values are: default, metric, imperial
Units string `protobuf:"bytes,2,opt,name=Units,proto3" json:"Units,omitempty"`
// Current weather data
Current *CurrentWeather `protobuf:"bytes,3,opt,name=Current,proto3" json:"Current,omitempty"`
// 7-days forecast
Forecast []*ForecastWeather `protobuf:"bytes,4,rep,name=Forecast,proto3" json:"Forecast,omitempty"`
// 48 hours forecast
HourlyForecast []*CurrentWeather `protobuf:"bytes,5,rep,name=HourlyForecast,proto3" json:"HourlyForecast,omitempty"`
// contains filtered or unexported fields
}
Weather data contains current weather and a 7-days forecast for a given location.
func (*WeatherData) Descriptor
deprecated
added in
v1.0.3
func (*WeatherData) Descriptor() ([]byte, []int)
Deprecated: Use WeatherData.ProtoReflect.Descriptor instead.
func (*WeatherData) GetCurrent ¶ added in v1.0.3
func (x *WeatherData) GetCurrent() *CurrentWeather
func (*WeatherData) GetForecast ¶ added in v1.0.3
func (x *WeatherData) GetForecast() []*ForecastWeather
func (*WeatherData) GetHourlyForecast ¶ added in v1.0.14
func (x *WeatherData) GetHourlyForecast() []*CurrentWeather
func (*WeatherData) GetLocation ¶ added in v1.0.3
func (x *WeatherData) GetLocation() *Location
func (*WeatherData) GetUnits ¶ added in v1.0.3
func (x *WeatherData) GetUnits() string
func (*WeatherData) ProtoMessage ¶ added in v1.0.3
func (*WeatherData) ProtoMessage()
func (*WeatherData) ProtoReflect ¶ added in v1.0.3
func (x *WeatherData) ProtoReflect() protoreflect.Message
func (*WeatherData) Reset ¶ added in v1.0.3
func (x *WeatherData) Reset()
func (*WeatherData) String ¶ added in v1.0.3
func (x *WeatherData) String() string
type WeatherDetails ¶ added in v1.0.3
type WeatherDetails struct {
// Weather condition id
ConditionId int64 `protobuf:"varint,1,opt,name=ConditionId,proto3" json:"ConditionId,omitempty"`
// Group of weather parameters (Rain, Snow, Extreme etc.)
Group string `protobuf:"bytes,2,opt,name=Group,proto3" json:"Group,omitempty"`
// Weather condition within the group
Description string `protobuf:"bytes,3,opt,name=Description,proto3" json:"Description,omitempty"`
// Weather icon from Open Weather Map
Icon string `protobuf:"bytes,4,opt,name=Icon,proto3" json:"Icon,omitempty"`
// contains filtered or unexported fields
}
WeatherDetails contains information of current weather or forecast Full list of condition id, group and description and Icons is available at: https://openweathermap.org/weather-conditions#Weather-Condition-Codes-2
func (*WeatherDetails) Descriptor
deprecated
added in
v1.0.3
func (*WeatherDetails) Descriptor() ([]byte, []int)
Deprecated: Use WeatherDetails.ProtoReflect.Descriptor instead.
func (*WeatherDetails) GetConditionId ¶ added in v1.0.3
func (x *WeatherDetails) GetConditionId() int64
func (*WeatherDetails) GetDescription ¶ added in v1.0.3
func (x *WeatherDetails) GetDescription() string
func (*WeatherDetails) GetGroup ¶ added in v1.0.3
func (x *WeatherDetails) GetGroup() string
func (*WeatherDetails) GetIcon ¶ added in v1.0.3
func (x *WeatherDetails) GetIcon() string
func (*WeatherDetails) ProtoMessage ¶ added in v1.0.3
func (*WeatherDetails) ProtoMessage()
func (*WeatherDetails) ProtoReflect ¶ added in v1.0.3
func (x *WeatherDetails) ProtoReflect() protoreflect.Message
func (*WeatherDetails) Reset ¶ added in v1.0.3
func (x *WeatherDetails) Reset()
func (*WeatherDetails) String ¶ added in v1.0.3
func (x *WeatherDetails) String() string