Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AircraftsDatum ¶
type AircraftsDatum struct { // Aircraft code, IATA AircraftCode string // Aircraft model Model string // Maximal flying distance, km Range int32 CompanyID int64 CreatedAt time.Time }
Aircrafts (internal data)
type AirlineCompany ¶
type AirportsDatum ¶
type AirportsDatum struct { // Airport code AirportCode string // Airport name AirportName string // Country CountryCode string // City City string // Airport coordinates (longitude and latitude) Coordinates interface{} // Airport time zone Timezone string // time airport record Created CreatedAt time.Time }
Airports (internal data)
type Querier ¶
type Querier interface { CreateAircraft(ctx context.Context, arg CreateAircraftParams) (AircraftsDatum, error) CreateAirlineCompany(ctx context.Context, arg CreateAirlineCompanyParams) (AirlineCompany, error) CreateAirportList(ctx context.Context, arg CreateAirportListParams) ([]AirportsDatum, error) CreateAirports(ctx context.Context, arg CreateAirportsParams) (AirportsDatum, error) DeleteAircraft(ctx context.Context, aircraftCode string) error DeleteAirlineCompany(ctx context.Context, companyID int64) error DeleteAirports(ctx context.Context, airportCode string) error GetAircraft(ctx context.Context, aircraftCode string) (AircraftsDatum, error) GetAirlineCompany(ctx context.Context, companyID int64) (AirlineCompany, error) GetAirports(ctx context.Context, airportCode string) (AirportsDatum, error) ListAircraft(ctx context.Context) ([]AircraftsDatum, error) ListAirlineCompany(ctx context.Context) ([]AirlineCompany, error) ListAirports(ctx context.Context) ([]ListAirportsRow, error) }
Click to show internal directories.
Click to hide internal directories.