weather

package
v0.0.0-...-14e6c00 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 23, 2018 License: MIT Imports: 5 Imported by: 0

Documentation

Index

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

func (*Weather) GetWeather

func (m *Weather) GetWeather() string

func (*Weather) ProtoMessage

func (*Weather) ProtoMessage()

func (*Weather) Reset

func (m *Weather) Reset()

func (*Weather) String

func (m *Weather) String() string

func (*Weather) XXX_DiscardUnknown

func (m *Weather) XXX_DiscardUnknown()

func (*Weather) XXX_Marshal

func (m *Weather) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Weather) XXX_Merge

func (m *Weather) XXX_Merge(src proto.Message)

func (*Weather) XXX_Size

func (m *Weather) XXX_Size() int

func (*Weather) XXX_Unmarshal

func (m *Weather) XXX_Unmarshal(b []byte) error

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.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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