service

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: 8 Imported by: 0

Documentation

Index

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

Jump to

Keyboard shortcuts

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