Documentation
¶
Index ¶
- func RegisterWeatherPredictionServer(s *grpc.Server, srv WeatherPredictionServer)
- type SpaceTimeLocation
- func (*SpaceTimeLocation) Descriptor() ([]byte, []int)
- func (m *SpaceTimeLocation) GetLocation() string
- func (m *SpaceTimeLocation) GetTimestamp() int64
- func (m *SpaceTimeLocation) GetUserId() int64
- func (*SpaceTimeLocation) ProtoMessage()
- func (m *SpaceTimeLocation) Reset()
- func (m *SpaceTimeLocation) String() string
- func (m *SpaceTimeLocation) XXX_DiscardUnknown()
- func (m *SpaceTimeLocation) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *SpaceTimeLocation) XXX_Merge(src proto.Message)
- func (m *SpaceTimeLocation) XXX_Size() int
- func (m *SpaceTimeLocation) XXX_Unmarshal(b []byte) error
- type Weather
- func (*Weather) Descriptor() ([]byte, []int)
- func (m *Weather) GetWeather() string
- func (*Weather) ProtoMessage()
- func (m *Weather) Reset()
- func (m *Weather) String() string
- func (m *Weather) XXX_DiscardUnknown()
- func (m *Weather) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Weather) XXX_Merge(src proto.Message)
- func (m *Weather) XXX_Size() int
- func (m *Weather) XXX_Unmarshal(b []byte) error
- type WeatherPredictionClient
- type WeatherPredictionServer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterWeatherPredictionServer ¶
func RegisterWeatherPredictionServer(s *grpc.Server, srv WeatherPredictionServer)
Types ¶
type SpaceTimeLocation ¶
type SpaceTimeLocation struct { Location string `protobuf:"bytes,1,opt,name=location,proto3" json:"location,omitempty"` Timestamp int64 `protobuf:"varint,2,opt,name=timestamp,proto3" json:"timestamp,omitempty"` UserId int64 `protobuf:"varint,3,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*SpaceTimeLocation) Descriptor ¶
func (*SpaceTimeLocation) Descriptor() ([]byte, []int)
func (*SpaceTimeLocation) GetLocation ¶
func (m *SpaceTimeLocation) GetLocation() string
func (*SpaceTimeLocation) GetTimestamp ¶
func (m *SpaceTimeLocation) GetTimestamp() int64
func (*SpaceTimeLocation) GetUserId ¶
func (m *SpaceTimeLocation) GetUserId() int64
func (*SpaceTimeLocation) ProtoMessage ¶
func (*SpaceTimeLocation) ProtoMessage()
func (*SpaceTimeLocation) Reset ¶
func (m *SpaceTimeLocation) Reset()
func (*SpaceTimeLocation) String ¶
func (m *SpaceTimeLocation) String() string
func (*SpaceTimeLocation) XXX_DiscardUnknown ¶
func (m *SpaceTimeLocation) XXX_DiscardUnknown()
func (*SpaceTimeLocation) XXX_Marshal ¶
func (m *SpaceTimeLocation) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*SpaceTimeLocation) XXX_Merge ¶
func (m *SpaceTimeLocation) XXX_Merge(src proto.Message)
func (*SpaceTimeLocation) XXX_Size ¶
func (m *SpaceTimeLocation) XXX_Size() int
func (*SpaceTimeLocation) XXX_Unmarshal ¶
func (m *SpaceTimeLocation) XXX_Unmarshal(b []byte) error
type Weather ¶
type Weather struct { Weather string `protobuf:"bytes,1,opt,name=weather,proto3" json:"weather,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Weather) Descriptor ¶
func (*Weather) GetWeather ¶
func (*Weather) ProtoMessage ¶
func (*Weather) ProtoMessage()
func (*Weather) XXX_DiscardUnknown ¶
func (m *Weather) XXX_DiscardUnknown()
func (*Weather) XXX_Marshal ¶
func (*Weather) XXX_Unmarshal ¶
type WeatherPredictionClient ¶
type WeatherPredictionClient interface {
Predict(ctx context.Context, in *SpaceTimeLocation, opts ...grpc.CallOption) (*Weather, error)
}
WeatherPredictionClient is the client API for WeatherPrediction service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewWeatherPredictionClient ¶
func NewWeatherPredictionClient(cc *grpc.ClientConn) WeatherPredictionClient
type WeatherPredictionServer ¶
type WeatherPredictionServer interface {
Predict(context.Context, *SpaceTimeLocation) (*Weather, error)
}
WeatherPredictionServer is the server API for WeatherPrediction service.
Click to show internal directories.
Click to hide internal directories.