search

package
v0.0.0-...-56d2f63 Latest Latest
Warning

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

Go to latest
Published: Feb 21, 2021 License: MIT Imports: 5 Imported by: 0

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

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)
}

Jump to

Keyboard shortcuts

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