Documentation
¶
Index ¶
- type AdvisoryService
- func (s *AdvisoryService) Bsa(r *BsaRequest) (resp BsaResponse, err error)
- func (s *AdvisoryService) ElevatorStatus(r *ElevRequest) (resp BsaResponse, err error)
- func (s *AdvisoryService) Help(r *HelpRequest) (resp HelpResponse, err error)
- func (s *AdvisoryService) TrainCount(r *CountRequest) (resp CountResponse, err error)
- type BartClient
- type BartResponseMeta
- type Bsa
- type BsaRequest
- type BsaResponse
- type CountRequest
- type CountResponse
- type Departure
- type DepartureStation
- type ElevRequest
- type Estimate
- type EstimateDepartureRequest
- type EstimateDepartureResponse
- type HelpRequest
- type HelpResponse
- type Message
- type RealTimeEstimateService
- type Station
- type StationAccess
- type StationAccessRequest
- type StationAccessResponse
- type StationDetail
- type StationInfoRequest
- type StationInfoResponse
- type StationInfoService
- func (s *StationInfoService) Help(r *HelpRequest) (resp HelpResponse, err error)
- func (s *StationInfoService) StationAccess(r *StationAccessRequest) (resp StationAccessResponse, err error)
- func (s *StationInfoService) StationInfo(r *StationInfoRequest) (resp StationInfoResponse, err error)
- func (s *StationInfoService) Stations(r *StationListRequest) (resp StationListResponse, err error)
- type StationListRequest
- type StationListResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AdvisoryService ¶
type AdvisoryService struct{}
func (*AdvisoryService) Bsa ¶
func (s *AdvisoryService) Bsa(r *BsaRequest) (resp BsaResponse, err error)
func (*AdvisoryService) ElevatorStatus ¶
func (s *AdvisoryService) ElevatorStatus(r *ElevRequest) (resp BsaResponse, err error)
func (*AdvisoryService) Help ¶
func (s *AdvisoryService) Help(r *HelpRequest) (resp HelpResponse, err error)
func (*AdvisoryService) TrainCount ¶
func (s *AdvisoryService) TrainCount(r *CountRequest) (resp CountResponse, err error)
type BartClient ¶
type BartClient struct {
Advisories *AdvisoryService
StationInfo *StationInfoService
RealTimeEstimates *RealTimeEstimateService
}
func New ¶
func New() BartClient
type BartResponseMeta ¶
type BsaRequest ¶
type BsaRequest struct {
Orig string `url:"orig"`
}
type BsaResponse ¶
type BsaResponse struct {
BartResponseMeta
Bsa Bsa `xml:"bsa"`
}
type CountRequest ¶
type CountRequest struct{}
type CountResponse ¶
type CountResponse struct {
BartResponseMeta
TrainCount int `xml:"traincount"`
}
type DepartureStation ¶
type ElevRequest ¶
type ElevRequest struct{}
type EstimateDepartureResponse ¶
type EstimateDepartureResponse struct {
BartResponseMeta
Station DepartureStation `xml:"station"`
}
type HelpRequest ¶
type HelpRequest struct{}
type HelpResponse ¶
type HelpResponse struct {
BartResponseMeta
Message Message `xml:"message"`
}
type RealTimeEstimateService ¶
type RealTimeEstimateService struct{}
func (*RealTimeEstimateService) Departures ¶
func (s *RealTimeEstimateService) Departures(r *EstimateDepartureRequest) (resp EstimateDepartureResponse, err error)
type StationAccess ¶
type StationAccess struct {
Name string `xml:"name"`
Abbr string `xml:"abbr"`
Link string `xml:"link"`
ParkingFlag int `xml:"parking_flag,attr"`
BikeFlag int `xml:"bike_flag,attr"`
BikeStationFlag int `xml:"bike_station_flag,attr"`
LockerFlag int `xml:"locker_flag,attr"`
Entering string `xml:"entering"`
Exiting string `xml:"exiting"`
Parking string `xml:"parking"`
FillTime string `xml:"fill_time"`
Lockers string `xml:"lockers"`
BikeStationText string `xml:"bike_station_text"`
Destinations string `xml:"destinations"`
TransitInfo string `xml:"transit_info"`
}
type StationAccessRequest ¶
type StationAccessResponse ¶
type StationAccessResponse struct {
BartResponseMeta
Station StationAccess `xml:"stations>station"`
Legend string `xml:"message>legend"`
}
type StationDetail ¶
type StationDetail struct {
Station
NorthRoutes []string `xml:"north_routes>route"`
SouthRoutes []string `xml:"south_routes>route"`
NorthPlatforms []string `xml:"north_platforms>platform"`
SouthPlatforms []string `xml:"south_platforms>platform"`
PlatformInfo string `xml:"platform_info"`
Intro string `xml:"intro"`
CrossStreet string `xml:"cross_street"`
Food string `xml:"food"`
Shopping string `xml:"shopping"`
Attraction string `xml:"attraction"`
}
type StationInfoRequest ¶
type StationInfoRequest struct {
Origin string `url:"orig"`
}
type StationInfoResponse ¶
type StationInfoResponse struct {
BartResponseMeta
Station StationDetail `xml:"stations>station"`
}
type StationInfoService ¶
type StationInfoService struct{}
func (*StationInfoService) Help ¶
func (s *StationInfoService) Help(r *HelpRequest) (resp HelpResponse, err error)
func (*StationInfoService) StationAccess ¶
func (s *StationInfoService) StationAccess(r *StationAccessRequest) (resp StationAccessResponse, err error)
func (*StationInfoService) StationInfo ¶
func (s *StationInfoService) StationInfo(r *StationInfoRequest) (resp StationInfoResponse, err error)
func (*StationInfoService) Stations ¶
func (s *StationInfoService) Stations(r *StationListRequest) (resp StationListResponse, err error)
type StationListRequest ¶
type StationListRequest struct{}
type StationListResponse ¶
type StationListResponse struct {
BartResponseMeta
Stations []Station `xml:"stations>station"`
}
Click to show internal directories.
Click to hide internal directories.