Versions in this module Expand all Collapse all v1 v1.0.0 May 31, 2025 Changes in this version + type Client struct + func NewClient(config Config) *Client + func (c *Client) GetLines(ctx context.Context, options *GetLinesParams) (*GetLinesResponse, error) + func (c *Client) GetPoint(ctx context.Context, options *GetPointParams) (*GetPointResponse, error) + func (c *Client) GetRoute(ctx context.Context, options *GetRouteParams) (*GetRouteResponse, error) + func (c *Client) MonitorStop(ctx context.Context, options *MonitorStopParams) (*MonitorStopResponse, error) + type Config struct + BaseURL string + HTTPClient *http.Client + Timeout time.Duration + UserAgent string + type Departure struct + CancelReasons []string + Direction string + Diva Diva + DlId string + Id string + LineName string + Mot string + Occupancy string + Platform Platform + RealTime string + RouteChanges []string + ScheduledTime string + State string + type Direction struct + Name string + TimeTables []TimeTable + type Diva struct + Network string + Number string + type GetLinesParams struct + Format *string + StopId string + type GetLinesResponse struct + ExpirationTime string + Lines []Line + Status Status + type GetPointParams struct + AssignedStops *bool + Dvb *bool + Format *string + Limit *int + Query string + StopsOnly *bool + type GetPointResponse struct + ExpirationTime string + PointStatus string + Points []string + Status Status + type GetRouteParams struct + Destination string + Format *string + IsArrivalTime *bool + Origin string + ShortTermChanges *bool + Time *string + Via *string + type GetRouteResponse struct + Routes []Route + SessionId string + Status Status + type Line struct + Changes []string + Directions []Direction + Diva Diva + Mot string + Name string + type MonitorStopParams struct + Format *string + IsArrival *bool + Limit *int + MentzOnly *bool + ShortTermChanges *bool + StopId string + Time *string + type MonitorStopResponse struct + Departures []Departure + ExpirationTime string + Name string + Place string + Status Status + type Mot struct + Changes []string + Direction *string + Diva *Diva + DlId *string + Name *string + OperatorCode *string + ProductName *string + StatelessId *string + TrainNumber *string + TransportationCompany *string + Type string + type MotChain struct + Changes []string + Direction string + Diva Diva + DlId string + Name string + OperatorCode string + ProductName string + StatelessId string + TrainNumber string + TransportationCompany string + Type string + type PartialRoute struct + ChangeoverEndangered *bool + Duration int + MapDataIndex *int + Mot Mot + NextDepartureTimes []string + PartialRouteId *int + PreviousDepartureTimes []string + RegularStops []RegularStop + Shift string + type Platform struct + Name string + Type string + type RegularStop struct + ArrivalRealTime *string + ArrivalState *string + ArrivalTime string + CancelReasons []string + DataId string + DepartureRealTime *string + DepartureState *string + DepartureTime string + DhId string + Latitude int + Longitude int + Name string + Occupancy string + ParkAndRail []string + Place string + Platform Platform + Type string + type Route struct + Duration int + FareZoneDestination int + FareZoneNames string + FareZoneNamesDayTicket string + FareZoneOrigin int + Interchanges int + MapData []string + MotChain []MotChain + Net string + NumberOfFareZones string + NumberOfFareZonesDayTicket string + PartialRoutes []PartialRoute + Price string + PriceDayTicket string + PriceLevel int + RouteId int + Tickets []Ticket + type Status struct + Code string + Message string + type Ticket struct + FareZoneNames string + Name string + NumberOfFareZones string + Price string + PriceLevel int + type TimeTable struct + Id string + Name string