services

package
v0.0.0-...-24a0202 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 2, 2015 License: MIT Imports: 14 Imported by: 0

Documentation

Index

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)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL