provider

package
v0.0.0-...-26555e2 Latest Latest
Warning

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

Go to latest
Published: Apr 27, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Connect

func Connect()

Types

type Manager

type Manager interface {
	GetFlight(ctx context.Context, id int) (*models.Flight, error)
	GetAvailableFlights(ctx context.Context, limit, offset int) ([]*models.Flight, error)
	GetAvailableFlightsByLocation(ctx context.Context, state, country string, limit, offset int) ([]*models.Flight, error)
	GetAvailableSeats(ctx context.Context, flightID int) ([]*models.Seat, error)
	CreateOrder(ctx context.Context, order *models.Order) (*models.Order, error)
	Close()
}
var Mgr Manager

Jump to

Keyboard shortcuts

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