Documentation
¶
Index ¶
- type Alert
- type AlertTripDescriptor
- type ArrivalStopTimeEvent
- type DepartureStopTimeEvent
- type DescriptionTranslation
- type EntitySelector
- type HeaderTextTranslation
- type Position
- type StopTimeUpdate
- type TimeRange
- type TripUpdate
- type TripUpdateTripDescriptor
- type TripUpdateVehicleDescriptor
- type UrlTranslation
- type VehiclePosition
- type VehiclePositionTripDescriptor
- type VehiclePositionVehicleDescriptor
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Alert ¶
type Alert struct {
AlertId uint `gorm:"primaryKey;auto_increment"`
ActivePeriod []TimeRange `gorm:"foreignKey:AlertId"`
InformedEntity []EntitySelector `gorm:"foreignKey:AlertId"`
Cause *string
Effect *string
Url []UrlTranslation `gorm:"foreignKey:AlertId"`
HeaderText []HeaderTextTranslation `gorm:"foreignKey:AlertId"`
Description []DescriptionTranslation `gorm:"foreignKey:AlertId"`
}
type AlertTripDescriptor ¶
type AlertTripDescriptor struct {
SerialId uint `gorm:"primaryKey;auto_increment"`
InformedEntityId uint
TripId *string
RouteId *string
DirectionId *uint32
StartTime *string
StartDate *string
ScheduleRelationship *string
}
func (AlertTripDescriptor) TableName ¶
func (AlertTripDescriptor) TableName() string
type ArrivalStopTimeEvent ¶
type ArrivalStopTimeEvent struct {
SerialId uint `gorm:"primaryKey;auto_increment"`
StopTimeUpdateId uint
Delay *int32
Time *int64
Uncertainty *int32
}
func (ArrivalStopTimeEvent) TableName ¶
func (ArrivalStopTimeEvent) TableName() string
type DepartureStopTimeEvent ¶
type DepartureStopTimeEvent struct {
SerialId uint `gorm:"primaryKey;auto_increment"`
StopTimeUpdateId uint
Delay *int32
Time *int64
Uncertainty *int32
}
func (DepartureStopTimeEvent) TableName ¶
func (DepartureStopTimeEvent) TableName() string
type DescriptionTranslation ¶
type DescriptionTranslation struct {
SerialId uint `gorm:"primaryKey;auto_increment"`
AlertId uint
Text *string
Language *string
}
func (DescriptionTranslation) TableName ¶
func (DescriptionTranslation) TableName() string
type EntitySelector ¶
type EntitySelector struct {
InformedEntityId uint `gorm:"primaryKey;auto_increment"`
AlertId uint
AgencyId *string
RouteId *string
RouteType *int32
DirectionId *uint32
Trip AlertTripDescriptor `gorm:"foreignKey:InformedEntityId"`
StopId *string
}
func (EntitySelector) TableName ¶
func (EntitySelector) TableName() string
type HeaderTextTranslation ¶
type HeaderTextTranslation struct {
SerialId uint `gorm:"primaryKey;auto_increment"`
AlertId uint
Text *string
Language *string
}
func (HeaderTextTranslation) TableName ¶
func (HeaderTextTranslation) TableName() string
type Position ¶
type StopTimeUpdate ¶
type StopTimeUpdate struct {
StopTimeUpdateId uint `gorm:"primaryKey;auto_increment"`
TripUpdateId uint
StopSequence *uint32
StopId *string
Arrival ArrivalStopTimeEvent `gorm:"foreignKey:StopTimeUpdateId"`
Departure DepartureStopTimeEvent `gorm:"foreignKey:StopTimeUpdateId"`
ScheduleRelationship *string
}
func (StopTimeUpdate) TableName ¶
func (StopTimeUpdate) TableName() string
type TimeRange ¶
type TripUpdate ¶
type TripUpdate struct {
TripUpdateId uint `gorm:"primaryKey;auto_increment"`
Trip TripUpdateTripDescriptor `gorm:"foreignKey:TripUpdateId"`
Vehicle TripUpdateVehicleDescriptor `gorm:"foreignKey:TripUpdateId"`
StopTimeUpdate []StopTimeUpdate `gorm:"foreignKey:TripUpdateId"`
TimeStamp *uint64
DateTime *time.Time
Delay *int32
}
func (TripUpdate) TableName ¶
func (TripUpdate) TableName() string
type TripUpdateTripDescriptor ¶
type TripUpdateTripDescriptor struct {
SerialId uint `gorm:"primaryKey;auto_increment"`
TripUpdateId uint
TripId *string
RouteId *string
DirectionId *uint32
StartTime *string
StartDate *string
ScheduleRelationship *string
}
func (TripUpdateTripDescriptor) TableName ¶
func (TripUpdateTripDescriptor) TableName() string
type TripUpdateVehicleDescriptor ¶
type TripUpdateVehicleDescriptor struct {
SerialId uint `gorm:"primaryKey;auto_increment"`
TripUpdateId uint
Id *string
Label *string
LicensePlate *string
}
func (TripUpdateVehicleDescriptor) TableName ¶
func (TripUpdateVehicleDescriptor) TableName() string
type UrlTranslation ¶
type UrlTranslation struct {
SerialId uint `gorm:"primaryKey;auto_increment"`
AlertId uint
Text *string
Language *string
}
func (UrlTranslation) TableName ¶
func (UrlTranslation) TableName() string
type VehiclePosition ¶
type VehiclePosition struct {
VehiclePositionId uint `gorm:"primaryKey;auto_increment"`
Trip VehiclePositionTripDescriptor `gorm:"foreignKey:VehiclePositionId"`
Vehicle VehiclePositionVehicleDescriptor `gorm:"foreignKey:VehiclePositionId"`
Position Position `gorm:"foreignKey:VehiclePositionId"`
CurrentStopSequence *uint32
StopId *string
CurrentStatus *string
TimeStamp *uint64
DateTime *time.Time
CongestionLevel *string
OccupancyStatus *string
}
func (VehiclePosition) TableName ¶
func (VehiclePosition) TableName() string
type VehiclePositionTripDescriptor ¶
type VehiclePositionTripDescriptor struct {
SerialId uint `gorm:"primaryKey;auto_increment"`
VehiclePositionId uint
TripId *string
RouteId *string
DirectionId *uint32
StartTime *string
StartDate *string
ScheduleRelationship *string
}
func (VehiclePositionTripDescriptor) TableName ¶
func (VehiclePositionTripDescriptor) TableName() string
type VehiclePositionVehicleDescriptor ¶
type VehiclePositionVehicleDescriptor struct {
SerialId uint `gorm:"primaryKey;auto_increment"`
VehiclePositionId uint
Id *string
Label *string
LicensePlate *string
}
func (VehiclePositionVehicleDescriptor) TableName ¶
func (VehiclePositionVehicleDescriptor) TableName() string
Click to show internal directories.
Click to hide internal directories.