Documentation ¶
Index ¶
- type CifScheduleLocation
- type CifScheduleSegment
- type JsonAssociationV1
- type JsonScheduleV1
- type JsonTimetableV1
- type LocationTiploc
- type MsgData
- type ScheduleNewScheduleSegment
- type TimetableMetadata
- type TimetableSender
- type VSTPSchedule
- type VSTPScheduleLocation
- type VSTPScheduleSegment
- type VstpMsg
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CifScheduleLocation ¶
type CifScheduleLocation struct { LocationType string `json:"location_type"` RecordIdentity string `json:"record_identity"` TiplocCode string `json:"tiploc_code"` TiplocInstance string `json:"tiploc_instance"` Arrival string `json:"arrival"` PublicArrival string `json:"public_arrival"` Departure string `json:"departure"` PublicDeparture string `json:"public_departure"` Pass string `json:"pass"` Path string `json:"path"` Platform string `json:"platform"` Line string `json:"line"` EngineeringAllowance string `json:"engineering_allowance"` PathingAllowance string `json:"pathing_allowance"` PerformanceAllowance string `json:"performance_allowance"` }
Part of the CifScheduleSegment type
type CifScheduleSegment ¶
type CifScheduleSegment struct { SignallingId string `json:"signalling_id"` CifTrainCategory string `json:"CIF_train_category"` CifHeadcode string `json:"CIF_headcode"` // CifCourseIndicator int64 `json:"CIF_course_indicator"` CifTrainServiceCode string `json:"CIF_train_service_code"` CifBusinessSector string `json:"CIF_business_sector"` CifPowerType string `json:"CIF_power_type"` CifTimingLoad string `json:"CIF_timing_load"` CifSpeed string `json:"CIF_speed"` CifOperatingCharacteristics string `json:"CIF_operating_characteristics"` CifTrainClass string `json:"CIF_train_class"` CifSleepers string `json:"CIF_sleepers"` CifReservations string `json:"CIF_reservations"` // CifConnectionIndicator string `json:"CIF_connection_indicator"` CifCateringCode string `json:"CIF_catering_code"` // CifServiceBranding string `json:"CIF_service_branding"` ScheduleLocation []CifScheduleLocation `json:"schedule_location"` }
Part of the JsonScheduleV1 type - Not used keys commented out
type JsonAssociationV1 ¶
type JsonAssociationV1 struct { TransactionType string `json:"transaction_type"` MainTrainUid string `json:"main_train_uid"` AssocTrainUid string `json:"assoc_train_uid"` AssocStartDate time.Time `json:"assoc_start_date"` AssocEndDate time.Time `json:"assoc_end_date"` Location string `json:"location"` BaseLocationSuffix string `json:"base_location_suffix"` DiagramType string `json:"diagram_type"` AssocDays string `json:"assoc_days"` Category string `json:"category"` CifStpIndicator string `json:"CIF_stp_indicator"` DateIndicator string `json:"date_indicator"` }
Defines the JsonAssociation lines of a CIF File
type JsonScheduleV1 ¶
type JsonScheduleV1 struct { TransactionType string `json:"transaction_type"` CifBankHolidayRunning string `json:"CIF_bank_holiday_running"` CifStpIndicator string `json:"CIF_stp_indicator"` CifTrainUid string `json:"CIF_train_uid"` ApplicableTimetable string `json:"applicable_timetable"` AtocCode string `json:"atoc_code"` NewScheduleSegment ScheduleNewScheduleSegment `json:"new_schedule_segment"` ScheduleDaysRun string `json:"schedule_days_runs"` ScheduleStartDate string `json:"schedule_start_date"` ScheduleEndDate string `json:"schedule_end_date"` ScheduleSegment CifScheduleSegment `json:"schedule_segment"` }
Defined a schedule entry from a CIF File
type JsonTimetableV1 ¶
type JsonTimetableV1 struct { Classification string `json:"classification"` Timestamp int64 `json:"timestamp"` Owner string `json:"owner"` Sender TimetableSender `json:"Sender"` Metadata TimetableMetadata `json:"Metadata"` }
Defines the first JSON line of a CIF file, containing metadata
type LocationTiploc ¶
type LocationTiploc struct { Tiploc struct { TiplocId string `json:"tiploc_id,omitempty"` } `json:"tiploc,omitempty"` }
Part of the VSTPScheduleLocaiton type
type ScheduleNewScheduleSegment ¶
type ScheduleNewScheduleSegment struct { TractionClass string `json:"traction_class"` UidCode string `json:"uid_code"` }
Part of the JsonScheduleV1 type
type TimetableMetadata ¶
Part of the JsonTimetableV1 type
type TimetableSender ¶
type TimetableSender struct { Organisation string `json:"organisation"` Application string `json:"application"` Component string `json:"component"` }
Part of the JsonTimetableV1 type
type VSTPSchedule ¶ added in v1.1.3
type VSTPSchedule struct { TransactionType string `json:"transaction_type"` CifBankHolidayRunning string `json:"CIF_bank_holiday_running"` CifStpIndicator string `json:"CIF_stp_indicator"` CifTrainUid string `json:"CIF_train_uid"` ApplicableTimetable string `json:"applicable_timetable"` ScheduleDaysRun string `json:"schedule_days_runs"` ScheduleStartDate string `json:"schedule_start_date"` ScheduleEndDate string `json:"schedule_end_date"` ScheduleSegment []VSTPScheduleSegment `json:"schedule_segment"` }
VSTP Version of the JsonScheduleV1 type
type VSTPScheduleLocation ¶ added in v1.1.3
type VSTPScheduleLocation struct { Arrival string `json:"scheduled_arrival_time"` PublicArrival string `json:"public_arrival_time"` Departure string `json:"scheduled_departure_time"` PublicDeparture string `json:"public_departure_time"` Pass string `json:"scheduled_pass_time"` Path string `json:"CIF_path"` Platform string `json:"CIF_platform"` Line string `json:"CIF_line"` EngineeringAllowance string `json:"CIF_engineering_allowance"` PathingAllowance string `json:"CIF_pathing_allowance"` PerformanceAllowance string `json:"CIF_performance_allowance"` Location LocationTiploc `json:"location"` }
Part of the VSTPScheduleSegment type
type VSTPScheduleSegment ¶ added in v1.1.3
type VSTPScheduleSegment struct { SignallingId string `json:"signalling_id"` AtocCode string `json:"atoc_code"` CifTrainCategory string `json:"CIF_train_category"` CifHeadcode string `json:"CIF_headcode"` // CifCourseIndicator int64 `json:"CIF_course_indicator"` CifTrainServiceCode string `json:"CIF_train_service_code"` CifBusinessSector string `json:"CIF_business_sector"` CifPowerType string `json:"CIF_power_type"` CifTimingLoad string `json:"CIF_timing_load"` CifSpeed string `json:"CIF_speed"` CifOperatingCharacteristics string `json:"CIF_operating_characteristics"` CifTrainClass string `json:"CIF_train_class"` CifSleepers string `json:"CIF_sleepers"` CifReservations string `json:"CIF_reservations"` // CifConnectionIndicator string `json:"CIF_connection_indicator"` CifCateringCode string `json:"CIF_catering_code"` CifServiceBranding string `json:"CIF_service_branding"` ScheduleLocation []VSTPScheduleLocation `json:"schedule_location"` }
Part of the VSTPSchedule type - Not used keys commented out
type VstpMsg ¶
type VstpMsg struct {
CIFMsg VSTPSchedule `json:"schedule,omitempty"`
}
Click to show internal directories.
Click to hide internal directories.