Documentation ¶
Index ¶
- func CreateIdentificationCache()
- func RegisterCLI() *cli.Command
- func StartCleaner()
- func StartConsumers()
- func StartStatsServer()
- type BatchConsumer
- type CacheJourney
- type HealthHandler
- type RealtimeIdentifyFailureElasticEvent
- type StatsServerHandler
- type VehicleLocationEvent
- type VehicleLocationEventStopUpdate
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateIdentificationCache ¶
func CreateIdentificationCache()
func RegisterCLI ¶
func RegisterCLI() *cli.Command
func StartCleaner ¶
func StartCleaner()
func StartConsumers ¶
func StartConsumers()
func StartStatsServer ¶
func StartStatsServer()
Types ¶
type BatchConsumer ¶
type BatchConsumer struct {
// contains filtered or unexported fields
}
func NewBatchConsumer ¶
func NewBatchConsumer(id int) *BatchConsumer
func (*BatchConsumer) Consume ¶
func (consumer *BatchConsumer) Consume(batch rmq.Deliveries)
type CacheJourney ¶
type CacheJourney struct {
Path []*ctdf.JourneyPathItem `groups:"detailed"`
}
func (CacheJourney) MarshalBinary ¶
func (j CacheJourney) MarshalBinary() ([]byte, error)
type HealthHandler ¶
type HealthHandler struct { }
func NewHealthHandler ¶
func NewHealthHandler() *HealthHandler
func (*HealthHandler) ServeHTTP ¶
func (handler *HealthHandler) ServeHTTP(writer http.ResponseWriter, _ *http.Request)
type StatsServerHandler ¶
type StatsServerHandler struct {
// contains filtered or unexported fields
}
func NewStatsHandler ¶
func NewStatsHandler(connection rmq.Connection) *StatsServerHandler
func (*StatsServerHandler) ServeHTTP ¶
func (handler *StatsServerHandler) ServeHTTP(writer http.ResponseWriter, request *http.Request)
type VehicleLocationEvent ¶
type VehicleLocationEvent struct { LocalID string IdentifyingInformation map[string]string SourceType string Location ctdf.Location Bearing float64 Timeframe string StopUpdates []VehicleLocationEventStopUpdate Occupancy ctdf.RealtimeJourneyOccupancy VehicleIdentifier string DataSource *ctdf.DataSource RecordedAt time.Time }
Source Files ¶
Click to show internal directories.
Click to hide internal directories.