Documentation ¶
Index ¶
- type FlightService
- func (s *FlightService) DecreaseFlightCapacity(id uuid.UUID, seats int) error
- func (s *FlightService) GenerateRandomFlightsForNext30Days() error
- func (s *FlightService) GetFlightByID(flight *models.Flight) error
- func (s *FlightService) GetFlights(flightReq *models.FlightSearchRequest, flights *[]models.Flight) error
- func (s *FlightService) GetLastFlightDate() (time.Time, error)
- func (s *FlightService) IncreaseFlightCapacity(id uuid.UUID, seats int) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FlightService ¶
type FlightService struct {
// contains filtered or unexported fields
}
func NewFlightService ¶
func NewFlightService() *FlightService
func (*FlightService) DecreaseFlightCapacity ¶
func (s *FlightService) DecreaseFlightCapacity(id uuid.UUID, seats int) error
func (*FlightService) GenerateRandomFlightsForNext30Days ¶
func (s *FlightService) GenerateRandomFlightsForNext30Days() error
func (*FlightService) GetFlightByID ¶
func (s *FlightService) GetFlightByID(flight *models.Flight) error
func (*FlightService) GetFlights ¶
func (s *FlightService) GetFlights(flightReq *models.FlightSearchRequest, flights *[]models.Flight) error
func (*FlightService) GetLastFlightDate ¶
func (s *FlightService) GetLastFlightDate() (time.Time, error)
func (*FlightService) IncreaseFlightCapacity ¶
func (s *FlightService) IncreaseFlightCapacity(id uuid.UUID, seats int) error
Click to show internal directories.
Click to hide internal directories.