Documentation
¶
Index ¶
- Constants
- func AlarmTypeValidator(v *validator.Validate, topStruct reflect.Value, ...) bool
- func Build(datum types.Datum, errs validate.ErrorProcessing) interface{}
- func CannulaVolumeValidator(v *validator.Validate, topStruct reflect.Value, ...) bool
- func PrimeTargetValidator(v *validator.Validate, topStruct reflect.Value, ...) bool
- func StatusDurationValidator(v *validator.Validate, topStruct reflect.Value, ...) bool
- func StatusReasonValidator(v *validator.Validate, topStruct reflect.Value, ...) bool
- func StatusValidator(v *validator.Validate, topStruct reflect.Value, ...) bool
- func SubTypeValidator(v *validator.Validate, topStruct reflect.Value, ...) bool
- func TimeChangeAgentValidator(v *validator.Validate, topStruct reflect.Value, ...) bool
- func TimeChangeReasonsValidator(v *validator.Validate, topStruct reflect.Value, ...) bool
- func TubingVolumeValidator(v *validator.Validate, topStruct reflect.Value, ...) bool
- type Alarm
- type Base
- type Calibration
- type Change
- type Prime
- type ReservoirChange
- type Status
- type TimeChange
Constants ¶
View Source
const Name = "deviceEvent"
Variables ¶
This section is empty.
Functions ¶
func AlarmTypeValidator ¶
func CannulaVolumeValidator ¶
func PrimeTargetValidator ¶
func StatusDurationValidator ¶
func StatusReasonValidator ¶
func StatusValidator ¶
func SubTypeValidator ¶
Types ¶
type Calibration ¶
type Change ¶
type Change struct {
From *string `json:"from" bson:"from" valid:"nonZuluTimeString"`
To *string `json:"to" bson:"to" valid:"nonZuluTimeString"`
Agent *string `json:"agent" bson:"agent" valid:"timechangeagent"`
Timezone *string `json:"timezone,omitempty" bson:"timezone,omitempty" valid:"-"`
Reasons []string `json:"reasons,omitempty" bson:"reasons,omitempty" valid:"timechangereasons"`
}
type ReservoirChange ¶
type Status ¶
type Status struct {
Status *string `json:"status" bson:"status" valid:"devicestatus"`
Reason map[string]interface{} `json:"reason" bson:"reason" valid:"devicereason"`
//TODO: this should become required for the platform but is currently optional
Duration *int `json:"duration,omitempty" bson:"duration,omitempty" valid:"omitempty,devicestatusduration"`
Base `bson:",inline"`
}
type TimeChange ¶
Click to show internal directories.
Click to hide internal directories.