Documentation ¶
Index ¶
- func RetryRecords(queue *railutils.BatchProcessingQueue)
- type Formation
- type FormationCoach
- type FormationCoachToilet
- type FormationLoading
- type FormationLoadingLoading
- type PushPortData
- type Schedule
- type ScheduleFormations
- type ScheduleStop
- type StationMessage
- type StationMessageMessage
- type StationMessageStation
- type StompClient
- type TrainAlert
- type TrainAlertServices
- type TrainStatus
- type TrainStatusLocation
- type TrainStatusPlatform
- type TrainStatusTiming
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RetryRecords ¶
func RetryRecords(queue *railutils.BatchProcessingQueue)
Types ¶
type Formation ¶
type Formation struct { FID string `xml:"fid,attr"` Coaches []FormationCoach `xml:"coaches>coach"` }
type FormationCoach ¶
type FormationCoach struct { Number string `xml:"coachNumber,attr"` Class string `xml:"coachClass,attr"` Toilets []FormationCoachToilet `xml:"toilet"` }
type FormationCoachToilet ¶
type FormationLoading ¶
type FormationLoadingLoading ¶
type PushPortData ¶
type PushPortData struct { TrainStatuses []TrainStatus Schedules []Schedule FormationLoadings []FormationLoading StationMessages []StationMessage TrainAlerts []TrainAlert ScheduleFormations []ScheduleFormations }
func ParseXMLFile ¶
func ParseXMLFile(reader io.Reader) (PushPortData, error)
func (*PushPortData) UpdateRealtimeJourneys ¶
func (p *PushPortData) UpdateRealtimeJourneys(queue *railutils.BatchProcessingQueue)
type Schedule ¶
type Schedule struct { RID string `xml:"rid,attr"` UID string `xml:"uid,attr"` SSD string `xml:"ssd,attr"` TOC string `xml:"toc,attr"` CancelReason string `xml:"cancelReason"` Origin ScheduleStop `xml:"OR"` Intermediate []ScheduleStop `xml:"IP"` Destination ScheduleStop `xml:"DT"` InnerXML string `xml:",innerxml"` }
type ScheduleFormations ¶
type ScheduleStop ¶
type StationMessage ¶
type StationMessage struct { ID string `xml:"id,attr"` Category string `xml:"cat,attr"` Severity string `xml:"sev,attr"` Stations []StationMessageStation `xml:"Station"` Message StationMessageMessage `xml:"Msg"` }
type StationMessageMessage ¶
type StationMessageMessage struct {
InnerXML string `xml:",innerxml"`
}
type StationMessageStation ¶
type StationMessageStation struct {
CRS string `xml:"crs,attr"`
}
type StompClient ¶
func (*StompClient) Run ¶
func (s *StompClient) Run()
type TrainAlert ¶
type TrainAlertServices ¶
type TrainStatus ¶
type TrainStatus struct { RID string `xml:"rid,attr"` UID string `xml:"uid,attr"` SSD string `xml:"ssd,attr"` LateReason string Locations []TrainStatusLocation `xml:"Location"` }
type TrainStatusLocation ¶
type TrainStatusLocation struct { TPL string `xml:"tpl,attr"` WTD string `xml:"wtd,attr"` PTD string `xml:"ptd,attr"` Departure *TrainStatusTiming `xml:"dep"` Arrival *TrainStatusTiming `xml:"arr"` Pass *TrainStatusTiming `xml:"pass"` Platform *TrainStatusPlatform `xml:"plat"` }
type TrainStatusPlatform ¶
Click to show internal directories.
Click to hide internal directories.