ormrealtime

package
v0.4.6 Latest Latest
Warning

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

Go to latest
Published: Dec 21, 2025 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

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"`
}

func (Alert) TableName

func (Alert) TableName() string

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 Position struct {
	SerialId          uint `gorm:"primaryKey;auto_increment"`
	VehiclePositionId uint
	Latitude          *float32
	Longitude         *float32
	Bearing           *float32
	Odometer          *float64
	Speed             *float32
}

func (Position) TableName

func (Position) TableName() string

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 TimeRange struct {
	SerialId uint `gorm:"primaryKey;auto_increment"`
	AlertId  uint
	Start    *uint64
	End      *uint64
}

func (TimeRange) TableName

func (TimeRange) TableName() string

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

type VehiclePositionVehicleDescriptor

type VehiclePositionVehicleDescriptor struct {
	SerialId          uint `gorm:"primaryKey;auto_increment"`
	VehiclePositionId uint
	Id                *string
	Label             *string
	LicensePlate      *string
}

func (VehiclePositionVehicleDescriptor) TableName

Jump to

Keyboard shortcuts

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