Documentation ¶
Index ¶
Constants ¶
View Source
const ( OK = iota OTHER_ERROR // Please check logs for detailed error REQUEST_FAILED // Request failed REQUEST_NON_200 // Request returned non 200 status code EMPTY_DEPARTURES // No departures received (with 200 status code) STOP_NOT_FOUND // Stop was not found )
Errors below are sorted by severity - we care the most on the request that succeded, but returned no departures
Variables ¶
This section is empty.
Functions ¶
func GetDeparturesErrorCode ¶
func GetDeparturesErrorCode(e ttss.Endpointer, id uint) int
GetDeparturesErrorCode returns error that can be consumed by e.g. Prometheus.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.