Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Road ¶
type Road struct { gorm.Model RID string `gorm:"unique"` RoadSegments []RoadSegment }
Road persists the bare minimum we need to store about a road
type RoadSegment ¶
type RoadSegment struct { gorm.Model SegmentID string `gorm:"unique"` RoadID uint SurfaceTypePredictions []SurfaceTypePrediction }
RoadSegment persists the bare minimum we need to store in a database about a road segment
type RoadSurfaceObserved ¶
type RoadSurfaceObserved struct { gorm.Model RoadSegmentID uint RoadSurfaceObservedID string SurfaceType string Probability float64 Latitude float64 Longitude float64 Timestamp time.Time }
RoadSurfaceObserved is a model for a temporary table until a better schema is designed
Click to show internal directories.
Click to hide internal directories.