Documentation ¶
Index ¶
- Variables
- func RegisterWeatherServer(s *grpc.Server, srv WeatherServer)
- type Alert
- type Currently
- func (*Currently) Descriptor() ([]byte, []int)deprecated
- func (x *Currently) GetData() *Data
- func (x *Currently) GetDescription() string
- func (x *Currently) GetSummary() string
- func (*Currently) ProtoMessage()
- func (x *Currently) ProtoReflect() protoreflect.Message
- func (x *Currently) Reset()
- func (x *Currently) String() string
- type Data
- func (*Data) Descriptor() ([]byte, []int)deprecated
- func (x *Data) GetDewPoint() string
- func (x *Data) GetFeelsLike() string
- func (x *Data) GetHumidity() string
- func (x *Data) GetIcon() string
- func (x *Data) GetPrecipitationProbability() string
- func (x *Data) GetPrecipitationType() string
- func (x *Data) GetPressure() string
- func (x *Data) GetTemperature() string
- func (x *Data) GetTemperatureHigh() string
- func (x *Data) GetTemperatureLow() string
- func (x *Data) GetTimestamp() int64
- func (x *Data) GetWind() string
- func (*Data) ProtoMessage()
- func (x *Data) ProtoReflect() protoreflect.Message
- func (x *Data) Reset()
- func (x *Data) String() string
- type DataRange
- type Day
- type Forecast
- type Hour
- type PlanReply
- func (*PlanReply) Descriptor() ([]byte, []int)deprecated
- func (x *PlanReply) GetGeneratedAt() int64
- func (x *PlanReply) GetHours() []*Hour
- func (x *PlanReply) GetLatitude() float64
- func (x *PlanReply) GetLocation() string
- func (x *PlanReply) GetLongitude() float64
- func (x *PlanReply) GetUnits() string
- func (*PlanReply) ProtoMessage()
- func (x *PlanReply) ProtoReflect() protoreflect.Message
- func (x *PlanReply) Reset()
- func (x *PlanReply) String() string
- type PlanRequest
- func (*PlanRequest) Descriptor() ([]byte, []int)deprecated
- func (x *PlanRequest) GetDaylight() bool
- func (x *PlanRequest) GetDuration() int32
- func (x *PlanRequest) GetLocation() string
- func (x *PlanRequest) GetPrecipitation() bool
- func (x *PlanRequest) GetTemperature() *DataRange
- func (x *PlanRequest) GetUnits() string
- func (x *PlanRequest) GetWind() *DataRange
- func (x *PlanRequest) GetWindGust() *DataRange
- func (*PlanRequest) ProtoMessage()
- func (x *PlanRequest) ProtoReflect() protoreflect.Message
- func (x *PlanRequest) Reset()
- func (x *PlanRequest) String() string
- type UnimplementedWeatherServer
- type WeatherClient
- type WeatherReply
- func (*WeatherReply) Descriptor() ([]byte, []int)deprecated
- func (x *WeatherReply) GetAlerts() []*Alert
- func (x *WeatherReply) GetCurrently() *Currently
- func (x *WeatherReply) GetForecast() *Forecast
- func (x *WeatherReply) GetLatitude() float64
- func (x *WeatherReply) GetLocation() string
- func (x *WeatherReply) GetLongitude() float64
- func (*WeatherReply) ProtoMessage()
- func (x *WeatherReply) ProtoReflect() protoreflect.Message
- func (x *WeatherReply) Reset()
- func (x *WeatherReply) String() string
- type WeatherRequest
- func (*WeatherRequest) Descriptor() ([]byte, []int)deprecated
- func (x *WeatherRequest) GetLocation() string
- func (x *WeatherRequest) GetTime() int64
- func (x *WeatherRequest) GetUnits() string
- func (*WeatherRequest) ProtoMessage()
- func (x *WeatherRequest) ProtoReflect() protoreflect.Message
- func (x *WeatherRequest) Reset()
- func (x *WeatherRequest) String() string
- type WeatherServer
Constants ¶
This section is empty.
Variables ¶
View Source
var File_weather_proto protoreflect.FileDescriptor
Functions ¶
func RegisterWeatherServer ¶
func RegisterWeatherServer(s *grpc.Server, srv WeatherServer)
Types ¶
type Alert ¶
type Alert struct { Message string `protobuf:"bytes,1,opt,name=message,proto3" json:"message,omitempty"` Severity string `protobuf:"bytes,2,opt,name=severity,proto3" json:"severity,omitempty"` Uri string `protobuf:"bytes,3,opt,name=uri,proto3" json:"uri,omitempty"` // contains filtered or unexported fields }
func (*Alert) Descriptor
deprecated
func (*Alert) GetMessage ¶
func (*Alert) GetSeverity ¶
func (*Alert) ProtoMessage ¶
func (*Alert) ProtoMessage()
func (*Alert) ProtoReflect ¶ added in v0.1.0
func (x *Alert) ProtoReflect() protoreflect.Message
type Currently ¶
type Currently struct { Description string `protobuf:"bytes,1,opt,name=description,proto3" json:"description,omitempty"` Summary string `protobuf:"bytes,2,opt,name=Summary,proto3" json:"Summary,omitempty"` Data *Data `protobuf:"bytes,3,opt,name=data,proto3" json:"data,omitempty"` // contains filtered or unexported fields }
func (*Currently) Descriptor
deprecated
func (*Currently) GetDescription ¶
func (*Currently) GetSummary ¶
func (*Currently) ProtoMessage ¶
func (*Currently) ProtoMessage()
func (*Currently) ProtoReflect ¶ added in v0.1.0
func (x *Currently) ProtoReflect() protoreflect.Message
type Data ¶
type Data struct { DewPoint string `protobuf:"bytes,1,opt,name=dewPoint,proto3" json:"dewPoint,omitempty"` FeelsLike string `protobuf:"bytes,2,opt,name=feelsLike,proto3" json:"feelsLike,omitempty"` Humidity string `protobuf:"bytes,3,opt,name=humidity,proto3" json:"humidity,omitempty"` Icon string `protobuf:"bytes,4,opt,name=icon,proto3" json:"icon,omitempty"` PrecipitationProbability string `protobuf:"bytes,5,opt,name=precipitationProbability,proto3" json:"precipitationProbability,omitempty"` PrecipitationType string `protobuf:"bytes,6,opt,name=precipitationType,proto3" json:"precipitationType,omitempty"` Pressure string `protobuf:"bytes,7,opt,name=pressure,proto3" json:"pressure,omitempty"` Temperature string `protobuf:"bytes,8,opt,name=temperature,proto3" json:"temperature,omitempty"` TemperatureHigh string `protobuf:"bytes,9,opt,name=temperatureHigh,proto3" json:"temperatureHigh,omitempty"` TemperatureLow string `protobuf:"bytes,10,opt,name=temperatureLow,proto3" json:"temperatureLow,omitempty"` Timestamp int64 `protobuf:"varint,11,opt,name=timestamp,proto3" json:"timestamp,omitempty"` Wind string `protobuf:"bytes,12,opt,name=wind,proto3" json:"wind,omitempty"` // contains filtered or unexported fields }
func (*Data) Descriptor
deprecated
func (*Data) GetDewPoint ¶
func (*Data) GetFeelsLike ¶
func (*Data) GetHumidity ¶
func (*Data) GetPrecipitationProbability ¶
func (*Data) GetPrecipitationType ¶
func (*Data) GetPressure ¶
func (*Data) GetTemperature ¶
func (*Data) GetTemperatureHigh ¶
func (*Data) GetTemperatureLow ¶
func (*Data) GetTimestamp ¶
func (*Data) ProtoMessage ¶
func (*Data) ProtoMessage()
func (*Data) ProtoReflect ¶ added in v0.1.0
func (x *Data) ProtoReflect() protoreflect.Message
type DataRange ¶ added in v0.1.0
type DataRange struct { Min float64 `protobuf:"fixed64,1,opt,name=min,proto3" json:"min,omitempty"` Max float64 `protobuf:"fixed64,2,opt,name=max,proto3" json:"max,omitempty"` // contains filtered or unexported fields }
func (*DataRange) Descriptor
deprecated
added in
v0.1.0
func (*DataRange) ProtoMessage ¶ added in v0.1.0
func (*DataRange) ProtoMessage()
func (*DataRange) ProtoReflect ¶ added in v0.1.0
func (x *DataRange) ProtoReflect() protoreflect.Message
type Day ¶
type Day struct { Weekday string `protobuf:"bytes,1,opt,name=weekday,proto3" json:"weekday,omitempty"` Summary string `protobuf:"bytes,2,opt,name=summary,proto3" json:"summary,omitempty"` Data *Data `protobuf:"bytes,3,opt,name=data,proto3" json:"data,omitempty"` // contains filtered or unexported fields }
func (*Day) Descriptor
deprecated
func (*Day) GetSummary ¶
func (*Day) GetWeekday ¶
func (*Day) ProtoMessage ¶
func (*Day) ProtoMessage()
func (*Day) ProtoReflect ¶ added in v0.1.0
func (x *Day) ProtoReflect() protoreflect.Message
type Forecast ¶
type Forecast struct { Summary string `protobuf:"bytes,1,opt,name=summary,proto3" json:"summary,omitempty"` Days []*Day `protobuf:"bytes,2,rep,name=days,proto3" json:"days,omitempty"` // contains filtered or unexported fields }
func (*Forecast) Descriptor
deprecated
func (*Forecast) GetSummary ¶
func (*Forecast) ProtoMessage ¶
func (*Forecast) ProtoMessage()
func (*Forecast) ProtoReflect ¶ added in v0.1.0
func (x *Forecast) ProtoReflect() protoreflect.Message
type Hour ¶ added in v0.1.0
type Hour struct { Data *Data `protobuf:"bytes,3,opt,name=data,proto3" json:"data,omitempty"` // contains filtered or unexported fields }
func (*Hour) Descriptor
deprecated
added in
v0.1.0
func (*Hour) ProtoMessage ¶ added in v0.1.0
func (*Hour) ProtoMessage()
func (*Hour) ProtoReflect ¶ added in v0.1.0
func (x *Hour) ProtoReflect() protoreflect.Message
type PlanReply ¶ added in v0.1.0
type PlanReply struct { Location string `protobuf:"bytes,1,opt,name=location,proto3" json:"location,omitempty"` Latitude float64 `protobuf:"fixed64,2,opt,name=Latitude,proto3" json:"Latitude,omitempty"` Longitude float64 `protobuf:"fixed64,3,opt,name=Longitude,proto3" json:"Longitude,omitempty"` Hours []*Hour `protobuf:"bytes,4,rep,name=hours,proto3" json:"hours,omitempty"` Units string `protobuf:"bytes,5,opt,name=units,proto3" json:"units,omitempty"` GeneratedAt int64 `protobuf:"varint,6,opt,name=generatedAt,proto3" json:"generatedAt,omitempty"` // contains filtered or unexported fields }
func (*PlanReply) Descriptor
deprecated
added in
v0.1.0
func (*PlanReply) GetGeneratedAt ¶ added in v0.1.0
func (*PlanReply) GetLatitude ¶ added in v0.1.0
func (*PlanReply) GetLocation ¶ added in v0.1.0
func (*PlanReply) GetLongitude ¶ added in v0.1.0
func (*PlanReply) ProtoMessage ¶ added in v0.1.0
func (*PlanReply) ProtoMessage()
func (*PlanReply) ProtoReflect ¶ added in v0.1.0
func (x *PlanReply) ProtoReflect() protoreflect.Message
type PlanRequest ¶ added in v0.1.0
type PlanRequest struct { Location string `protobuf:"bytes,1,opt,name=location,proto3" json:"location,omitempty"` Daylight bool `protobuf:"varint,2,opt,name=daylight,proto3" json:"daylight,omitempty"` Wind *DataRange `protobuf:"bytes,3,opt,name=wind,proto3" json:"wind,omitempty"` WindGust *DataRange `protobuf:"bytes,5,opt,name=windGust,proto3" json:"windGust,omitempty"` Temperature *DataRange `protobuf:"bytes,6,opt,name=temperature,proto3" json:"temperature,omitempty"` Precipitation bool `protobuf:"varint,7,opt,name=precipitation,proto3" json:"precipitation,omitempty"` Units string `protobuf:"bytes,8,opt,name=units,proto3" json:"units,omitempty"` Duration int32 `protobuf:"varint,9,opt,name=duration,proto3" json:"duration,omitempty"` // contains filtered or unexported fields }
func (*PlanRequest) Descriptor
deprecated
added in
v0.1.0
func (*PlanRequest) Descriptor() ([]byte, []int)
Deprecated: Use PlanRequest.ProtoReflect.Descriptor instead.
func (*PlanRequest) GetDaylight ¶ added in v0.1.0
func (x *PlanRequest) GetDaylight() bool
func (*PlanRequest) GetDuration ¶ added in v0.1.0
func (x *PlanRequest) GetDuration() int32
func (*PlanRequest) GetLocation ¶ added in v0.1.0
func (x *PlanRequest) GetLocation() string
func (*PlanRequest) GetPrecipitation ¶ added in v0.1.0
func (x *PlanRequest) GetPrecipitation() bool
func (*PlanRequest) GetTemperature ¶ added in v0.1.0
func (x *PlanRequest) GetTemperature() *DataRange
func (*PlanRequest) GetUnits ¶ added in v0.1.0
func (x *PlanRequest) GetUnits() string
func (*PlanRequest) GetWind ¶ added in v0.1.0
func (x *PlanRequest) GetWind() *DataRange
func (*PlanRequest) GetWindGust ¶ added in v0.1.0
func (x *PlanRequest) GetWindGust() *DataRange
func (*PlanRequest) ProtoMessage ¶ added in v0.1.0
func (*PlanRequest) ProtoMessage()
func (*PlanRequest) ProtoReflect ¶ added in v0.1.0
func (x *PlanRequest) ProtoReflect() protoreflect.Message
func (*PlanRequest) Reset ¶ added in v0.1.0
func (x *PlanRequest) Reset()
func (*PlanRequest) String ¶ added in v0.1.0
func (x *PlanRequest) String() string
type UnimplementedWeatherServer ¶ added in v0.1.0
type UnimplementedWeatherServer struct { }
UnimplementedWeatherServer can be embedded to have forward compatible implementations.
func (*UnimplementedWeatherServer) Plan ¶ added in v0.1.0
func (*UnimplementedWeatherServer) Plan(context.Context, *PlanRequest) (*PlanReply, error)
func (*UnimplementedWeatherServer) Weather ¶ added in v0.1.0
func (*UnimplementedWeatherServer) Weather(context.Context, *WeatherRequest) (*WeatherReply, error)
type WeatherClient ¶
type WeatherClient interface { Weather(ctx context.Context, in *WeatherRequest, opts ...grpc.CallOption) (*WeatherReply, error) Plan(ctx context.Context, in *PlanRequest, opts ...grpc.CallOption) (*PlanReply, error) }
WeatherClient is the client API for Weather service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewWeatherClient ¶
func NewWeatherClient(cc grpc.ClientConnInterface) WeatherClient
type WeatherReply ¶
type WeatherReply struct { Location string `protobuf:"bytes,1,opt,name=location,proto3" json:"location,omitempty"` Latitude float64 `protobuf:"fixed64,2,opt,name=Latitude,proto3" json:"Latitude,omitempty"` Longitude float64 `protobuf:"fixed64,3,opt,name=Longitude,proto3" json:"Longitude,omitempty"` Currently *Currently `protobuf:"bytes,4,opt,name=currently,proto3" json:"currently,omitempty"` Forecast *Forecast `protobuf:"bytes,5,opt,name=forecast,proto3" json:"forecast,omitempty"` Alerts []*Alert `protobuf:"bytes,6,rep,name=alerts,proto3" json:"alerts,omitempty"` // contains filtered or unexported fields }
func (*WeatherReply) Descriptor
deprecated
func (*WeatherReply) Descriptor() ([]byte, []int)
Deprecated: Use WeatherReply.ProtoReflect.Descriptor instead.
func (*WeatherReply) GetAlerts ¶
func (x *WeatherReply) GetAlerts() []*Alert
func (*WeatherReply) GetCurrently ¶
func (x *WeatherReply) GetCurrently() *Currently
func (*WeatherReply) GetForecast ¶
func (x *WeatherReply) GetForecast() *Forecast
func (*WeatherReply) GetLatitude ¶
func (x *WeatherReply) GetLatitude() float64
func (*WeatherReply) GetLocation ¶
func (x *WeatherReply) GetLocation() string
func (*WeatherReply) GetLongitude ¶
func (x *WeatherReply) GetLongitude() float64
func (*WeatherReply) ProtoMessage ¶
func (*WeatherReply) ProtoMessage()
func (*WeatherReply) ProtoReflect ¶ added in v0.1.0
func (x *WeatherReply) ProtoReflect() protoreflect.Message
func (*WeatherReply) Reset ¶
func (x *WeatherReply) Reset()
func (*WeatherReply) String ¶
func (x *WeatherReply) String() string
type WeatherRequest ¶
type WeatherRequest struct { Time int64 `protobuf:"varint,1,opt,name=time,proto3" json:"time,omitempty"` Location string `protobuf:"bytes,2,opt,name=location,proto3" json:"location,omitempty"` Units string `protobuf:"bytes,3,opt,name=units,proto3" json:"units,omitempty"` // contains filtered or unexported fields }
func (*WeatherRequest) Descriptor
deprecated
func (*WeatherRequest) Descriptor() ([]byte, []int)
Deprecated: Use WeatherRequest.ProtoReflect.Descriptor instead.
func (*WeatherRequest) GetLocation ¶
func (x *WeatherRequest) GetLocation() string
func (*WeatherRequest) GetTime ¶
func (x *WeatherRequest) GetTime() int64
func (*WeatherRequest) GetUnits ¶
func (x *WeatherRequest) GetUnits() string
func (*WeatherRequest) ProtoMessage ¶
func (*WeatherRequest) ProtoMessage()
func (*WeatherRequest) ProtoReflect ¶ added in v0.1.0
func (x *WeatherRequest) ProtoReflect() protoreflect.Message
func (*WeatherRequest) Reset ¶
func (x *WeatherRequest) Reset()
func (*WeatherRequest) String ¶
func (x *WeatherRequest) String() string
type WeatherServer ¶
type WeatherServer interface { Weather(context.Context, *WeatherRequest) (*WeatherReply, error) Plan(context.Context, *PlanRequest) (*PlanReply, error) }
WeatherServer is the server API for Weather service.
Click to show internal directories.
Click to hide internal directories.