Documentation ¶
Index ¶
Constants ¶
View Source
const ( UnitsHours = "hours" UnitsMinutes = "minutes" UnitsSeconds = "seconds" ValueDaysMaximum = 7 ValueHoursMaximum = ValueDaysMaximum * MinutesPerHour ValueMinutesMaximum = ValueHoursMaximum * MinutesPerHour ValueSecondsMaximum = ValueMinutesMaximum * SecondsPerMinute HoursPerDay = 24 MinutesPerHour = 60 SecondsPerMinute = 60 )
View Source
const ( ReportedIntensityHigh = "high" ReportedIntensityMedium = "medium" ReportedIntensityLow = "low" )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Duration ¶
type Duration struct { Value *float64 `json:"value,omitempty" bson:"value,omitempty"` Units *string `json:"units,omitempty" bson:"units,omitempty"` }
func NewDuration ¶
func NewDuration() *Duration
func ParseDuration ¶
func ParseDuration(parser data.ObjectParser) *Duration
func (*Duration) Normalize ¶
func (d *Duration) Normalize(normalizer data.Normalizer)
func (*Duration) Parse ¶
func (d *Duration) Parse(parser data.ObjectParser)
Click to show internal directories.
Click to hide internal directories.