weatherpb

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: 9 Imported by: 0

Documentation

Index

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) Descriptor() ([]byte, []int)

Deprecated: Use Alert.ProtoReflect.Descriptor instead.

func (*Alert) GetMessage

func (x *Alert) GetMessage() string

func (*Alert) GetSeverity

func (x *Alert) GetSeverity() string

func (*Alert) GetUri

func (x *Alert) GetUri() string

func (*Alert) ProtoMessage

func (*Alert) ProtoMessage()

func (*Alert) ProtoReflect added in v0.1.0

func (x *Alert) ProtoReflect() protoreflect.Message

func (*Alert) Reset

func (x *Alert) Reset()

func (*Alert) String

func (x *Alert) String() string

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) Descriptor() ([]byte, []int)

Deprecated: Use Currently.ProtoReflect.Descriptor instead.

func (*Currently) GetData

func (x *Currently) GetData() *Data

func (*Currently) GetDescription

func (x *Currently) GetDescription() string

func (*Currently) GetSummary

func (x *Currently) GetSummary() string

func (*Currently) ProtoMessage

func (*Currently) ProtoMessage()

func (*Currently) ProtoReflect added in v0.1.0

func (x *Currently) ProtoReflect() protoreflect.Message

func (*Currently) Reset

func (x *Currently) Reset()

func (*Currently) String

func (x *Currently) String() string

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) Descriptor() ([]byte, []int)

Deprecated: Use Data.ProtoReflect.Descriptor instead.

func (*Data) GetDewPoint

func (x *Data) GetDewPoint() string

func (*Data) GetFeelsLike

func (x *Data) GetFeelsLike() string

func (*Data) GetHumidity

func (x *Data) GetHumidity() string

func (*Data) GetIcon

func (x *Data) GetIcon() string

func (*Data) GetPrecipitationProbability

func (x *Data) GetPrecipitationProbability() string

func (*Data) GetPrecipitationType

func (x *Data) GetPrecipitationType() string

func (*Data) GetPressure

func (x *Data) GetPressure() string

func (*Data) GetTemperature

func (x *Data) GetTemperature() string

func (*Data) GetTemperatureHigh

func (x *Data) GetTemperatureHigh() string

func (*Data) GetTemperatureLow

func (x *Data) GetTemperatureLow() string

func (*Data) GetTimestamp

func (x *Data) GetTimestamp() int64

func (*Data) GetWind

func (x *Data) GetWind() string

func (*Data) ProtoMessage

func (*Data) ProtoMessage()

func (*Data) ProtoReflect added in v0.1.0

func (x *Data) ProtoReflect() protoreflect.Message

func (*Data) Reset

func (x *Data) Reset()

func (*Data) String

func (x *Data) String() string

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) Descriptor() ([]byte, []int)

Deprecated: Use DataRange.ProtoReflect.Descriptor instead.

func (*DataRange) GetMax added in v0.1.0

func (x *DataRange) GetMax() float64

func (*DataRange) GetMin added in v0.1.0

func (x *DataRange) GetMin() float64

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

func (*DataRange) Reset added in v0.1.0

func (x *DataRange) Reset()

func (*DataRange) String added in v0.1.0

func (x *DataRange) String() string

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) Descriptor() ([]byte, []int)

Deprecated: Use Day.ProtoReflect.Descriptor instead.

func (*Day) GetData

func (x *Day) GetData() *Data

func (*Day) GetSummary

func (x *Day) GetSummary() string

func (*Day) GetWeekday

func (x *Day) GetWeekday() string

func (*Day) ProtoMessage

func (*Day) ProtoMessage()

func (*Day) ProtoReflect added in v0.1.0

func (x *Day) ProtoReflect() protoreflect.Message

func (*Day) Reset

func (x *Day) Reset()

func (*Day) String

func (x *Day) String() string

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) Descriptor() ([]byte, []int)

Deprecated: Use Forecast.ProtoReflect.Descriptor instead.

func (*Forecast) GetDays

func (x *Forecast) GetDays() []*Day

func (*Forecast) GetSummary

func (x *Forecast) GetSummary() string

func (*Forecast) ProtoMessage

func (*Forecast) ProtoMessage()

func (*Forecast) ProtoReflect added in v0.1.0

func (x *Forecast) ProtoReflect() protoreflect.Message

func (*Forecast) Reset

func (x *Forecast) Reset()

func (*Forecast) String

func (x *Forecast) String() string

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) Descriptor() ([]byte, []int)

Deprecated: Use Hour.ProtoReflect.Descriptor instead.

func (*Hour) GetData added in v0.1.0

func (x *Hour) GetData() *Data

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

func (*Hour) Reset added in v0.1.0

func (x *Hour) Reset()

func (*Hour) String added in v0.1.0

func (x *Hour) String() string

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) Descriptor() ([]byte, []int)

Deprecated: Use PlanReply.ProtoReflect.Descriptor instead.

func (*PlanReply) GetGeneratedAt added in v0.1.0

func (x *PlanReply) GetGeneratedAt() int64

func (*PlanReply) GetHours added in v0.1.0

func (x *PlanReply) GetHours() []*Hour

func (*PlanReply) GetLatitude added in v0.1.0

func (x *PlanReply) GetLatitude() float64

func (*PlanReply) GetLocation added in v0.1.0

func (x *PlanReply) GetLocation() string

func (*PlanReply) GetLongitude added in v0.1.0

func (x *PlanReply) GetLongitude() float64

func (*PlanReply) GetUnits added in v0.1.0

func (x *PlanReply) GetUnits() string

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

func (*PlanReply) Reset added in v0.1.0

func (x *PlanReply) Reset()

func (*PlanReply) String added in v0.1.0

func (x *PlanReply) String() string

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) Weather added in v0.1.0

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.

Jump to

Keyboard shortcuts

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