Documentation ¶
Overview ¶
Package update implements the feed update mechanism.
Index ¶
Constants ¶
View Source
const ( NyctSubwayCsv = "NYCT_SUBWAY_CSV" GtfsRealtime = "GTFS_REALTIME" GtfsStatic = "GTFS_STATIC" )
Variables ¶
This section is empty.
Functions ¶
func NormalizeFeedConfig ¶
func NormalizeFeedConfig(feedConfig *api.FeedConfig)
func Update ¶
func Update(ctx context.Context, logger *slog.Logger, pool *pgxpool.Pool, m monitoring.Monitoring, systemID, feedID string, force bool) (*api.FeedUpdate, error)
Types ¶
This section is empty.
Directories ¶
Path | Synopsis |
---|---|
Package common contains types used by all update code.
|
Package common contains types used by all update code. |
Package nyctsubwaycsv contains logic for updating the stop headsign rules from the NYCT CSV file.
|
Package nyctsubwaycsv contains logic for updating the stop headsign rules from the NYCT CSV file. |
Package realtime contains the code for updating the database from a GTFS realtime feed.
|
Package realtime contains the code for updating the database from a GTFS realtime feed. |
Package static contains the code for updating the database from a GTFS static feed.
|
Package static contains the code for updating the database from a GTFS static feed. |
Click to show internal directories.
Click to hide internal directories.