Back End - wtg/shuttletracker GitHub Wiki
Back End
GoDoc provides an easy way to view documentation for Shuttle Tracker's backend. It's always up to date with the latest commits on GitHub.
API
API is responsible for configuring handlers for HTTP endpoints.
Auth
Represents an authentication service for login.
Config
The global configuration structure.
Postgres
PostgreSQL is the database Shuttle Tracker uses to hold data for shuttles, stops, routes, etc. Shuttle Tracker has many functions that interface with Postgres to add and remove objects within its database.
Updater
The updater retrieves information from the iTRAK data feed as it is sent.
Spoofer
The spoofer, when enabled in the config, will periodically create fake updates that simulate real shuttle movement. It can be used to test Shuttle Tracker when no shuttles are running.
ETA
ETAs are created by calculating the time, in minutes, that it will take a shuttle to arrive at the nearest stop to a user. This ETA is then displayed to the user.