Versions in this module Expand all Collapse all v0 v0.0.1 Dec 7, 2023 Changes in this version + type ComputeFlightEmissionsRequest struct + Flights []*Flight + ForceSendFields []string + NullFields []string + func (s *ComputeFlightEmissionsRequest) MarshalJSON() ([]byte, error) + type ComputeFlightEmissionsResponse struct + FlightEmissions []*FlightWithEmissions + ForceSendFields []string + ModelVersion *ModelVersion + NullFields []string + func (s *ComputeFlightEmissionsResponse) MarshalJSON() ([]byte, error) + type Date struct + Day int64 + ForceSendFields []string + Month int64 + NullFields []string + Year int64 + func (s *Date) MarshalJSON() ([]byte, error) + type EmissionsGramsPerPax struct + Business int64 + Economy int64 + First int64 + ForceSendFields []string + NullFields []string + PremiumEconomy int64 + func (s *EmissionsGramsPerPax) MarshalJSON() ([]byte, error) + type Flight struct + DepartureDate *Date + Destination string + FlightNumber int64 + ForceSendFields []string + NullFields []string + OperatingCarrierCode string + Origin string + func (s *Flight) MarshalJSON() ([]byte, error) + type FlightWithEmissions struct + EmissionsGramsPerPax *EmissionsGramsPerPax + Flight *Flight + ForceSendFields []string + NullFields []string + func (s *FlightWithEmissions) MarshalJSON() ([]byte, error) + type FlightsComputeFlightEmissionsCall struct + func (c *FlightsComputeFlightEmissionsCall) Context(ctx context.Context) *FlightsComputeFlightEmissionsCall + func (c *FlightsComputeFlightEmissionsCall) Do(opts ...googleapi.CallOption) (*ComputeFlightEmissionsResponse, error) + func (c *FlightsComputeFlightEmissionsCall) Fields(s ...googleapi.Field) *FlightsComputeFlightEmissionsCall + func (c *FlightsComputeFlightEmissionsCall) Header() http.Header + type FlightsService struct + func NewFlightsService(s *Service) *FlightsService + func (r *FlightsService) ComputeFlightEmissions(computeflightemissionsrequest *ComputeFlightEmissionsRequest) *FlightsComputeFlightEmissionsCall + type ModelVersion struct + Dated string + ForceSendFields []string + Major int64 + Minor int64 + NullFields []string + Patch int64 + func (s *ModelVersion) MarshalJSON() ([]byte, error) + type Service struct + BasePath string + Flights *FlightsService + UserAgent string + func New(client *http.Client) (*Service, error) + func NewService(ctx context.Context, opts ...option.ClientOption) (*Service, error)