Documentation
¶
Index ¶
- type Agency
- type Alert
- type AlertActivePeriod
- type AlertAgency
- type AlertRoute
- type AlertStop
- type AlertTrip
- type DBTX
- type DeleteServiceMapParams
- type DeleteStaleAgenciesParams
- type DeleteStaleAlertsParams
- type DeleteStaleRoutesParams
- type DeleteStaleStopsParams
- type DeleteStaleTripsParams
- type DeleteStaleVehiclesParams
- type EstimateHeadwaysForRoutesParams
- type EstimateHeadwaysForRoutesRow
- type Feed
- type GetAgencyParams
- type GetAlertInSystemParams
- type GetDestinationsForTripsRow
- type GetFeedParams
- type GetRouteParams
- type GetStopParams
- type GetTripParams
- type GetTripRow
- type GetVehicleParams
- type GetVehicleRow
- type InsertAgencyParams
- type InsertAlertActivePeriodParams
- type InsertAlertAgencyParams
- type InsertAlertParams
- type InsertAlertRouteParams
- type InsertAlertStopParams
- type InsertFeedParams
- type InsertRouteParams
- type InsertServiceMapConfigParams
- type InsertServiceMapParams
- type InsertServiceMapStopParams
- type InsertStopHeadSignRuleParams
- type InsertStopParams
- type InsertSystemParams
- type InsertTransferParams
- type InsertTripParams
- type InsertTripStopTimeParams
- type InsertVehicleParams
- type ListActiveAlertsForAgenciesParams
- type ListActiveAlertsForAgenciesRow
- type ListActiveAlertsForRoutesParams
- type ListActiveAlertsForRoutesRow
- type ListActiveAlertsForStopsParams
- type ListActiveAlertsForStopsRow
- type ListActivePeriodsForAlertsRow
- type ListAlertPksAndHashesParams
- type ListAlertPksAndHashesRow
- type ListAlertsInSystemAndByIDsParams
- type ListRoutesByPkRow
- type ListRoutesInAgencyRow
- type ListServiceMapsConfigIDsForStopsRow
- type ListServiceMapsForRoutesRow
- type ListServiceMapsForStopsRow
- type ListStopPksForRealtimeMapRow
- type ListStopsByPkRow
- type ListStopsParams
- type ListStopsTimesForTripRow
- type ListStops_GeographicParams
- type ListTransfersInSystemRow
- type ListTripPksInSystemParams
- type ListTripPksInSystemRow
- type ListTripStopTimesByStopsRow
- type ListTripStopTimesForUpdateRow
- type ListTripsRow
- type ListVehicleUniqueColumnsParams
- type ListVehicleUniqueColumnsRow
- type ListVehiclesParams
- type ListVehiclesRow
- type ListVehicles_GeographicParams
- type ListVehicles_GeographicRow
- type MapAgencyPkToIdRow
- type MapRouteIDToPkInSystemParams
- type MapRouteIDToPkInSystemRow
- type MapStopIDAndPkToStationPkParams
- type MapStopIDAndPkToStationPkRow
- type MapStopIDToPkParams
- type MapStopIDToPkRow
- type MapStopPkToChildPksRow
- type MapStopPkToDescendentPksRow
- type MapTripIDToPkInSystemParams
- type MapTripIDToPkInSystemRow
- type MarkFailedUpdateParams
- type MarkSkippedUpdateParams
- type MarkSuccessfulUpdateParams
- type MarkTripStopTimesPastBatchResults
- type MarkTripStopTimesPastParams
- type Querier
- type Queries
- func (q *Queries) CountAgenciesInSystem(ctx context.Context, systemPk int64) (int64, error)
- func (q *Queries) CountFeedsInSystem(ctx context.Context, systemPk int64) (int64, error)
- func (q *Queries) CountRoutesInSystem(ctx context.Context, systemPk int64) (int64, error)
- func (q *Queries) CountStopsInSystem(ctx context.Context, systemPk int64) (int64, error)
- func (q *Queries) CountTransfersInSystem(ctx context.Context, systemPk pgtype.Int8) (int64, error)
- func (q *Queries) DeleteAlerts(ctx context.Context, alertPks []int64) error
- func (q *Queries) DeleteFeed(ctx context.Context, pk int64) error
- func (q *Queries) DeleteServiceMap(ctx context.Context, arg DeleteServiceMapParams) error
- func (q *Queries) DeleteServiceMapConfig(ctx context.Context, pk int64) error
- func (q *Queries) DeleteStaleAgencies(ctx context.Context, arg DeleteStaleAgenciesParams) error
- func (q *Queries) DeleteStaleAlerts(ctx context.Context, arg DeleteStaleAlertsParams) error
- func (q *Queries) DeleteStaleRoutes(ctx context.Context, arg DeleteStaleRoutesParams) error
- func (q *Queries) DeleteStaleStops(ctx context.Context, arg DeleteStaleStopsParams) error
- func (q *Queries) DeleteStaleTrips(ctx context.Context, arg DeleteStaleTripsParams) ([]int64, error)
- func (q *Queries) DeleteStaleVehicles(ctx context.Context, arg DeleteStaleVehiclesParams) error
- func (q *Queries) DeleteStopHeadsignRules(ctx context.Context, feedPk int64) error
- func (q *Queries) DeleteSystem(ctx context.Context, pk int64) error
- func (q *Queries) DeleteTransfers(ctx context.Context, feedPk int64) error
- func (q *Queries) DeleteTripStopTimes(ctx context.Context, pks []int64) error
- func (q *Queries) EstimateHeadwaysForRoutes(ctx context.Context, arg EstimateHeadwaysForRoutesParams) ([]EstimateHeadwaysForRoutesRow, error)
- func (q *Queries) GetAgency(ctx context.Context, arg GetAgencyParams) (Agency, error)
- func (q *Queries) GetAlertInSystem(ctx context.Context, arg GetAlertInSystemParams) (Alert, error)
- func (q *Queries) GetDestinationsForTrips(ctx context.Context, tripPks []int64) ([]GetDestinationsForTripsRow, error)
- func (q *Queries) GetFeed(ctx context.Context, arg GetFeedParams) (Feed, error)
- func (q *Queries) GetRoute(ctx context.Context, arg GetRouteParams) (Route, error)
- func (q *Queries) GetStop(ctx context.Context, arg GetStopParams) (Stop, error)
- func (q *Queries) GetSystem(ctx context.Context, id string) (System, error)
- func (q *Queries) GetTrip(ctx context.Context, arg GetTripParams) (GetTripRow, error)
- func (q *Queries) GetVehicle(ctx context.Context, arg GetVehicleParams) (GetVehicleRow, error)
- func (q *Queries) InsertAgency(ctx context.Context, arg InsertAgencyParams) (int64, error)
- func (q *Queries) InsertAlert(ctx context.Context, arg InsertAlertParams) (int64, error)
- func (q *Queries) InsertAlertActivePeriod(ctx context.Context, arg InsertAlertActivePeriodParams) error
- func (q *Queries) InsertAlertAgency(ctx context.Context, arg InsertAlertAgencyParams) error
- func (q *Queries) InsertAlertRoute(ctx context.Context, arg InsertAlertRouteParams) error
- func (q *Queries) InsertAlertStop(ctx context.Context, arg InsertAlertStopParams) error
- func (q *Queries) InsertFeed(ctx context.Context, arg InsertFeedParams) error
- func (q *Queries) InsertRoute(ctx context.Context, arg InsertRouteParams) (int64, error)
- func (q *Queries) InsertServiceMap(ctx context.Context, arg InsertServiceMapParams) (int64, error)
- func (q *Queries) InsertServiceMapConfig(ctx context.Context, arg InsertServiceMapConfigParams) error
- func (q *Queries) InsertServiceMapStop(ctx context.Context, arg []InsertServiceMapStopParams) (int64, error)
- func (q *Queries) InsertStop(ctx context.Context, arg InsertStopParams) (int64, error)
- func (q *Queries) InsertStopHeadSignRule(ctx context.Context, arg InsertStopHeadSignRuleParams) error
- func (q *Queries) InsertSystem(ctx context.Context, arg InsertSystemParams) (int64, error)
- func (q *Queries) InsertTransfer(ctx context.Context, arg InsertTransferParams) error
- func (q *Queries) InsertTrip(ctx context.Context, arg InsertTripParams) (int64, error)
- func (q *Queries) InsertTripStopTime(ctx context.Context, arg []InsertTripStopTimeParams) (int64, error)
- func (q *Queries) InsertVehicle(ctx context.Context, arg InsertVehicleParams) error
- func (q *Queries) ListActiveAlertsForAgencies(ctx context.Context, arg ListActiveAlertsForAgenciesParams) ([]ListActiveAlertsForAgenciesRow, error)
- func (q *Queries) ListActiveAlertsForRoutes(ctx context.Context, arg ListActiveAlertsForRoutesParams) ([]ListActiveAlertsForRoutesRow, error)
- func (q *Queries) ListActiveAlertsForStops(ctx context.Context, arg ListActiveAlertsForStopsParams) ([]ListActiveAlertsForStopsRow, error)
- func (q *Queries) ListActivePeriodsForAlerts(ctx context.Context, pks []int64) ([]ListActivePeriodsForAlertsRow, error)
- func (q *Queries) ListAgencies(ctx context.Context, systemPk int64) ([]Agency, error)
- func (q *Queries) ListAgenciesByPk(ctx context.Context, pk []int64) ([]Agency, error)
- func (q *Queries) ListAlertPksAndHashes(ctx context.Context, arg ListAlertPksAndHashesParams) ([]ListAlertPksAndHashesRow, error)
- func (q *Queries) ListAlertsInSystem(ctx context.Context, systemPk int64) ([]Alert, error)
- func (q *Queries) ListAlertsInSystemAndByIDs(ctx context.Context, arg ListAlertsInSystemAndByIDsParams) ([]Alert, error)
- func (q *Queries) ListFeeds(ctx context.Context, systemPk int64) ([]Feed, error)
- func (q *Queries) ListRoutes(ctx context.Context, systemPk int64) ([]Route, error)
- func (q *Queries) ListRoutesByPk(ctx context.Context, routePks []int64) ([]ListRoutesByPkRow, error)
- func (q *Queries) ListRoutesInAgency(ctx context.Context, agencyPk int64) ([]ListRoutesInAgencyRow, error)
- func (q *Queries) ListServiceMapConfigsInSystem(ctx context.Context, systemPk int64) ([]ServiceMapConfig, error)
- func (q *Queries) ListServiceMapsConfigIDsForStops(ctx context.Context, stopPks []int64) ([]ListServiceMapsConfigIDsForStopsRow, error)
- func (q *Queries) ListServiceMapsForRoutes(ctx context.Context, routePks []int64) ([]ListServiceMapsForRoutesRow, error)
- func (q *Queries) ListServiceMapsForStops(ctx context.Context, stopPks []int64) ([]ListServiceMapsForStopsRow, error)
- func (q *Queries) ListStopHeadsignRulesForStops(ctx context.Context, stopPks []int64) ([]StopHeadsignRule, error)
- func (q *Queries) ListStopPksForRealtimeMap(ctx context.Context, routePk int64) ([]ListStopPksForRealtimeMapRow, error)
- func (q *Queries) ListStops(ctx context.Context, arg ListStopsParams) ([]Stop, error)
- func (q *Queries) ListStopsByPk(ctx context.Context, stopPks []int64) ([]ListStopsByPkRow, error)
- func (q *Queries) ListStopsTimesForTrip(ctx context.Context, tripPk int64) ([]ListStopsTimesForTripRow, error)
- func (q *Queries) ListStops_Geographic(ctx context.Context, arg ListStops_GeographicParams) ([]Stop, error)
- func (q *Queries) ListSystems(ctx context.Context) ([]System, error)
- func (q *Queries) ListTransfersFromStops(ctx context.Context, fromStopPks []int64) ([]Transfer, error)
- func (q *Queries) ListTransfersInSystem(ctx context.Context, systemPk pgtype.Int8) ([]ListTransfersInSystemRow, error)
- func (q *Queries) ListTripPksInSystem(ctx context.Context, arg ListTripPksInSystemParams) ([]ListTripPksInSystemRow, error)
- func (q *Queries) ListTripStopTimesByStops(ctx context.Context, stopPks []int64) ([]ListTripStopTimesByStopsRow, error)
- func (q *Queries) ListTripStopTimesForUpdate(ctx context.Context, tripPks []int64) ([]ListTripStopTimesForUpdateRow, error)
- func (q *Queries) ListTrips(ctx context.Context, routePks []int64) ([]ListTripsRow, error)
- func (q *Queries) ListVehicleUniqueColumns(ctx context.Context, arg ListVehicleUniqueColumnsParams) ([]ListVehicleUniqueColumnsRow, error)
- func (q *Queries) ListVehicles(ctx context.Context, arg ListVehiclesParams) ([]ListVehiclesRow, error)
- func (q *Queries) ListVehicles_Geographic(ctx context.Context, arg ListVehicles_GeographicParams) ([]ListVehicles_GeographicRow, error)
- func (q *Queries) MapAgencyPkToId(ctx context.Context, systemPk int64) ([]MapAgencyPkToIdRow, error)
- func (q *Queries) MapRouteIDToPkInSystem(ctx context.Context, arg MapRouteIDToPkInSystemParams) ([]MapRouteIDToPkInSystemRow, error)
- func (q *Queries) MapStopIDAndPkToStationPk(ctx context.Context, arg MapStopIDAndPkToStationPkParams) ([]MapStopIDAndPkToStationPkRow, error)
- func (q *Queries) MapStopIDToPk(ctx context.Context, arg MapStopIDToPkParams) ([]MapStopIDToPkRow, error)
- func (q *Queries) MapStopPkToChildPks(ctx context.Context, stopPks []int64) ([]MapStopPkToChildPksRow, error)
- func (q *Queries) MapStopPkToDescendentPks(ctx context.Context, stopPks []int64) ([]MapStopPkToDescendentPksRow, error)
- func (q *Queries) MapTripIDToPkInSystem(ctx context.Context, arg MapTripIDToPkInSystemParams) ([]MapTripIDToPkInSystemRow, error)
- func (q *Queries) MarkFailedUpdate(ctx context.Context, arg MarkFailedUpdateParams) error
- func (q *Queries) MarkSkippedUpdate(ctx context.Context, arg MarkSkippedUpdateParams) error
- func (q *Queries) MarkSuccessfulUpdate(ctx context.Context, arg MarkSuccessfulUpdateParams) error
- func (q *Queries) MarkTripStopTimesPast(ctx context.Context, arg []MarkTripStopTimesPastParams) *MarkTripStopTimesPastBatchResults
- func (q *Queries) UpdateAgency(ctx context.Context, arg UpdateAgencyParams) error
- func (q *Queries) UpdateFeed(ctx context.Context, arg UpdateFeedParams) error
- func (q *Queries) UpdateRoute(ctx context.Context, arg UpdateRouteParams) error
- func (q *Queries) UpdateServiceMapConfig(ctx context.Context, arg UpdateServiceMapConfigParams) error
- func (q *Queries) UpdateStop(ctx context.Context, arg UpdateStopParams) error
- func (q *Queries) UpdateStop_Parent(ctx context.Context, arg UpdateStop_ParentParams) error
- func (q *Queries) UpdateSystem(ctx context.Context, arg UpdateSystemParams) error
- func (q *Queries) UpdateSystemStatus(ctx context.Context, arg UpdateSystemStatusParams) error
- func (q *Queries) UpdateTrip(ctx context.Context, arg []UpdateTripParams) *UpdateTripBatchResults
- func (q *Queries) UpdateTripStopTime(ctx context.Context, arg UpdateTripStopTimeParams) error
- func (q *Queries) UpdateVehicle(ctx context.Context, arg UpdateVehicleParams) error
- func (q *Queries) WithTx(tx pgx.Tx) *Queries
- type Route
- type ScheduledService
- type ScheduledServiceAddition
- type ScheduledServiceRemoval
- type ScheduledTrip
- type ScheduledTripFrequency
- type ScheduledTripStopTime
- type ServiceMap
- type ServiceMapConfig
- type ServiceMapVertex
- type Stop
- type StopHeadsignRule
- type System
- type Transfer
- type Trip
- type TripStopTime
- type UpdateAgencyParams
- type UpdateFeedParams
- type UpdateRouteParams
- type UpdateServiceMapConfigParams
- type UpdateStopParams
- type UpdateStop_ParentParams
- type UpdateSystemParams
- type UpdateSystemStatusParams
- type UpdateTripBatchResults
- type UpdateTripParams
- type UpdateTripStopTimeParams
- type UpdateVehicleParams
- type Vehicle
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AlertActivePeriod ¶
type AlertActivePeriod struct { Pk int64 AlertPk int64 StartsAt pgtype.Timestamptz EndsAt pgtype.Timestamptz }
type AlertAgency ¶
type AlertRoute ¶
type DBTX ¶
type DBTX interface { Exec(context.Context, string, ...interface{}) (pgconn.CommandTag, error) Query(context.Context, string, ...interface{}) (pgx.Rows, error) QueryRow(context.Context, string, ...interface{}) pgx.Row CopyFrom(ctx context.Context, tableName pgx.Identifier, columnNames []string, rowSrc pgx.CopyFromSource) (int64, error) SendBatch(context.Context, *pgx.Batch) pgx.BatchResults }
type DeleteServiceMapParams ¶
type DeleteStaleAlertsParams ¶
type DeleteStaleRoutesParams ¶
type DeleteStaleStopsParams ¶
type DeleteStaleTripsParams ¶
type EstimateHeadwaysForRoutesParams ¶
type EstimateHeadwaysForRoutesParams struct { RoutePks []int64 PresentTime pgtype.Timestamptz }
type Feed ¶
type Feed struct { Pk int64 ID string SystemPk int64 Config string LastContentHash pgtype.Text LastUpdate pgtype.Timestamptz LastSuccessfulUpdate pgtype.Timestamptz LastSkippedUpdate pgtype.Timestamptz LastFailedUpdate pgtype.Timestamptz }
type GetAgencyParams ¶
type GetAlertInSystemParams ¶
type GetFeedParams ¶
type GetRouteParams ¶
type GetStopParams ¶
type GetTripParams ¶
type GetTripRow ¶
type GetVehicleParams ¶
type GetVehicleRow ¶
type GetVehicleRow struct { Pk int64 ID pgtype.Text SystemPk int64 TripPk pgtype.Int8 Label pgtype.Text LicensePlate pgtype.Text CurrentStatus pgtype.Text Latitude pgtype.Numeric Longitude pgtype.Numeric Bearing pgtype.Float4 Odometer pgtype.Float8 Speed pgtype.Float4 CongestionLevel string UpdatedAt pgtype.Timestamptz CurrentStopPk pgtype.Int8 CurrentStopSequence pgtype.Int4 OccupancyStatus pgtype.Text FeedPk int64 OccupancyPercentage pgtype.Int4 StopID pgtype.Text StopName pgtype.Text TripID pgtype.Text TripDirectionID pgtype.Bool RouteID pgtype.Text RouteColor pgtype.Text }
type InsertAgencyParams ¶
type InsertAlertActivePeriodParams ¶
type InsertAlertActivePeriodParams struct { AlertPk int64 StartsAt pgtype.Timestamptz EndsAt pgtype.Timestamptz }
type InsertAlertAgencyParams ¶
type InsertAlertParams ¶
type InsertAlertRouteParams ¶
type InsertAlertStopParams ¶
type InsertFeedParams ¶
type InsertRouteParams ¶
type InsertServiceMapParams ¶
type InsertStopParams ¶
type InsertStopParams struct { ID string SystemPk int64 FeedPk int64 Name pgtype.Text Longitude pgtype.Numeric Latitude pgtype.Numeric Url pgtype.Text Code pgtype.Text Description pgtype.Text PlatformCode pgtype.Text Timezone pgtype.Text Type string WheelchairBoarding pgtype.Bool ZoneID pgtype.Text }
type InsertSystemParams ¶
type InsertTransferParams ¶
type InsertTripParams ¶
type InsertTripStopTimeParams ¶
type InsertTripStopTimeParams struct { StopPk int64 TripPk int64 ArrivalTime pgtype.Timestamptz ArrivalDelay pgtype.Int4 ArrivalUncertainty pgtype.Int4 DepartureTime pgtype.Timestamptz DepartureDelay pgtype.Int4 DepartureUncertainty pgtype.Int4 StopSequence int32 Track pgtype.Text Headsign pgtype.Text Past bool }
type InsertVehicleParams ¶
type InsertVehicleParams struct { ID pgtype.Text SystemPk int64 TripPk pgtype.Int8 Label pgtype.Text LicensePlate pgtype.Text CurrentStatus pgtype.Text Latitude pgtype.Numeric Longitude pgtype.Numeric Bearing pgtype.Float4 Odometer pgtype.Float8 Speed pgtype.Float4 CongestionLevel string UpdatedAt pgtype.Timestamptz CurrentStopPk pgtype.Int8 CurrentStopSequence pgtype.Int4 OccupancyStatus pgtype.Text FeedPk int64 OccupancyPercentage pgtype.Int4 }
type ListActiveAlertsForAgenciesParams ¶
type ListActiveAlertsForAgenciesParams struct { AgencyPks []int64 PresentTime pgtype.Timestamptz }
type ListActiveAlertsForRoutesParams ¶
type ListActiveAlertsForRoutesParams struct { RoutePks []int64 PresentTime pgtype.Timestamptz }
type ListActiveAlertsForStopsParams ¶
type ListActiveAlertsForStopsParams struct { StopPks []int64 PresentTime pgtype.Timestamptz }
type ListActiveAlertsForStopsRow ¶
type ListActiveAlertsForStopsRow struct { StopPk int64 Pk int64 ID string Cause string Effect string StartsAt pgtype.Timestamptz EndsAt pgtype.Timestamptz }
type ListActivePeriodsForAlertsRow ¶
type ListActivePeriodsForAlertsRow struct { Pk int64 StartsAt pgtype.Timestamptz EndsAt pgtype.Timestamptz }
type ListRoutesByPkRow ¶
type ListRoutesInAgencyRow ¶
type ListStopsByPkRow ¶
type ListStopsParams ¶
type ListStopsTimesForTripRow ¶
type ListStopsTimesForTripRow struct { Pk int64 StopPk int64 TripPk int64 ArrivalTime pgtype.Timestamptz ArrivalDelay pgtype.Int4 ArrivalUncertainty pgtype.Int4 DepartureTime pgtype.Timestamptz DepartureDelay pgtype.Int4 DepartureUncertainty pgtype.Int4 StopSequence int32 Track pgtype.Text Headsign pgtype.Text Past bool StopID string StopName pgtype.Text }
type ListTripPksInSystemRow ¶
type ListTripStopTimesByStopsRow ¶
type ListTripStopTimesByStopsRow struct { Pk int64 StopPk int64 TripPk int64 ArrivalTime pgtype.Timestamptz ArrivalDelay pgtype.Int4 ArrivalUncertainty pgtype.Int4 DepartureTime pgtype.Timestamptz DepartureDelay pgtype.Int4 DepartureUncertainty pgtype.Int4 StopSequence int32 Track pgtype.Text Headsign pgtype.Text Past bool Pk_2 int64 ID string RoutePk int64 DirectionID pgtype.Bool StartedAt pgtype.Timestamptz GtfsHash string FeedPk int64 VehicleID pgtype.Text VehicleLatitude pgtype.Numeric VehicleLongitude pgtype.Numeric VehicleBearing pgtype.Float4 VehicleUpdatedAt pgtype.Timestamptz }
type ListTripsRow ¶
type ListVehiclesParams ¶
type ListVehiclesRow ¶
type ListVehiclesRow struct { Pk int64 ID pgtype.Text SystemPk int64 TripPk pgtype.Int8 Label pgtype.Text LicensePlate pgtype.Text CurrentStatus pgtype.Text Latitude pgtype.Numeric Longitude pgtype.Numeric Bearing pgtype.Float4 Odometer pgtype.Float8 Speed pgtype.Float4 CongestionLevel string UpdatedAt pgtype.Timestamptz CurrentStopPk pgtype.Int8 CurrentStopSequence pgtype.Int4 OccupancyStatus pgtype.Text FeedPk int64 OccupancyPercentage pgtype.Int4 StopID pgtype.Text StopName pgtype.Text TripID pgtype.Text TripDirectionID pgtype.Bool RouteID pgtype.Text RouteColor pgtype.Text }
type ListVehicles_GeographicRow ¶
type ListVehicles_GeographicRow struct { Pk int64 ID pgtype.Text SystemPk int64 TripPk pgtype.Int8 Label pgtype.Text LicensePlate pgtype.Text CurrentStatus pgtype.Text Latitude pgtype.Numeric Longitude pgtype.Numeric Bearing pgtype.Float4 Odometer pgtype.Float8 Speed pgtype.Float4 CongestionLevel string UpdatedAt pgtype.Timestamptz CurrentStopPk pgtype.Int8 CurrentStopSequence pgtype.Int4 OccupancyStatus pgtype.Text FeedPk int64 OccupancyPercentage pgtype.Int4 StopID pgtype.Text StopName pgtype.Text TripID pgtype.Text TripDirectionID pgtype.Bool RouteID pgtype.Text RouteColor pgtype.Text }
type MapAgencyPkToIdRow ¶
type MapStopIDToPkParams ¶
type MapStopIDToPkRow ¶
type MapStopPkToChildPksRow ¶
type MarkFailedUpdateParams ¶
type MarkFailedUpdateParams struct { UpdateTime pgtype.Timestamptz FeedPk int64 }
type MarkSkippedUpdateParams ¶
type MarkSkippedUpdateParams struct { UpdateTime pgtype.Timestamptz FeedPk int64 }
type MarkSuccessfulUpdateParams ¶
type MarkSuccessfulUpdateParams struct { ContentHash pgtype.Text UpdateTime pgtype.Timestamptz FeedPk int64 }
type MarkTripStopTimesPastBatchResults ¶
type MarkTripStopTimesPastBatchResults struct {
// contains filtered or unexported fields
}
func (*MarkTripStopTimesPastBatchResults) Close ¶
func (b *MarkTripStopTimesPastBatchResults) Close() error
func (*MarkTripStopTimesPastBatchResults) Exec ¶
func (b *MarkTripStopTimesPastBatchResults) Exec(f func(int, error))
type Querier ¶
type Querier interface { CountAgenciesInSystem(ctx context.Context, systemPk int64) (int64, error) CountFeedsInSystem(ctx context.Context, systemPk int64) (int64, error) CountRoutesInSystem(ctx context.Context, systemPk int64) (int64, error) CountStopsInSystem(ctx context.Context, systemPk int64) (int64, error) CountTransfersInSystem(ctx context.Context, systemPk pgtype.Int8) (int64, error) DeleteAlerts(ctx context.Context, alertPks []int64) error DeleteFeed(ctx context.Context, pk int64) error DeleteServiceMap(ctx context.Context, arg DeleteServiceMapParams) error DeleteServiceMapConfig(ctx context.Context, pk int64) error DeleteStaleAgencies(ctx context.Context, arg DeleteStaleAgenciesParams) error DeleteStaleAlerts(ctx context.Context, arg DeleteStaleAlertsParams) error DeleteStaleRoutes(ctx context.Context, arg DeleteStaleRoutesParams) error DeleteStaleStops(ctx context.Context, arg DeleteStaleStopsParams) error DeleteStaleTrips(ctx context.Context, arg DeleteStaleTripsParams) ([]int64, error) DeleteStaleVehicles(ctx context.Context, arg DeleteStaleVehiclesParams) error DeleteStopHeadsignRules(ctx context.Context, feedPk int64) error DeleteSystem(ctx context.Context, pk int64) error DeleteTransfers(ctx context.Context, feedPk int64) error DeleteTripStopTimes(ctx context.Context, pks []int64) error EstimateHeadwaysForRoutes(ctx context.Context, arg EstimateHeadwaysForRoutesParams) ([]EstimateHeadwaysForRoutesRow, error) GetAgency(ctx context.Context, arg GetAgencyParams) (Agency, error) GetAlertInSystem(ctx context.Context, arg GetAlertInSystemParams) (Alert, error) GetDestinationsForTrips(ctx context.Context, tripPks []int64) ([]GetDestinationsForTripsRow, error) GetFeed(ctx context.Context, arg GetFeedParams) (Feed, error) GetRoute(ctx context.Context, arg GetRouteParams) (Route, error) GetStop(ctx context.Context, arg GetStopParams) (Stop, error) GetSystem(ctx context.Context, id string) (System, error) GetTrip(ctx context.Context, arg GetTripParams) (GetTripRow, error) GetVehicle(ctx context.Context, arg GetVehicleParams) (GetVehicleRow, error) InsertAgency(ctx context.Context, arg InsertAgencyParams) (int64, error) InsertAlert(ctx context.Context, arg InsertAlertParams) (int64, error) InsertAlertActivePeriod(ctx context.Context, arg InsertAlertActivePeriodParams) error InsertAlertAgency(ctx context.Context, arg InsertAlertAgencyParams) error InsertAlertRoute(ctx context.Context, arg InsertAlertRouteParams) error InsertAlertStop(ctx context.Context, arg InsertAlertStopParams) error InsertFeed(ctx context.Context, arg InsertFeedParams) error InsertRoute(ctx context.Context, arg InsertRouteParams) (int64, error) InsertServiceMap(ctx context.Context, arg InsertServiceMapParams) (int64, error) InsertServiceMapConfig(ctx context.Context, arg InsertServiceMapConfigParams) error InsertServiceMapStop(ctx context.Context, arg []InsertServiceMapStopParams) (int64, error) InsertStop(ctx context.Context, arg InsertStopParams) (int64, error) InsertStopHeadSignRule(ctx context.Context, arg InsertStopHeadSignRuleParams) error InsertSystem(ctx context.Context, arg InsertSystemParams) (int64, error) InsertTransfer(ctx context.Context, arg InsertTransferParams) error InsertTrip(ctx context.Context, arg InsertTripParams) (int64, error) InsertTripStopTime(ctx context.Context, arg []InsertTripStopTimeParams) (int64, error) InsertVehicle(ctx context.Context, arg InsertVehicleParams) error ListActiveAlertsForAgencies(ctx context.Context, arg ListActiveAlertsForAgenciesParams) ([]ListActiveAlertsForAgenciesRow, error) // ListActiveAlertsForRoutes returns preview information about active alerts for the provided routes. ListActiveAlertsForRoutes(ctx context.Context, arg ListActiveAlertsForRoutesParams) ([]ListActiveAlertsForRoutesRow, error) ListActiveAlertsForStops(ctx context.Context, arg ListActiveAlertsForStopsParams) ([]ListActiveAlertsForStopsRow, error) ListActivePeriodsForAlerts(ctx context.Context, pks []int64) ([]ListActivePeriodsForAlertsRow, error) ListAgencies(ctx context.Context, systemPk int64) ([]Agency, error) ListAgenciesByPk(ctx context.Context, pk []int64) ([]Agency, error) ListAlertPksAndHashes(ctx context.Context, arg ListAlertPksAndHashesParams) ([]ListAlertPksAndHashesRow, error) ListAlertsInSystem(ctx context.Context, systemPk int64) ([]Alert, error) ListAlertsInSystemAndByIDs(ctx context.Context, arg ListAlertsInSystemAndByIDsParams) ([]Alert, error) ListFeeds(ctx context.Context, systemPk int64) ([]Feed, error) ListRoutes(ctx context.Context, systemPk int64) ([]Route, error) ListRoutesByPk(ctx context.Context, routePks []int64) ([]ListRoutesByPkRow, error) ListRoutesInAgency(ctx context.Context, agencyPk int64) ([]ListRoutesInAgencyRow, error) ListServiceMapConfigsInSystem(ctx context.Context, systemPk int64) ([]ServiceMapConfig, error) ListServiceMapsConfigIDsForStops(ctx context.Context, stopPks []int64) ([]ListServiceMapsConfigIDsForStopsRow, error) // TODO: make this better? ListServiceMapsForRoutes(ctx context.Context, routePks []int64) ([]ListServiceMapsForRoutesRow, error) ListServiceMapsForStops(ctx context.Context, stopPks []int64) ([]ListServiceMapsForStopsRow, error) ListStopHeadsignRulesForStops(ctx context.Context, stopPks []int64) ([]StopHeadsignRule, error) ListStopPksForRealtimeMap(ctx context.Context, routePk int64) ([]ListStopPksForRealtimeMapRow, error) ListStops(ctx context.Context, arg ListStopsParams) ([]Stop, error) ListStopsByPk(ctx context.Context, stopPks []int64) ([]ListStopsByPkRow, error) ListStopsTimesForTrip(ctx context.Context, tripPk int64) ([]ListStopsTimesForTripRow, error) ListStops_Geographic(ctx context.Context, arg ListStops_GeographicParams) ([]Stop, error) ListSystems(ctx context.Context) ([]System, error) ListTransfersFromStops(ctx context.Context, fromStopPks []int64) ([]Transfer, error) ListTransfersInSystem(ctx context.Context, systemPk pgtype.Int8) ([]ListTransfersInSystemRow, error) ListTripPksInSystem(ctx context.Context, arg ListTripPksInSystemParams) ([]ListTripPksInSystemRow, error) ListTripStopTimesByStops(ctx context.Context, stopPks []int64) ([]ListTripStopTimesByStopsRow, error) ListTripStopTimesForUpdate(ctx context.Context, tripPks []int64) ([]ListTripStopTimesForUpdateRow, error) ListTrips(ctx context.Context, routePks []int64) ([]ListTripsRow, error) ListVehicleUniqueColumns(ctx context.Context, arg ListVehicleUniqueColumnsParams) ([]ListVehicleUniqueColumnsRow, error) ListVehicles(ctx context.Context, arg ListVehiclesParams) ([]ListVehiclesRow, error) ListVehicles_Geographic(ctx context.Context, arg ListVehicles_GeographicParams) ([]ListVehicles_GeographicRow, error) MapAgencyPkToId(ctx context.Context, systemPk int64) ([]MapAgencyPkToIdRow, error) MapRouteIDToPkInSystem(ctx context.Context, arg MapRouteIDToPkInSystemParams) ([]MapRouteIDToPkInSystemRow, error) MapStopIDAndPkToStationPk(ctx context.Context, arg MapStopIDAndPkToStationPkParams) ([]MapStopIDAndPkToStationPkRow, error) MapStopIDToPk(ctx context.Context, arg MapStopIDToPkParams) ([]MapStopIDToPkRow, error) MapStopPkToChildPks(ctx context.Context, stopPks []int64) ([]MapStopPkToChildPksRow, error) MapStopPkToDescendentPks(ctx context.Context, stopPks []int64) ([]MapStopPkToDescendentPksRow, error) MapTripIDToPkInSystem(ctx context.Context, arg MapTripIDToPkInSystemParams) ([]MapTripIDToPkInSystemRow, error) MarkFailedUpdate(ctx context.Context, arg MarkFailedUpdateParams) error MarkSkippedUpdate(ctx context.Context, arg MarkSkippedUpdateParams) error MarkSuccessfulUpdate(ctx context.Context, arg MarkSuccessfulUpdateParams) error MarkTripStopTimesPast(ctx context.Context, arg []MarkTripStopTimesPastParams) *MarkTripStopTimesPastBatchResults UpdateAgency(ctx context.Context, arg UpdateAgencyParams) error UpdateFeed(ctx context.Context, arg UpdateFeedParams) error UpdateRoute(ctx context.Context, arg UpdateRouteParams) error UpdateServiceMapConfig(ctx context.Context, arg UpdateServiceMapConfigParams) error UpdateStop(ctx context.Context, arg UpdateStopParams) error UpdateStop_Parent(ctx context.Context, arg UpdateStop_ParentParams) error UpdateSystem(ctx context.Context, arg UpdateSystemParams) error UpdateSystemStatus(ctx context.Context, arg UpdateSystemStatusParams) error UpdateTrip(ctx context.Context, arg []UpdateTripParams) *UpdateTripBatchResults UpdateTripStopTime(ctx context.Context, arg UpdateTripStopTimeParams) error UpdateVehicle(ctx context.Context, arg UpdateVehicleParams) error }
type Queries ¶
type Queries struct {
// contains filtered or unexported fields
}
func (*Queries) CountAgenciesInSystem ¶
func (*Queries) CountFeedsInSystem ¶
func (*Queries) CountRoutesInSystem ¶
func (*Queries) CountStopsInSystem ¶
func (*Queries) CountTransfersInSystem ¶
func (*Queries) DeleteAlerts ¶
func (*Queries) DeleteServiceMap ¶
func (q *Queries) DeleteServiceMap(ctx context.Context, arg DeleteServiceMapParams) error
func (*Queries) DeleteServiceMapConfig ¶
func (*Queries) DeleteStaleAgencies ¶
func (q *Queries) DeleteStaleAgencies(ctx context.Context, arg DeleteStaleAgenciesParams) error
func (*Queries) DeleteStaleAlerts ¶
func (q *Queries) DeleteStaleAlerts(ctx context.Context, arg DeleteStaleAlertsParams) error
func (*Queries) DeleteStaleRoutes ¶
func (q *Queries) DeleteStaleRoutes(ctx context.Context, arg DeleteStaleRoutesParams) error
func (*Queries) DeleteStaleStops ¶
func (q *Queries) DeleteStaleStops(ctx context.Context, arg DeleteStaleStopsParams) error
func (*Queries) DeleteStaleTrips ¶
func (*Queries) DeleteStaleVehicles ¶
func (q *Queries) DeleteStaleVehicles(ctx context.Context, arg DeleteStaleVehiclesParams) error
func (*Queries) DeleteStopHeadsignRules ¶
func (*Queries) DeleteTransfers ¶
func (*Queries) DeleteTripStopTimes ¶
func (*Queries) EstimateHeadwaysForRoutes ¶
func (q *Queries) EstimateHeadwaysForRoutes(ctx context.Context, arg EstimateHeadwaysForRoutesParams) ([]EstimateHeadwaysForRoutesRow, error)
func (*Queries) GetAlertInSystem ¶
func (*Queries) GetDestinationsForTrips ¶
func (*Queries) GetTrip ¶
func (q *Queries) GetTrip(ctx context.Context, arg GetTripParams) (GetTripRow, error)
func (*Queries) GetVehicle ¶
func (q *Queries) GetVehicle(ctx context.Context, arg GetVehicleParams) (GetVehicleRow, error)
func (*Queries) InsertAgency ¶
func (*Queries) InsertAlert ¶
func (*Queries) InsertAlertActivePeriod ¶
func (q *Queries) InsertAlertActivePeriod(ctx context.Context, arg InsertAlertActivePeriodParams) error
func (*Queries) InsertAlertAgency ¶
func (q *Queries) InsertAlertAgency(ctx context.Context, arg InsertAlertAgencyParams) error
func (*Queries) InsertAlertRoute ¶
func (q *Queries) InsertAlertRoute(ctx context.Context, arg InsertAlertRouteParams) error
func (*Queries) InsertAlertStop ¶
func (q *Queries) InsertAlertStop(ctx context.Context, arg InsertAlertStopParams) error
func (*Queries) InsertFeed ¶
func (q *Queries) InsertFeed(ctx context.Context, arg InsertFeedParams) error
func (*Queries) InsertRoute ¶
func (*Queries) InsertServiceMap ¶
func (*Queries) InsertServiceMapConfig ¶
func (q *Queries) InsertServiceMapConfig(ctx context.Context, arg InsertServiceMapConfigParams) error
func (*Queries) InsertServiceMapStop ¶
func (*Queries) InsertStop ¶
func (*Queries) InsertStopHeadSignRule ¶
func (q *Queries) InsertStopHeadSignRule(ctx context.Context, arg InsertStopHeadSignRuleParams) error
func (*Queries) InsertSystem ¶
func (*Queries) InsertTransfer ¶
func (q *Queries) InsertTransfer(ctx context.Context, arg InsertTransferParams) error
func (*Queries) InsertTrip ¶
func (*Queries) InsertTripStopTime ¶
func (*Queries) InsertVehicle ¶
func (q *Queries) InsertVehicle(ctx context.Context, arg InsertVehicleParams) error
func (*Queries) ListActiveAlertsForAgencies ¶
func (q *Queries) ListActiveAlertsForAgencies(ctx context.Context, arg ListActiveAlertsForAgenciesParams) ([]ListActiveAlertsForAgenciesRow, error)
func (*Queries) ListActiveAlertsForRoutes ¶
func (q *Queries) ListActiveAlertsForRoutes(ctx context.Context, arg ListActiveAlertsForRoutesParams) ([]ListActiveAlertsForRoutesRow, error)
ListActiveAlertsForRoutes returns preview information about active alerts for the provided routes.
func (*Queries) ListActiveAlertsForStops ¶
func (q *Queries) ListActiveAlertsForStops(ctx context.Context, arg ListActiveAlertsForStopsParams) ([]ListActiveAlertsForStopsRow, error)
func (*Queries) ListActivePeriodsForAlerts ¶
func (*Queries) ListAgencies ¶
func (*Queries) ListAgenciesByPk ¶
func (*Queries) ListAlertPksAndHashes ¶
func (q *Queries) ListAlertPksAndHashes(ctx context.Context, arg ListAlertPksAndHashesParams) ([]ListAlertPksAndHashesRow, error)
func (*Queries) ListAlertsInSystem ¶
func (*Queries) ListAlertsInSystemAndByIDs ¶
func (*Queries) ListRoutes ¶
func (*Queries) ListRoutesByPk ¶
func (*Queries) ListRoutesInAgency ¶
func (*Queries) ListServiceMapConfigsInSystem ¶
func (*Queries) ListServiceMapsConfigIDsForStops ¶
func (*Queries) ListServiceMapsForRoutes ¶
func (q *Queries) ListServiceMapsForRoutes(ctx context.Context, routePks []int64) ([]ListServiceMapsForRoutesRow, error)
TODO: make this better?
func (*Queries) ListServiceMapsForStops ¶
func (*Queries) ListStopHeadsignRulesForStops ¶
func (*Queries) ListStopPksForRealtimeMap ¶
func (*Queries) ListStopsByPk ¶
func (*Queries) ListStopsTimesForTrip ¶
func (*Queries) ListStops_Geographic ¶
func (*Queries) ListTransfersFromStops ¶
func (*Queries) ListTransfersInSystem ¶
func (*Queries) ListTripPksInSystem ¶
func (q *Queries) ListTripPksInSystem(ctx context.Context, arg ListTripPksInSystemParams) ([]ListTripPksInSystemRow, error)
func (*Queries) ListTripStopTimesByStops ¶
func (*Queries) ListTripStopTimesForUpdate ¶
func (*Queries) ListVehicleUniqueColumns ¶
func (q *Queries) ListVehicleUniqueColumns(ctx context.Context, arg ListVehicleUniqueColumnsParams) ([]ListVehicleUniqueColumnsRow, error)
func (*Queries) ListVehicles ¶
func (q *Queries) ListVehicles(ctx context.Context, arg ListVehiclesParams) ([]ListVehiclesRow, error)
func (*Queries) ListVehicles_Geographic ¶
func (q *Queries) ListVehicles_Geographic(ctx context.Context, arg ListVehicles_GeographicParams) ([]ListVehicles_GeographicRow, error)
func (*Queries) MapAgencyPkToId ¶
func (*Queries) MapRouteIDToPkInSystem ¶
func (q *Queries) MapRouteIDToPkInSystem(ctx context.Context, arg MapRouteIDToPkInSystemParams) ([]MapRouteIDToPkInSystemRow, error)
func (*Queries) MapStopIDAndPkToStationPk ¶
func (q *Queries) MapStopIDAndPkToStationPk(ctx context.Context, arg MapStopIDAndPkToStationPkParams) ([]MapStopIDAndPkToStationPkRow, error)
func (*Queries) MapStopIDToPk ¶
func (q *Queries) MapStopIDToPk(ctx context.Context, arg MapStopIDToPkParams) ([]MapStopIDToPkRow, error)
func (*Queries) MapStopPkToChildPks ¶
func (*Queries) MapStopPkToDescendentPks ¶
func (*Queries) MapTripIDToPkInSystem ¶
func (q *Queries) MapTripIDToPkInSystem(ctx context.Context, arg MapTripIDToPkInSystemParams) ([]MapTripIDToPkInSystemRow, error)
func (*Queries) MarkFailedUpdate ¶
func (q *Queries) MarkFailedUpdate(ctx context.Context, arg MarkFailedUpdateParams) error
func (*Queries) MarkSkippedUpdate ¶
func (q *Queries) MarkSkippedUpdate(ctx context.Context, arg MarkSkippedUpdateParams) error
func (*Queries) MarkSuccessfulUpdate ¶
func (q *Queries) MarkSuccessfulUpdate(ctx context.Context, arg MarkSuccessfulUpdateParams) error
func (*Queries) MarkTripStopTimesPast ¶
func (q *Queries) MarkTripStopTimesPast(ctx context.Context, arg []MarkTripStopTimesPastParams) *MarkTripStopTimesPastBatchResults
func (*Queries) UpdateAgency ¶
func (q *Queries) UpdateAgency(ctx context.Context, arg UpdateAgencyParams) error
func (*Queries) UpdateFeed ¶
func (q *Queries) UpdateFeed(ctx context.Context, arg UpdateFeedParams) error
func (*Queries) UpdateRoute ¶
func (q *Queries) UpdateRoute(ctx context.Context, arg UpdateRouteParams) error
func (*Queries) UpdateServiceMapConfig ¶
func (q *Queries) UpdateServiceMapConfig(ctx context.Context, arg UpdateServiceMapConfigParams) error
func (*Queries) UpdateStop ¶
func (q *Queries) UpdateStop(ctx context.Context, arg UpdateStopParams) error
func (*Queries) UpdateStop_Parent ¶
func (q *Queries) UpdateStop_Parent(ctx context.Context, arg UpdateStop_ParentParams) error
func (*Queries) UpdateSystem ¶
func (q *Queries) UpdateSystem(ctx context.Context, arg UpdateSystemParams) error
func (*Queries) UpdateSystemStatus ¶
func (q *Queries) UpdateSystemStatus(ctx context.Context, arg UpdateSystemStatusParams) error
func (*Queries) UpdateTrip ¶
func (q *Queries) UpdateTrip(ctx context.Context, arg []UpdateTripParams) *UpdateTripBatchResults
func (*Queries) UpdateTripStopTime ¶
func (q *Queries) UpdateTripStopTime(ctx context.Context, arg UpdateTripStopTimeParams) error
func (*Queries) UpdateVehicle ¶
func (q *Queries) UpdateVehicle(ctx context.Context, arg UpdateVehicleParams) error
type ScheduledService ¶
type ScheduledServiceRemoval ¶
type ScheduledTrip ¶
type ScheduledTripFrequency ¶
type ScheduledTripStopTime ¶
type ScheduledTripStopTime struct { Pk int64 TripPk int64 StopPk int64 ArrivalTime pgtype.Time DepartureTime pgtype.Time StopSequence int32 ContinuousDropOff string ContinuousPickup string DropOffType string ExactTimes bool Headsign pgtype.Text PickupType string ShapeDistanceTraveled pgtype.Float8 }
type ServiceMap ¶
type ServiceMapConfig ¶
type ServiceMapVertex ¶
type Stop ¶
type Stop struct { Pk int64 ID string SystemPk int64 ParentStopPk pgtype.Int8 Name pgtype.Text Longitude pgtype.Numeric Latitude pgtype.Numeric Url pgtype.Text Code pgtype.Text Description pgtype.Text PlatformCode pgtype.Text Timezone pgtype.Text Type string WheelchairBoarding pgtype.Bool ZoneID pgtype.Text FeedPk int64 }
type StopHeadsignRule ¶
type TripStopTime ¶
type TripStopTime struct { Pk int64 StopPk int64 TripPk int64 ArrivalTime pgtype.Timestamptz ArrivalDelay pgtype.Int4 ArrivalUncertainty pgtype.Int4 DepartureTime pgtype.Timestamptz DepartureDelay pgtype.Int4 DepartureUncertainty pgtype.Int4 StopSequence int32 Track pgtype.Text Headsign pgtype.Text Past bool }
type UpdateAgencyParams ¶
type UpdateFeedParams ¶
type UpdateRouteParams ¶
type UpdateStopParams ¶
type UpdateStop_ParentParams ¶
type UpdateSystemParams ¶
type UpdateTripBatchResults ¶
type UpdateTripBatchResults struct {
// contains filtered or unexported fields
}
func (*UpdateTripBatchResults) Close ¶
func (b *UpdateTripBatchResults) Close() error
func (*UpdateTripBatchResults) Exec ¶
func (b *UpdateTripBatchResults) Exec(f func(int, error))
type UpdateTripParams ¶
type UpdateTripStopTimeParams ¶
type UpdateTripStopTimeParams struct { StopPk int64 ArrivalTime pgtype.Timestamptz ArrivalDelay pgtype.Int4 ArrivalUncertainty pgtype.Int4 DepartureTime pgtype.Timestamptz DepartureDelay pgtype.Int4 DepartureUncertainty pgtype.Int4 StopSequence int32 Track pgtype.Text Headsign pgtype.Text Pk int64 }
type UpdateVehicleParams ¶
type UpdateVehicleParams struct { TripPk pgtype.Int8 Label pgtype.Text LicensePlate pgtype.Text CurrentStatus pgtype.Text Latitude pgtype.Numeric Longitude pgtype.Numeric Bearing pgtype.Float4 Odometer pgtype.Float8 Speed pgtype.Float4 CongestionLevel string UpdatedAt pgtype.Timestamptz CurrentStopPk pgtype.Int8 CurrentStopSequence pgtype.Int4 OccupancyStatus pgtype.Text FeedPk int64 OccupancyPercentage pgtype.Int4 Pk int64 }
type Vehicle ¶
type Vehicle struct { Pk int64 ID pgtype.Text SystemPk int64 TripPk pgtype.Int8 Label pgtype.Text LicensePlate pgtype.Text CurrentStatus pgtype.Text Latitude pgtype.Numeric Longitude pgtype.Numeric Bearing pgtype.Float4 Odometer pgtype.Float8 Speed pgtype.Float4 CongestionLevel string UpdatedAt pgtype.Timestamptz CurrentStopPk pgtype.Int8 CurrentStopSequence pgtype.Int4 OccupancyStatus pgtype.Text FeedPk int64 OccupancyPercentage pgtype.Int4 }
Source Files
¶
Click to show internal directories.
Click to hide internal directories.