Versions in this module Expand all Collapse all v0 v0.1.0 May 9, 2019 Changes in this version + type BusIncident struct + DateUpdated string + Description string + IncidentID string + IncidentType string + RoutesAffected []string + type ElevatorIncident struct + DateOutOfService string + DateUpdated string + DisplayOrder int + EstimatedReturnToService string + LocationDescription string + StationCode string + StationName string + SymptomCode string + SymptomDescription string + TimeOutOfService string + UnitName string + UnitStatus string + UnitType string + type GetBusIncidentsResponse struct + BusIncidents []BusIncident + XMLName xml.Name + type GetElevatorEscalatorOutagesResponse struct + ElevatorIncidents []ElevatorIncident + XMLName xml.Name + type GetRailIncidentsResponse struct + RailIncidents []RailIncident + XMLName xml.Name + type Incidents interface + GetBusIncidents func(route string) (*GetBusIncidentsResponse, error) + GetOutages func(stationCode string) (*GetElevatorEscalatorOutagesResponse, error) + GetRailIncidents func() (*GetRailIncidentsResponse, error) + type RailIncident struct + DateUpdated string + DelaySeverity string + Description string + EmergencyText string + EndLocationFullName string + IncidentID string + IncidentType string + LinesAffected string + PassengerDelay int + StartLocationFullName string + type Service struct + func NewService(client *wmata.Client, responseType wmata.ResponseType) *Service + func (incidentService *Service) GetBusIncidents(route string) (*GetBusIncidentsResponse, error) + func (incidentService *Service) GetOutages(stationCode string) (*GetElevatorEscalatorOutagesResponse, error) + func (incidentService *Service) GetRailIncidents() (*GetRailIncidentsResponse, error)