Documentation
¶
Index ¶
- func RegisterWeatherServiceServer(s *grpc.Server, srv WeatherServiceServer)
- type LocationAndDate
- func (*LocationAndDate) Descriptor() ([]byte, []int)
- func (m *LocationAndDate) GetDate() string
- func (m *LocationAndDate) GetLocation() string
- func (*LocationAndDate) ProtoMessage()
- func (m *LocationAndDate) Reset()
- func (m *LocationAndDate) String() string
- func (m *LocationAndDate) XXX_DiscardUnknown()
- func (m *LocationAndDate) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *LocationAndDate) XXX_Merge(src proto.Message)
- func (m *LocationAndDate) XXX_Size() int
- func (m *LocationAndDate) XXX_Unmarshal(b []byte) error
- type Weather
- func (*Weather) Descriptor() ([]byte, []int)
- func (m *Weather) GetData() map[string]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 WeatherServiceClient
- type WeatherServiceServer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterWeatherServiceServer ¶
func RegisterWeatherServiceServer(s *grpc.Server, srv WeatherServiceServer)
Types ¶
type LocationAndDate ¶
type LocationAndDate struct { Location string `protobuf:"bytes,1,opt,name=location,proto3" json:"location,omitempty"` Date string `protobuf:"bytes,2,opt,name=date,proto3" json:"date,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
The message containing the location and date
func (*LocationAndDate) Descriptor ¶
func (*LocationAndDate) Descriptor() ([]byte, []int)
func (*LocationAndDate) GetDate ¶
func (m *LocationAndDate) GetDate() string
func (*LocationAndDate) GetLocation ¶
func (m *LocationAndDate) GetLocation() string
func (*LocationAndDate) ProtoMessage ¶
func (*LocationAndDate) ProtoMessage()
func (*LocationAndDate) Reset ¶
func (m *LocationAndDate) Reset()
func (*LocationAndDate) String ¶
func (m *LocationAndDate) String() string
func (*LocationAndDate) XXX_DiscardUnknown ¶
func (m *LocationAndDate) XXX_DiscardUnknown()
func (*LocationAndDate) XXX_Marshal ¶
func (m *LocationAndDate) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*LocationAndDate) XXX_Merge ¶
func (m *LocationAndDate) XXX_Merge(src proto.Message)
func (*LocationAndDate) XXX_Size ¶
func (m *LocationAndDate) XXX_Size() int
func (*LocationAndDate) XXX_Unmarshal ¶
func (m *LocationAndDate) XXX_Unmarshal(b []byte) error
type Weather ¶
type Weather struct { Data map[string]string `` /* 149-byte string literal not displayed */ XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
The response message containing weather data
func (*Weather) Descriptor ¶
func (*Weather) ProtoMessage ¶
func (*Weather) ProtoMessage()
func (*Weather) XXX_DiscardUnknown ¶
func (m *Weather) XXX_DiscardUnknown()
func (*Weather) XXX_Marshal ¶
func (*Weather) XXX_Unmarshal ¶
type WeatherServiceClient ¶
type WeatherServiceClient interface { // Retrieve the weather GetWeather(ctx context.Context, in *LocationAndDate, opts ...grpc.CallOption) (*Weather, error) }
WeatherServiceClient is the client API for WeatherService service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewWeatherServiceClient ¶
func NewWeatherServiceClient(cc *grpc.ClientConn) WeatherServiceClient
type WeatherServiceServer ¶
type WeatherServiceServer interface { // Retrieve the weather GetWeather(context.Context, *LocationAndDate) (*Weather, error) }
WeatherServiceServer is the server API for WeatherService service.
Click to show internal directories.
Click to hide internal directories.