Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Comment ¶
type DiaryEntry ¶
type DiaryEntry struct { gorm.Model Title string `valid:"required"` Text string `gorm:"type:text" valid:"required"` Author authorization.User `valid:"-"` AuthorID uint `valid:"required"` Comments []Comment `valid:"-"` MapEntry MapEntry `valid:"-"` MapEntryID uint Images []files.Image `gorm:"many2many:diary_image"` Published bool NumComments uint `gorm:"-"` Viewed bool `gorm:"-"` NewComments bool `gorm:"-"` }
type Float ¶
type Float float64
Old data in db sometimes has strings instead of floats, this accepts string when json unmarshaling
func (*Float) UnmarshalJSON ¶
type GpsData ¶
type GpsData struct { gorm.Model Start string End string Date time.Time Length float64 Duration float64 AvgSpeed float64 WorkoutID string `gorm:"column:endomondo_id"` Data string `gorm:"type:text"` MapURL string }
func (GpsData) OptimizedData ¶
Click to show internal directories.
Click to hide internal directories.