ports

package
v0.0.0-...-477ec14 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 18, 2024 License: GPL-3.0 Imports: 2 Imported by: 2

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
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL