Documentation ¶
Overview ¶
Package search is a generated protocol buffer package.
It is generated from these files:
services/search/proto/search.proto
It has these top-level messages:
NearbyRequest SearchResult
Index ¶
- func RegisterSearchServer(s *grpc.Server, srv SearchServer)
- type NearbyRequest
- func (*NearbyRequest) Descriptor() ([]byte, []int)
- func (m *NearbyRequest) GetInDate() string
- func (m *NearbyRequest) GetLat() float32
- func (m *NearbyRequest) GetLon() float32
- func (m *NearbyRequest) GetOutDate() string
- func (*NearbyRequest) ProtoMessage()
- func (m *NearbyRequest) Reset()
- func (m *NearbyRequest) String() string
- type SearchClient
- type SearchResult
- type SearchServer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterSearchServer ¶
func RegisterSearchServer(s *grpc.Server, srv SearchServer)
Types ¶
type NearbyRequest ¶
type NearbyRequest struct { Lat float32 `protobuf:"fixed32,1,opt,name=lat" json:"lat,omitempty"` Lon float32 `protobuf:"fixed32,2,opt,name=lon" json:"lon,omitempty"` InDate string `protobuf:"bytes,3,opt,name=inDate" json:"inDate,omitempty"` OutDate string `protobuf:"bytes,4,opt,name=outDate" json:"outDate,omitempty"` }
func (*NearbyRequest) Descriptor ¶
func (*NearbyRequest) Descriptor() ([]byte, []int)
func (*NearbyRequest) GetInDate ¶
func (m *NearbyRequest) GetInDate() string
func (*NearbyRequest) GetLat ¶
func (m *NearbyRequest) GetLat() float32
func (*NearbyRequest) GetLon ¶
func (m *NearbyRequest) GetLon() float32
func (*NearbyRequest) GetOutDate ¶
func (m *NearbyRequest) GetOutDate() string
func (*NearbyRequest) ProtoMessage ¶
func (*NearbyRequest) ProtoMessage()
func (*NearbyRequest) Reset ¶
func (m *NearbyRequest) Reset()
func (*NearbyRequest) String ¶
func (m *NearbyRequest) String() string
type SearchClient ¶
type SearchClient interface {
Nearby(ctx context.Context, in *NearbyRequest, opts ...grpc.CallOption) (*SearchResult, error)
}
func NewSearchClient ¶
func NewSearchClient(cc *grpc.ClientConn) SearchClient
type SearchResult ¶
type SearchResult struct {
HotelIds []string `protobuf:"bytes,1,rep,name=hotelIds" json:"hotelIds,omitempty"`
}
func (*SearchResult) Descriptor ¶
func (*SearchResult) Descriptor() ([]byte, []int)
func (*SearchResult) GetHotelIds ¶
func (m *SearchResult) GetHotelIds() []string
func (*SearchResult) ProtoMessage ¶
func (*SearchResult) ProtoMessage()
func (*SearchResult) Reset ¶
func (m *SearchResult) Reset()
func (*SearchResult) String ¶
func (m *SearchResult) String() string
type SearchServer ¶
type SearchServer interface {
Nearby(context.Context, *NearbyRequest) (*SearchResult, error)
}
Click to show internal directories.
Click to hide internal directories.