Skip to content
This repository has been archived by the owner on Feb 16, 2022. It is now read-only.

Back End

Matt Czyr edited this page Feb 27, 2021 · 2 revisions

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.

All Shuttle Tracker GoDocs

API

API is responsible for configuring handlers for HTTP endpoints.

API GoDoc

Auth

Represents an authentication service for login.

Auth GoDoc

Config

The global configuration structure.

Config GoDoc

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.

Postgres GoDoc

Updater

The updater retrieves information from the iTRAK data feed as it is sent.

Updater GoDoc

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.

Spoofer GoDoc

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.

ETA GoDoc