20 lines
773 B
Go
20 lines
773 B
Go
package cif
|
|
|
|
import "time"
|
|
|
|
// The URL required for a daily update of the CIF Data - The 'day string' must be appended
|
|
const dailyUpdateUrl = "https://publicdatafeeds.networkrail.co.uk/ntrod/CifFileAuthenticate?type=CIF_ALL_UPDATE_DAILY&day=toc-update-"
|
|
|
|
// The URL required for a full fetch of the CIF Data
|
|
const fullUpdateUrl = "https://publicdatafeeds.networkrail.co.uk/ntrod/CifFileAuthenticate?type=CIF_ALL_FULL_DAILY&day=toc-full"
|
|
|
|
// The time at which CIF Data is expected to be available for download (full hour)
|
|
const dataAvailable = 6
|
|
|
|
// Define update type strings to pass into metadata
|
|
const fullUpdateType = "full"
|
|
const dailyUpdateType = "daily"
|
|
|
|
// An object representing the Europe/London timezone
|
|
var londonTimezone, _ = time.LoadLocation("Europe/London")
|