ports

package
v0.0.0-...-95589b7 Latest Latest
Warning

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

Go to latest
Published: Oct 28, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BookingRepository

type BookingRepository interface {
	CreateBooking(ctx context.Context, booking *models.Booking) (*models.Booking, error)
	GetBookingByID(ctx context.Context, id string) (*models.Booking, error)
	GetBookingsPaginated(ctx context.Context, afterCursor string, limit int) ([]models.Booking, string, error)
	GetDestinationById(ctx context.Context, id string) (*models.Destination, error)
	GetFlights(ctx context.Context, filters map[string]interface{}) ([]models.Flight, error)
	IsLaunchPadWeekAvailable(ctx context.Context, launchpadId, destinationId string,
		t time.Time) (bool, error)
	DeleteBooking(ctx context.Context, id string) error
}

type BookingService

type BookingService interface {
	CreateBooking(ctx context.Context, request *models.BookingRequest) (*models.Booking, error)
	AllBookings(ctx context.Context, req models.GetBookingsRequest) (*models.AllBookingsResponse, error)
	DeleteBooking(ctx context.Context, id string) error
}

type SpaceXClient

type SpaceXClient interface {
	CheckLaunchConflict(ctx context.Context, launchpadID string, ts time.Time) (bool, error)
}

Jump to

Keyboard shortcuts

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