Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DBModel ¶
type Flight ¶
type Flight struct { DBModel FlightNumber string `gorm:"size:255" json:"flight_number"` Source string `gorm:"size:255" json:"source"` Destination string `gorm:"size:255" json:"destination"` DepartureDate time.Time `json:"departure_date"` FlightDuration int `json:"flight_duration"` ArrivalDate time.Time `json:"arrival_date"` AirlineName string `gorm:"size:255" json:"airline_name"` AircraftName string `gorm:"size:255" json:"aircraft_name"` FareClass FareClass `gorm:"embedded"` Tax int64 `json:"tax"` FlightClass FlightClass `gorm:"size:255" json:"flight_class"` RemainingSeat int `json:"remaining_seat"` }
type FlightClass ¶
type FlightClass string
const ( Economy FlightClass = "Economy" Business FlightClass = "Business" FirstClass FlightClass = "First Class" )
Click to show internal directories.
Click to hide internal directories.