extensions

package
v0.1.14 Latest Latest
Warning

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

Go to latest
Published: Mar 8, 2023 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Extension

type Extension interface {
	// TODO PreprocessTrip etc
	// TODO remove isAssigned
	UpdateTrip(trip *gtfsrt.TripUpdate, feedCreatedAt uint64) UpdateTripResult

	UpdateVehicle(vehicle *gtfsrt.VehiclePosition)

	UpdateAlert(ID *string, alert *gtfsrt.Alert) bool

	GetTrack(stopTimeUpdate *gtfsrt.TripUpdate_StopTimeUpdate) *string
}

func NoExtension

func NoExtension() Extension

type NoExtensionImpl

type NoExtensionImpl struct {
}

func (NoExtensionImpl) GetTrack

func (n NoExtensionImpl) GetTrack(stopTimeUpdate *gtfsrt.TripUpdate_StopTimeUpdate) *string

func (NoExtensionImpl) UpdateAlert

func (n NoExtensionImpl) UpdateAlert(ID *string, alert *gtfsrt.Alert) bool

func (NoExtensionImpl) UpdateTrip

func (n NoExtensionImpl) UpdateTrip(trip *gtfsrt.TripUpdate, feedCreatedAt uint64) UpdateTripResult

func (NoExtensionImpl) UpdateVehicle

func (n NoExtensionImpl) UpdateVehicle(vehicle *gtfsrt.VehiclePosition)

type UpdateTripResult

type UpdateTripResult struct {
	// Whether this trip should be skipped.
	ShouldSkip bool

	// Value of the NyctIsAssigned field if the entity is a trip. This field is ignored for vehicles.
	NyctIsAssigned bool
}

Directories

Path Synopsis
Package nycttrips contains logic for the New York City Transit GTFS realtime extenstions
Package nycttrips contains logic for the New York City Transit GTFS realtime extenstions

Jump to

Keyboard shortcuts

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