Documentation ¶
Index ¶
- Variables
- type Airport
- func (*Airport) Descriptor() ([]byte, []int)deprecated
- func (x *Airport) GetDatetime() string
- func (x *Airport) GetIataCode() string
- func (x *Airport) GetTerminal() string
- func (*Airport) ProtoMessage()
- func (x *Airport) ProtoReflect() protoreflect.Message
- func (x *Airport) Reset()
- func (x *Airport) String() string
- type ArrayOfOffers
- type Offer
- func (*Offer) Descriptor() ([]byte, []int)deprecated
- func (x *Offer) GetAvailableSeats() int32
- func (x *Offer) GetCurrency() string
- func (x *Offer) GetId() string
- func (x *Offer) GetOptions() []*Option
- func (x *Offer) GetPrice() float64
- func (*Offer) ProtoMessage()
- func (x *Offer) ProtoReflect() protoreflect.Message
- func (x *Offer) Reset()
- func (x *Offer) String() string
- type Option
- type Route
- func (*Route) Descriptor() ([]byte, []int)deprecated
- func (x *Route) GetArrival() *Airport
- func (x *Route) GetCarrier() string
- func (x *Route) GetCarrierCode() string
- func (x *Route) GetDeparture() *Airport
- func (x *Route) GetDuration() string
- func (x *Route) GetNumberOfStops() int32
- func (x *Route) GetOperatedBy() string
- func (*Route) ProtoMessage()
- func (x *Route) ProtoReflect() protoreflect.Message
- func (x *Route) Reset()
- func (x *Route) String() string
- type SearchReq
- func (*SearchReq) Descriptor() ([]byte, []int)deprecated
- func (x *SearchReq) GetAdults() int32
- func (x *SearchReq) GetChildren() int32
- func (x *SearchReq) GetLatitude() float64
- func (x *SearchReq) GetLongitude() float64
- func (x *SearchReq) GetOneWay() bool
- func (x *SearchReq) GetTravelClass() string
- func (*SearchReq) ProtoMessage()
- func (x *SearchReq) ProtoReflect() protoreflect.Message
- func (x *SearchReq) Reset()
- func (x *SearchReq) String() string
- type SearchRes
- func (*SearchRes) Descriptor() ([]byte, []int)deprecated
- func (x *SearchRes) GetData() *ArrayOfOffers
- func (m *SearchRes) GetResult() isSearchRes_Result
- func (*SearchRes) ProtoMessage()
- func (x *SearchRes) ProtoReflect() protoreflect.Message
- func (x *SearchRes) Reset()
- func (x *SearchRes) String() string
- type SearchRes_Data
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // optional string select = 51234; E_Select = &file_airline_proto_extTypes[0] // optional string query = 51235; E_Query = &file_airline_proto_extTypes[1] )
Extension fields to descriptorpb.FieldOptions.
View Source
var File_airline_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type Airport ¶
type Airport struct { IataCode string `protobuf:"bytes,1,opt,name=iata_code,json=iataCode,proto3" json:"iata_code,omitempty"` Terminal string `protobuf:"bytes,2,opt,name=terminal,proto3" json:"terminal,omitempty"` Datetime string `protobuf:"bytes,3,opt,name=datetime,proto3" json:"datetime,omitempty"` // contains filtered or unexported fields }
func (*Airport) Descriptor
deprecated
func (*Airport) GetDatetime ¶
func (*Airport) GetIataCode ¶
func (*Airport) GetTerminal ¶
func (*Airport) ProtoMessage ¶
func (*Airport) ProtoMessage()
func (*Airport) ProtoReflect ¶
func (x *Airport) ProtoReflect() protoreflect.Message
type ArrayOfOffers ¶
type ArrayOfOffers struct { Offers []*Offer `protobuf:"bytes,1,rep,name=offers,proto3" json:"offers,omitempty"` // contains filtered or unexported fields }
func (*ArrayOfOffers) Descriptor
deprecated
func (*ArrayOfOffers) Descriptor() ([]byte, []int)
Deprecated: Use ArrayOfOffers.ProtoReflect.Descriptor instead.
func (*ArrayOfOffers) GetOffers ¶
func (x *ArrayOfOffers) GetOffers() []*Offer
func (*ArrayOfOffers) ProtoMessage ¶
func (*ArrayOfOffers) ProtoMessage()
func (*ArrayOfOffers) ProtoReflect ¶
func (x *ArrayOfOffers) ProtoReflect() protoreflect.Message
func (*ArrayOfOffers) Reset ¶
func (x *ArrayOfOffers) Reset()
func (*ArrayOfOffers) String ¶
func (x *ArrayOfOffers) String() string
type Offer ¶
type Offer struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` Options []*Option `protobuf:"bytes,2,rep,name=options,proto3" json:"options,omitempty"` Price float64 `protobuf:"fixed64,3,opt,name=price,proto3" json:"price,omitempty"` Currency string `protobuf:"bytes,4,opt,name=currency,proto3" json:"currency,omitempty"` AvailableSeats int32 `protobuf:"varint,5,opt,name=available_seats,json=availableSeats,proto3" json:"available_seats,omitempty"` // contains filtered or unexported fields }
func (*Offer) Descriptor
deprecated
func (*Offer) GetAvailableSeats ¶
func (*Offer) GetCurrency ¶
func (*Offer) GetOptions ¶
func (*Offer) ProtoMessage ¶
func (*Offer) ProtoMessage()
func (*Offer) ProtoReflect ¶
func (x *Offer) ProtoReflect() protoreflect.Message
type Option ¶
type Option struct { Duration string `protobuf:"bytes,1,opt,name=duration,proto3" json:"duration,omitempty"` Routes []*Route `protobuf:"bytes,2,rep,name=routes,proto3" json:"routes,omitempty"` // contains filtered or unexported fields }
func (*Option) Descriptor
deprecated
func (*Option) GetDuration ¶
func (*Option) ProtoMessage ¶
func (*Option) ProtoMessage()
func (*Option) ProtoReflect ¶
func (x *Option) ProtoReflect() protoreflect.Message
type Route ¶
type Route struct { Departure *Airport `protobuf:"bytes,1,opt,name=departure,proto3" json:"departure,omitempty"` Arrival *Airport `protobuf:"bytes,2,opt,name=arrival,proto3" json:"arrival,omitempty"` CarrierCode string `protobuf:"bytes,3,opt,name=carrier_code,json=carrierCode,proto3" json:"carrier_code,omitempty"` Carrier string `protobuf:"bytes,4,opt,name=carrier,proto3" json:"carrier,omitempty"` OperatedBy string `protobuf:"bytes,5,opt,name=operated_by,json=operatedBy,proto3" json:"operated_by,omitempty"` Duration string `protobuf:"bytes,6,opt,name=duration,proto3" json:"duration,omitempty"` NumberOfStops int32 `protobuf:"varint,7,opt,name=number_of_stops,json=numberOfStops,proto3" json:"number_of_stops,omitempty"` // contains filtered or unexported fields }
func (*Route) Descriptor
deprecated
func (*Route) GetArrival ¶
func (*Route) GetCarrier ¶
func (*Route) GetCarrierCode ¶
func (*Route) GetDeparture ¶
func (*Route) GetDuration ¶
func (*Route) GetNumberOfStops ¶
func (*Route) GetOperatedBy ¶
func (*Route) ProtoMessage ¶
func (*Route) ProtoMessage()
func (*Route) ProtoReflect ¶
func (x *Route) ProtoReflect() protoreflect.Message
type SearchReq ¶
type SearchReq struct { Latitude float64 `protobuf:"fixed64,2,opt,name=latitude,proto3" json:"latitude,omitempty"` Longitude float64 `protobuf:"fixed64,3,opt,name=longitude,proto3" json:"longitude,omitempty"` Adults int32 `protobuf:"varint,4,opt,name=adults,proto3" json:"adults,omitempty"` Children *int32 `protobuf:"varint,5,opt,name=children,proto3,oneof" json:"children,omitempty"` TravelClass string `protobuf:"bytes,6,opt,name=travel_class,json=travelClass,proto3" json:"travel_class,omitempty"` OneWay bool `protobuf:"varint,7,opt,name=one_way,json=oneWay,proto3" json:"one_way,omitempty"` // contains filtered or unexported fields }
func (*SearchReq) Descriptor
deprecated
func (*SearchReq) GetChildren ¶
func (*SearchReq) GetLatitude ¶
func (*SearchReq) GetLongitude ¶
func (*SearchReq) GetTravelClass ¶
func (*SearchReq) ProtoMessage ¶
func (*SearchReq) ProtoMessage()
func (*SearchReq) ProtoReflect ¶
func (x *SearchReq) ProtoReflect() protoreflect.Message
type SearchRes ¶
type SearchRes struct { // Types that are assignable to Result: // *SearchRes_Data Result isSearchRes_Result `protobuf_oneof:"result"` // contains filtered or unexported fields }
func (*SearchRes) Descriptor
deprecated
func (*SearchRes) GetData ¶
func (x *SearchRes) GetData() *ArrayOfOffers
func (*SearchRes) ProtoMessage ¶
func (*SearchRes) ProtoMessage()
func (*SearchRes) ProtoReflect ¶
func (x *SearchRes) ProtoReflect() protoreflect.Message
type SearchRes_Data ¶
type SearchRes_Data struct {
Data *ArrayOfOffers `protobuf:"bytes,1,opt,name=data,proto3,oneof"`
}
Click to show internal directories.
Click to hide internal directories.