Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrStopNotFound is returned if the queried stop isn't found ErrStopNotFound = status.New(codes.NotFound, "stop not found") // ErrStopCutoffInvalid is returned if the stop cutoff is invalid ErrStopCutoffInvalid = status.New(codes.InvalidArgument, "stop cutoff not a valid time") )
Functions ¶
This section is empty.
Types ¶
type Feed ¶
type Feed struct {
// contains filtered or unexported fields
}
Feed represents a single feed, potentially encapsulating both static and real-time elements.
func (*Feed) GetRealtimeFeed ¶
func (f *Feed) GetRealtimeFeed(ctx context.Context) (*gtfs_realtime.FeedMessage, error)
GetRealtimeFeed retrieves the GTFS realtime data.
func (*Feed) MonitorRealtimeFeed ¶
MonitorRealtimeFeed periodically polls the realtime feed endpoint and updates the times for the trips.
Source Files ¶
Click to show internal directories.
Click to hide internal directories.