Documentation
¶
Index ¶
- Constants
- func LevelValidator(v *validator.Validate, topStruct reflect.Value, ...) bool
- func RateValidator(v *validator.Validate, topStruct reflect.Value, ...) bool
- func SnoozeValidator(v *validator.Validate, topStruct reflect.Value, ...) bool
- type Alert
- type ChangeOfRateAlert
- type OutOfRangeAlert
- type Settings
Constants ¶
View Source
const Name = "cgmSettings"
Variables ¶
This section is empty.
Functions ¶
func LevelValidator ¶
func RateValidator ¶
Types ¶
type ChangeOfRateAlert ¶
type OutOfRangeAlert ¶
type Settings ¶
type Settings struct {
Units *string `json:"units" bson:"units" valid:"mmolmgunits"`
TransmitterID *string `json:"transmitterId" bson:"transmitterId" valid:"required"`
High Alert `json:"highAlerts" bson:"highAlerts"`
Low Alert `json:"lowAlerts" bson:"lowAlerts"`
*OutOfRangeAlert `json:"outOfRangeAlerts,omitempty" bson:"outOfRangeAlerts,omitempty"`
ChangeOfRateAlerts map[string]ChangeOfRateAlert `json:"rateOfChangeAlerts" bson:"rateOfChangeAlerts"`
types.Base `bson:",inline"`
}
Click to show internal directories.
Click to hide internal directories.