update

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2024 License: MIT Imports: 21 Imported by: 0

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.

Jump to

Keyboard shortcuts

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