Documentation ¶
Overview ¶
Package geo is a generated protocol buffer package.
It is generated from these files:
github.com/xxdawn/micro/examples/booking/srv/geo/proto/geo.proto
It has these top-level messages:
Request Result
Package geo is a generated protocol buffer package.
It is generated from these files:
github.com/xxdawn/micro/examples/booking/srv/geo/proto/geo.proto
It has these top-level messages:
Request Result
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterGeoHandler ¶
func RegisterGeoHandler(s server.Server, hdlr GeoHandler, opts ...server.HandlerOption)
func RegisterGeoServer ¶
Types ¶
type GeoClient ¶
type GeoClient interface { // Finds the hotels contained nearby the current lat/lon. Nearby(ctx context.Context, in *Request, opts ...grpc.CallOption) (*Result, error) }
func NewGeoClient ¶
func NewGeoClient(cc *grpc.ClientConn) GeoClient
type GeoHandler ¶
type GeoService ¶
type GeoService interface { // Finds the hotels contained nearby the current lat/lon. Nearby(ctx context.Context, in *Request, opts ...client.CallOption) (*Result, error) }
func NewGeoService ¶
func NewGeoService(serviceName string, c client.Client) GeoService
type Request ¶
type Request struct { Lat float32 `protobuf:"fixed32,1,opt,name=lat" json:"lat,omitempty"` Lon float32 `protobuf:"fixed32,2,opt,name=lon" json:"lon,omitempty"` }
The latitude and longitude of the current location.
func (*Request) Descriptor ¶
func (*Request) ProtoMessage ¶
func (*Request) ProtoMessage()
type Result ¶
type Result struct {
HotelIds []string `protobuf:"bytes,1,rep,name=hotelIds" json:"hotelIds,omitempty"`
}
func (*Result) Descriptor ¶
func (*Result) GetHotelIds ¶
func (*Result) ProtoMessage ¶
func (*Result) ProtoMessage()
Click to show internal directories.
Click to hide internal directories.