Documentation
¶
Index ¶
- Constants
- func Build(datum types.Datum, errs validate.ErrorProcessing) interface{}
- func DeliveryTypeValidator(v *validator.Validate, topStruct reflect.Value, ...) bool
- func DurationValidator(v *validator.Validate, topStruct reflect.Value, ...) bool
- func PercentValidator(v *validator.Validate, topStruct reflect.Value, ...) bool
- func RateValidator(v *validator.Validate, topStruct reflect.Value, ...) bool
- func TempDurationValidator(v *validator.Validate, topStruct reflect.Value, ...) bool
- type Base
- type Scheduled
- type Suppressed
- type Suspend
- type Temporary
Constants ¶
View Source
const Name = "basal"
Variables ¶
This section is empty.
Functions ¶
func DeliveryTypeValidator ¶
func DurationValidator ¶
func PercentValidator ¶
func RateValidator ¶
Types ¶
type Suppressed ¶
type Suspend ¶
type Suspend struct {
Suppressed *Suppressed `json:"suppressed,omitempty" bson:"suppressed,omitempty" valid:"-"`
Base `bson:",inline"`
}
type Temporary ¶
type Temporary struct {
Rate *float64 `json:"rate" bson:"rate" valid:"basalrate"`
TempDuration *int `json:"duration" bson:"duration" valid:"basaltempduration"`
Percent *float64 `json:"percent,omitempty" bson:"percent,omitempty" valid:"omitempty,basalpercent"`
Suppressed *Suppressed `json:"suppressed,omitempty" bson:"suppressed,omitempty" valid:"omitempty,required"`
Base `bson:",inline"`
}
Click to show internal directories.
Click to hide internal directories.