Documentation ¶
Overview ¶
Package rate is a generated protocol buffer package.
It is generated from these files:
services/rate/proto/rate.proto
It has these top-level messages:
Request Result RatePlan RoomType
Index ¶
- func RegisterRateServer(s *grpc.Server, srv RateServer)
- type RateClient
- type RatePlan
- func (*RatePlan) Descriptor() ([]byte, []int)
- func (m *RatePlan) GetCode() string
- func (m *RatePlan) GetHotelId() string
- func (m *RatePlan) GetInDate() string
- func (m *RatePlan) GetOutDate() string
- func (m *RatePlan) GetRoomType() *RoomType
- func (*RatePlan) ProtoMessage()
- func (m *RatePlan) Reset()
- func (m *RatePlan) String() string
- type RateServer
- type Request
- type Result
- type RoomType
- func (*RoomType) Descriptor() ([]byte, []int)
- func (m *RoomType) GetBookableRate() float64
- func (m *RoomType) GetCode() string
- func (m *RoomType) GetCurrency() string
- func (m *RoomType) GetRoomDescription() string
- func (m *RoomType) GetTotalRate() float64
- func (m *RoomType) GetTotalRateInclusive() float64
- func (*RoomType) ProtoMessage()
- func (m *RoomType) Reset()
- func (m *RoomType) String() string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterRateServer ¶
func RegisterRateServer(s *grpc.Server, srv RateServer)
Types ¶
type RateClient ¶
type RateClient interface { // GetRates returns rate codes for hotels for a given date range GetRates(ctx context.Context, in *Request, opts ...grpc.CallOption) (*Result, error) }
func NewRateClient ¶
func NewRateClient(cc *grpc.ClientConn) RateClient
type RatePlan ¶
type RatePlan struct { HotelId string `protobuf:"bytes,1,opt,name=hotelId" bson:"hotelId,omitempty"` Code string `protobuf:"bytes,2,opt,name=code" bson:"code,omitempty"` InDate string `protobuf:"bytes,3,opt,name=inDate" bson:"inDate,omitempty"` OutDate string `protobuf:"bytes,4,opt,name=outDate" bson:"outDate,omitempty"` RoomType *RoomType `protobuf:"bytes,5,opt,name=roomType" bson:"roomType,omitempty"` }
func (*RatePlan) Descriptor ¶
func (*RatePlan) GetHotelId ¶
func (*RatePlan) GetOutDate ¶
func (*RatePlan) GetRoomType ¶
func (*RatePlan) ProtoMessage ¶
func (*RatePlan) ProtoMessage()
type RateServer ¶
type Request ¶
type Request struct { HotelIds []string `protobuf:"bytes,1,rep,name=hotelIds" json:"hotelIds,omitempty"` InDate string `protobuf:"bytes,2,opt,name=inDate" json:"inDate,omitempty"` OutDate string `protobuf:"bytes,3,opt,name=outDate" json:"outDate,omitempty"` }
func (*Request) Descriptor ¶
func (*Request) GetHotelIds ¶
func (*Request) GetOutDate ¶
func (*Request) ProtoMessage ¶
func (*Request) ProtoMessage()
type Result ¶
type Result struct {
RatePlans []*RatePlan `protobuf:"bytes,1,rep,name=ratePlans" bson:"ratePlans,omitempty"`
}
func (*Result) Descriptor ¶
func (*Result) GetRatePlans ¶
func (*Result) ProtoMessage ¶
func (*Result) ProtoMessage()
type RoomType ¶
type RoomType struct { BookableRate float64 `protobuf:"fixed64,1,opt,name=bookableRate" bson:"bookableRate,omitempty"` TotalRate float64 `protobuf:"fixed64,2,opt,name=totalRate" bson:"totalRate,omitempty"` TotalRateInclusive float64 `protobuf:"fixed64,3,opt,name=totalRateInclusive" bson:"totalRateInclusive,omitempty"` Code string `protobuf:"bytes,4,opt,name=code" bson:"code,omitempty"` Currency string `protobuf:"bytes,5,opt,name=currency" bson:"currency,omitempty"` RoomDescription string `protobuf:"bytes,6,opt,name=roomDescription" bson:"roomDescription,omitempty"` }
func (*RoomType) Descriptor ¶
func (*RoomType) GetBookableRate ¶
func (*RoomType) GetCurrency ¶
func (*RoomType) GetRoomDescription ¶
func (*RoomType) GetTotalRate ¶
func (*RoomType) GetTotalRateInclusive ¶
func (*RoomType) ProtoMessage ¶
func (*RoomType) ProtoMessage()
Click to show internal directories.
Click to hide internal directories.