Documentation ¶
Index ¶
- type AgencyService
- type StopService
- func (ss *StopService) ExtractTripIds(stops models.Stops) []int
- func (ss *StopService) FetchFirstAndLastStopNamesByTripIds(agencyKey string, tripIds []int) map[int]models.FirstLastStopNamesByTripId
- func (ss *StopService) FetchStopById(agencyKey, date, timeOfDay, stopId string, limit int) models.Stops
- func (ss *StopService) FetchStopsByDate(agencyKey, date, timeOfDay, lat, lon, distance string, limit int) models.Stops
- func (ss *StopService) MergeFlStopNamesByTripIdWithStopRoutes(stops *models.Stops, ...)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AgencyService ¶
type AgencyService struct {
// contains filtered or unexported fields
}
func NewAgencyService ¶
func NewAgencyService(db *gorm.DB, connectInfos *config.DBConnectInfos, redis *redis.Client) *AgencyService
func (*AgencyService) FetchNearestAgencies ¶
func (as *AgencyService) FetchNearestAgencies(lat, lon string) models.Agencies
type StopService ¶
type StopService struct {
// contains filtered or unexported fields
}
func NewStopService ¶
func NewStopService(db *gorm.DB, connectInfos *config.DBConnectInfos, redis *redis.Client) *StopService
func (*StopService) ExtractTripIds ¶
func (ss *StopService) ExtractTripIds(stops models.Stops) []int
func (*StopService) FetchFirstAndLastStopNamesByTripIds ¶
func (ss *StopService) FetchFirstAndLastStopNamesByTripIds(agencyKey string, tripIds []int) map[int]models.FirstLastStopNamesByTripId
func (*StopService) FetchStopById ¶
func (ss *StopService) FetchStopById(agencyKey, date, timeOfDay, stopId string, limit int) models.Stops
func (*StopService) FetchStopsByDate ¶
func (ss *StopService) FetchStopsByDate(agencyKey, date, timeOfDay, lat, lon, distance string, limit int) models.Stops
func (*StopService) MergeFlStopNamesByTripIdWithStopRoutes ¶
func (ss *StopService) MergeFlStopNamesByTripIdWithStopRoutes(stops *models.Stops, flStopNamesByTripId map[int]models.FirstLastStopNamesByTripId)
Click to show internal directories.
Click to hide internal directories.