Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FlightRepositoryContracts ¶
type FlightRepositoryContracts interface { GetLastFlightDate(lastFlight *models.Flight) error CreateFlights(flights *[]models.Flight) error GetFlights(flightReq *models.FlightSearchRequest, flights *[]models.Flight) error GetFlightByID(flight *models.Flight) error UpdateFlight(flight *models.Flight) error }
type FlightServiceContract ¶
type FlightServiceContract interface { GenerateRandomFlightsForNext30Days() error GetFlights(flightReq *models.FlightSearchRequest, flights *[]models.Flight) error GetFlightByID(flight *models.Flight) error DecreaseFlightCapacity(id uuid.UUID, seats int) error IncreaseFlightCapacity(id uuid.UUID, seats int) error }
Click to show internal directories.
Click to hide internal directories.