ttssmonitor

package
v0.14.0 Latest Latest
Warning

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

Go to latest
Published: May 12, 2022 License: GPL-3.0 Imports: 3 Imported by: 0

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.

Jump to

Keyboard shortcuts

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