Documentation ¶
Overview ¶
Package hotel is a generated protocol buffer package.
It is generated from these files:
github.com/micro/micro/examples/booking/api/hotel/proto/hotel.proto
It has these top-level messages:
Request Response
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterHotelHandler ¶
func RegisterHotelHandler(s server.Server, hdlr HotelHandler, opts ...server.HandlerOption)
Types ¶
type Hotel ¶
type Hotel struct {
HotelHandler
}
type HotelClient ¶
type HotelClient interface {
Rates(ctx context.Context, in *Request, opts ...client.CallOption) (*Response, error)
}
func NewHotelClient ¶
func NewHotelClient(serviceName string, c client.Client) HotelClient
type HotelHandler ¶
type Request ¶
type Request struct { InDate string `protobuf:"bytes,1,opt,name=inDate" json:"inDate,omitempty"` OutDate string `protobuf:"bytes,2,opt,name=outDate" json:"outDate,omitempty"` }
func (*Request) Descriptor ¶
func (*Request) ProtoMessage ¶
func (*Request) ProtoMessage()
type Response ¶
type Response struct { Hotels []*profile.Hotel `protobuf:"bytes,1,rep,name=hotels" json:"hotels,omitempty"` RatePlans []*rate.RatePlan `protobuf:"bytes,2,rep,name=ratePlans" json:"ratePlans,omitempty"` }
func (*Response) Descriptor ¶
func (*Response) GetRatePlans ¶
func (*Response) ProtoMessage ¶
func (*Response) ProtoMessage()
Click to show internal directories.
Click to hide internal directories.