Documentation ¶
Index ¶
- func ErrorFloatNotInRange(value float64, lowerLimit float64, upperLimit float64) *service.Error
- func ErrorFloatNotOneOf(value float64, allowedValues []float64) *service.Error
- func ErrorFloatOneOf(value float64, disallowedValues []float64) *service.Error
- func ErrorIntegerNotInRange(value int, lowerLimit int, upperLimit int) *service.Error
- func ErrorIntegerNotOneOf(value int, allowedValues []int) *service.Error
- func ErrorIntegerOneOf(value int, disallowedValues []int) *service.Error
- func ErrorLengthEqualTo(length int, limit int) *service.Error
- func ErrorLengthNotEqualTo(length int, limit int) *service.Error
- func ErrorLengthNotGreaterThan(length int, limit int) *service.Error
- func ErrorLengthNotGreaterThanOrEqualTo(length int, limit int) *service.Error
- func ErrorLengthNotInRange(length int, lowerLimit int, upperLimit int) *service.Error
- func ErrorLengthNotLessThan(length int, limit int) *service.Error
- func ErrorLengthNotLessThanOrEqualTo(length int, limit int) *service.Error
- func ErrorStringNotOneOf(value string, allowedValues []string) *service.Error
- func ErrorStringOneOf(value string, disallowedValues []string) *service.Error
- func ErrorTimeNotAfter(value time.Time, limit time.Time, timeLayout string) *service.Error
- func ErrorTimeNotAfterNow(value time.Time, timeLayout string) *service.Error
- func ErrorTimeNotBefore(value time.Time, limit time.Time, timeLayout string) *service.Error
- func ErrorTimeNotBeforeNow(value time.Time, timeLayout string) *service.Error
- func ErrorTimeNotValid(value string, timeLayout string) *service.Error
- func ErrorValueDoesNotExist() *service.Error
- func ErrorValueEqualTo(value interface{}, limit interface{}) *service.Error
- func ErrorValueNotEqualTo(value interface{}, limit interface{}) *service.Error
- func ErrorValueNotFalse() *service.Error
- func ErrorValueNotGreaterThan(value interface{}, limit interface{}) *service.Error
- func ErrorValueNotGreaterThanOrEqualTo(value interface{}, limit interface{}) *service.Error
- func ErrorValueNotLessThan(value interface{}, limit interface{}) *service.Error
- func ErrorValueNotLessThanOrEqualTo(value interface{}, limit interface{}) *service.Error
- func ErrorValueNotTrue() *service.Error
- type Standard
- func (s *Standard) AppendError(reference interface{}, err *service.Error)
- func (s *Standard) NewChildValidator(reference interface{}) data.Validator
- func (s *Standard) SetMeta(meta interface{})
- func (s *Standard) ValidateBoolean(reference interface{}, value *bool) data.Boolean
- func (s *Standard) ValidateFloat(reference interface{}, value *float64) data.Float
- func (s *Standard) ValidateFloatAsBloodGlucoseValue(reference interface{}, floatValue *float64) data.BloodGlucoseValue
- func (s *Standard) ValidateInteger(reference interface{}, value *int) data.Integer
- func (s *Standard) ValidateInterface(reference interface{}, value *interface{}) data.Interface
- func (s *Standard) ValidateInterfaceArray(reference interface{}, value *[]interface{}) data.InterfaceArray
- func (s *Standard) ValidateObject(reference interface{}, value *map[string]interface{}) data.Object
- func (s *Standard) ValidateObjectArray(reference interface{}, value *[]map[string]interface{}) data.ObjectArray
- func (s *Standard) ValidateString(reference interface{}, value *string) data.String
- func (s *Standard) ValidateStringArray(reference interface{}, value *[]string) data.StringArray
- func (s *Standard) ValidateStringAsBloodGlucoseUnits(reference interface{}, stringValue *string) data.BloodGlucoseUnits
- func (s *Standard) ValidateStringAsTime(reference interface{}, stringValue *string, timeLayout string) data.Time
- type StandardBoolean
- type StandardFloat
- func (s *StandardFloat) EqualTo(value float64) data.Float
- func (s *StandardFloat) Exists() data.Float
- func (s *StandardFloat) GreaterThan(limit float64) data.Float
- func (s *StandardFloat) GreaterThanOrEqualTo(limit float64) data.Float
- func (s *StandardFloat) InRange(lowerLimit float64, upperLimit float64) data.Float
- func (s *StandardFloat) LessThan(limit float64) data.Float
- func (s *StandardFloat) LessThanOrEqualTo(limit float64) data.Float
- func (s *StandardFloat) NotEqualTo(value float64) data.Float
- func (s *StandardFloat) NotOneOf(disallowedValues []float64) data.Float
- func (s *StandardFloat) OneOf(allowedValues []float64) data.Float
- type StandardFloatAsBloodGlucoseValue
- type StandardInteger
- func (s *StandardInteger) EqualTo(value int) data.Integer
- func (s *StandardInteger) Exists() data.Integer
- func (s *StandardInteger) GreaterThan(limit int) data.Integer
- func (s *StandardInteger) GreaterThanOrEqualTo(limit int) data.Integer
- func (s *StandardInteger) InRange(lowerLimit int, upperLimit int) data.Integer
- func (s *StandardInteger) LessThan(limit int) data.Integer
- func (s *StandardInteger) LessThanOrEqualTo(limit int) data.Integer
- func (s *StandardInteger) NotEqualTo(value int) data.Integer
- func (s *StandardInteger) NotOneOf(disallowedValues []int) data.Integer
- func (s *StandardInteger) OneOf(allowedValues []int) data.Integer
- type StandardInterface
- type StandardInterfaceArray
- func (s *StandardInterfaceArray) Exists() data.InterfaceArray
- func (s *StandardInterfaceArray) LengthEqualTo(limit int) data.InterfaceArray
- func (s *StandardInterfaceArray) LengthGreaterThan(limit int) data.InterfaceArray
- func (s *StandardInterfaceArray) LengthGreaterThanOrEqualTo(limit int) data.InterfaceArray
- func (s *StandardInterfaceArray) LengthInRange(lowerLimit int, upperLimit int) data.InterfaceArray
- func (s *StandardInterfaceArray) LengthLessThan(limit int) data.InterfaceArray
- func (s *StandardInterfaceArray) LengthLessThanOrEqualTo(limit int) data.InterfaceArray
- func (s *StandardInterfaceArray) LengthNotEqualTo(limit int) data.InterfaceArray
- type StandardObject
- type StandardObjectArray
- func (s *StandardObjectArray) Exists() data.ObjectArray
- func (s *StandardObjectArray) LengthEqualTo(limit int) data.ObjectArray
- func (s *StandardObjectArray) LengthGreaterThan(limit int) data.ObjectArray
- func (s *StandardObjectArray) LengthGreaterThanOrEqualTo(limit int) data.ObjectArray
- func (s *StandardObjectArray) LengthInRange(lowerLimit int, upperLimit int) data.ObjectArray
- func (s *StandardObjectArray) LengthLessThan(limit int) data.ObjectArray
- func (s *StandardObjectArray) LengthLessThanOrEqualTo(limit int) data.ObjectArray
- func (s *StandardObjectArray) LengthNotEqualTo(limit int) data.ObjectArray
- type StandardString
- func (s *StandardString) EqualTo(value string) data.String
- func (s *StandardString) Exists() data.String
- func (s *StandardString) LengthEqualTo(limit int) data.String
- func (s *StandardString) LengthGreaterThan(limit int) data.String
- func (s *StandardString) LengthGreaterThanOrEqualTo(limit int) data.String
- func (s *StandardString) LengthInRange(lowerLimit int, upperLimit int) data.String
- func (s *StandardString) LengthLessThan(limit int) data.String
- func (s *StandardString) LengthLessThanOrEqualTo(limit int) data.String
- func (s *StandardString) LengthNotEqualTo(limit int) data.String
- func (s *StandardString) NotEqualTo(value string) data.String
- func (s *StandardString) NotOneOf(disallowedValues []string) data.String
- func (s *StandardString) OneOf(allowedValues []string) data.String
- type StandardStringArray
- func (s *StandardStringArray) EachNotOneOf(disallowedValues []string) data.StringArray
- func (s *StandardStringArray) EachOneOf(allowedValues []string) data.StringArray
- func (s *StandardStringArray) Exists() data.StringArray
- func (s *StandardStringArray) LengthEqualTo(limit int) data.StringArray
- func (s *StandardStringArray) LengthGreaterThan(limit int) data.StringArray
- func (s *StandardStringArray) LengthGreaterThanOrEqualTo(limit int) data.StringArray
- func (s *StandardStringArray) LengthInRange(lowerLimit int, upperLimit int) data.StringArray
- func (s *StandardStringArray) LengthLessThan(limit int) data.StringArray
- func (s *StandardStringArray) LengthLessThanOrEqualTo(limit int) data.StringArray
- func (s *StandardStringArray) LengthNotEqualTo(limit int) data.StringArray
- type StandardStringAsBloodGlucoseUnits
- type StandardStringAsTime
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ErrorFloatNotInRange ¶
func ErrorFloatNotOneOf ¶
func ErrorFloatOneOf ¶
func ErrorIntegerNotInRange ¶
func ErrorIntegerNotOneOf ¶
func ErrorLengthNotInRange ¶
func ErrorStringNotOneOf ¶
func ErrorStringOneOf ¶
func ErrorTimeNotAfter ¶
func ErrorTimeNotAfterNow ¶
func ErrorTimeNotBefore ¶
func ErrorTimeNotBeforeNow ¶
func ErrorValueDoesNotExist ¶
func ErrorValueEqualTo ¶
func ErrorValueNotEqualTo ¶
func ErrorValueNotFalse ¶
func ErrorValueNotLessThan ¶
func ErrorValueNotTrue ¶
Types ¶
type Standard ¶
type Standard struct {
// contains filtered or unexported fields
}
func (*Standard) AppendError ¶
func (*Standard) NewChildValidator ¶
func (*Standard) ValidateBoolean ¶
func (*Standard) ValidateFloat ¶
func (*Standard) ValidateFloatAsBloodGlucoseValue ¶
func (s *Standard) ValidateFloatAsBloodGlucoseValue(reference interface{}, floatValue *float64) data.BloodGlucoseValue
func (*Standard) ValidateInteger ¶
func (*Standard) ValidateInterface ¶
func (*Standard) ValidateInterfaceArray ¶
func (s *Standard) ValidateInterfaceArray(reference interface{}, value *[]interface{}) data.InterfaceArray
func (*Standard) ValidateObject ¶
func (*Standard) ValidateObjectArray ¶
func (s *Standard) ValidateObjectArray(reference interface{}, value *[]map[string]interface{}) data.ObjectArray
func (*Standard) ValidateString ¶
func (*Standard) ValidateStringArray ¶
func (s *Standard) ValidateStringArray(reference interface{}, value *[]string) data.StringArray
func (*Standard) ValidateStringAsBloodGlucoseUnits ¶
func (s *Standard) ValidateStringAsBloodGlucoseUnits(reference interface{}, stringValue *string) data.BloodGlucoseUnits
type StandardBoolean ¶
type StandardBoolean struct {
// contains filtered or unexported fields
}
func NewStandardBoolean ¶
func NewStandardBoolean(context data.Context, reference interface{}, value *bool) *StandardBoolean
func (*StandardBoolean) Exists ¶
func (s *StandardBoolean) Exists() data.Boolean
func (*StandardBoolean) False ¶
func (s *StandardBoolean) False() data.Boolean
func (*StandardBoolean) True ¶
func (s *StandardBoolean) True() data.Boolean
type StandardFloat ¶
type StandardFloat struct {
// contains filtered or unexported fields
}
func NewStandardFloat ¶
func NewStandardFloat(context data.Context, reference interface{}, value *float64) *StandardFloat
func (*StandardFloat) Exists ¶
func (s *StandardFloat) Exists() data.Float
func (*StandardFloat) GreaterThan ¶
func (s *StandardFloat) GreaterThan(limit float64) data.Float
func (*StandardFloat) GreaterThanOrEqualTo ¶
func (s *StandardFloat) GreaterThanOrEqualTo(limit float64) data.Float
func (*StandardFloat) InRange ¶
func (s *StandardFloat) InRange(lowerLimit float64, upperLimit float64) data.Float
func (*StandardFloat) LessThanOrEqualTo ¶
func (s *StandardFloat) LessThanOrEqualTo(limit float64) data.Float
func (*StandardFloat) NotEqualTo ¶
func (s *StandardFloat) NotEqualTo(value float64) data.Float
type StandardFloatAsBloodGlucoseValue ¶
type StandardFloatAsBloodGlucoseValue struct {
// contains filtered or unexported fields
}
func NewStandardFloatAsBloodGlucoseValue ¶
func NewStandardFloatAsBloodGlucoseValue(context data.Context, reference interface{}, floatValue *float64) *StandardFloatAsBloodGlucoseValue
func (*StandardFloatAsBloodGlucoseValue) Exists ¶
func (s *StandardFloatAsBloodGlucoseValue) Exists() data.BloodGlucoseValue
func (*StandardFloatAsBloodGlucoseValue) InRange ¶
func (s *StandardFloatAsBloodGlucoseValue) InRange(lowerLimit float64, upperLimit float64) data.BloodGlucoseValue
func (*StandardFloatAsBloodGlucoseValue) InRangeForUnits ¶
func (s *StandardFloatAsBloodGlucoseValue) InRangeForUnits(units *string) data.BloodGlucoseValue
type StandardInteger ¶
type StandardInteger struct {
// contains filtered or unexported fields
}
func NewStandardInteger ¶
func NewStandardInteger(context data.Context, reference interface{}, value *int) *StandardInteger
func (*StandardInteger) Exists ¶
func (s *StandardInteger) Exists() data.Integer
func (*StandardInteger) GreaterThan ¶
func (s *StandardInteger) GreaterThan(limit int) data.Integer
func (*StandardInteger) GreaterThanOrEqualTo ¶
func (s *StandardInteger) GreaterThanOrEqualTo(limit int) data.Integer
func (*StandardInteger) InRange ¶
func (s *StandardInteger) InRange(lowerLimit int, upperLimit int) data.Integer
func (*StandardInteger) LessThanOrEqualTo ¶
func (s *StandardInteger) LessThanOrEqualTo(limit int) data.Integer
func (*StandardInteger) NotEqualTo ¶
func (s *StandardInteger) NotEqualTo(value int) data.Integer
type StandardInterface ¶
type StandardInterface struct {
// contains filtered or unexported fields
}
func NewStandardInterface ¶
func NewStandardInterface(context data.Context, reference interface{}, value *interface{}) *StandardInterface
func (*StandardInterface) Exists ¶
func (s *StandardInterface) Exists() data.Interface
type StandardInterfaceArray ¶
type StandardInterfaceArray struct {
// contains filtered or unexported fields
}
func NewStandardInterfaceArray ¶
func NewStandardInterfaceArray(context data.Context, reference interface{}, value *[]interface{}) *StandardInterfaceArray
func (*StandardInterfaceArray) Exists ¶
func (s *StandardInterfaceArray) Exists() data.InterfaceArray
func (*StandardInterfaceArray) LengthEqualTo ¶
func (s *StandardInterfaceArray) LengthEqualTo(limit int) data.InterfaceArray
func (*StandardInterfaceArray) LengthGreaterThan ¶
func (s *StandardInterfaceArray) LengthGreaterThan(limit int) data.InterfaceArray
func (*StandardInterfaceArray) LengthGreaterThanOrEqualTo ¶
func (s *StandardInterfaceArray) LengthGreaterThanOrEqualTo(limit int) data.InterfaceArray
func (*StandardInterfaceArray) LengthInRange ¶
func (s *StandardInterfaceArray) LengthInRange(lowerLimit int, upperLimit int) data.InterfaceArray
func (*StandardInterfaceArray) LengthLessThan ¶
func (s *StandardInterfaceArray) LengthLessThan(limit int) data.InterfaceArray
func (*StandardInterfaceArray) LengthLessThanOrEqualTo ¶
func (s *StandardInterfaceArray) LengthLessThanOrEqualTo(limit int) data.InterfaceArray
func (*StandardInterfaceArray) LengthNotEqualTo ¶
func (s *StandardInterfaceArray) LengthNotEqualTo(limit int) data.InterfaceArray
type StandardObject ¶
type StandardObject struct {
// contains filtered or unexported fields
}
func NewStandardObject ¶
func NewStandardObject(context data.Context, reference interface{}, value *map[string]interface{}) *StandardObject
func (*StandardObject) Exists ¶
func (s *StandardObject) Exists() data.Object
type StandardObjectArray ¶
type StandardObjectArray struct {
// contains filtered or unexported fields
}
func NewStandardObjectArray ¶
func NewStandardObjectArray(context data.Context, reference interface{}, value *[]map[string]interface{}) *StandardObjectArray
func (*StandardObjectArray) Exists ¶
func (s *StandardObjectArray) Exists() data.ObjectArray
func (*StandardObjectArray) LengthEqualTo ¶
func (s *StandardObjectArray) LengthEqualTo(limit int) data.ObjectArray
func (*StandardObjectArray) LengthGreaterThan ¶
func (s *StandardObjectArray) LengthGreaterThan(limit int) data.ObjectArray
func (*StandardObjectArray) LengthGreaterThanOrEqualTo ¶
func (s *StandardObjectArray) LengthGreaterThanOrEqualTo(limit int) data.ObjectArray
func (*StandardObjectArray) LengthInRange ¶
func (s *StandardObjectArray) LengthInRange(lowerLimit int, upperLimit int) data.ObjectArray
func (*StandardObjectArray) LengthLessThan ¶
func (s *StandardObjectArray) LengthLessThan(limit int) data.ObjectArray
func (*StandardObjectArray) LengthLessThanOrEqualTo ¶
func (s *StandardObjectArray) LengthLessThanOrEqualTo(limit int) data.ObjectArray
func (*StandardObjectArray) LengthNotEqualTo ¶
func (s *StandardObjectArray) LengthNotEqualTo(limit int) data.ObjectArray
type StandardString ¶
type StandardString struct {
// contains filtered or unexported fields
}
func NewStandardString ¶
func NewStandardString(context data.Context, reference interface{}, value *string) *StandardString
func (*StandardString) Exists ¶
func (s *StandardString) Exists() data.String
func (*StandardString) LengthEqualTo ¶
func (s *StandardString) LengthEqualTo(limit int) data.String
func (*StandardString) LengthGreaterThan ¶
func (s *StandardString) LengthGreaterThan(limit int) data.String
func (*StandardString) LengthGreaterThanOrEqualTo ¶
func (s *StandardString) LengthGreaterThanOrEqualTo(limit int) data.String
func (*StandardString) LengthInRange ¶
func (s *StandardString) LengthInRange(lowerLimit int, upperLimit int) data.String
func (*StandardString) LengthLessThan ¶
func (s *StandardString) LengthLessThan(limit int) data.String
func (*StandardString) LengthLessThanOrEqualTo ¶
func (s *StandardString) LengthLessThanOrEqualTo(limit int) data.String
func (*StandardString) LengthNotEqualTo ¶
func (s *StandardString) LengthNotEqualTo(limit int) data.String
func (*StandardString) NotEqualTo ¶
func (s *StandardString) NotEqualTo(value string) data.String
type StandardStringArray ¶
type StandardStringArray struct {
// contains filtered or unexported fields
}
func NewStandardStringArray ¶
func NewStandardStringArray(context data.Context, reference interface{}, value *[]string) *StandardStringArray
func (*StandardStringArray) EachNotOneOf ¶
func (s *StandardStringArray) EachNotOneOf(disallowedValues []string) data.StringArray
func (*StandardStringArray) EachOneOf ¶
func (s *StandardStringArray) EachOneOf(allowedValues []string) data.StringArray
func (*StandardStringArray) Exists ¶
func (s *StandardStringArray) Exists() data.StringArray
func (*StandardStringArray) LengthEqualTo ¶
func (s *StandardStringArray) LengthEqualTo(limit int) data.StringArray
func (*StandardStringArray) LengthGreaterThan ¶
func (s *StandardStringArray) LengthGreaterThan(limit int) data.StringArray
func (*StandardStringArray) LengthGreaterThanOrEqualTo ¶
func (s *StandardStringArray) LengthGreaterThanOrEqualTo(limit int) data.StringArray
func (*StandardStringArray) LengthInRange ¶
func (s *StandardStringArray) LengthInRange(lowerLimit int, upperLimit int) data.StringArray
func (*StandardStringArray) LengthLessThan ¶
func (s *StandardStringArray) LengthLessThan(limit int) data.StringArray
func (*StandardStringArray) LengthLessThanOrEqualTo ¶
func (s *StandardStringArray) LengthLessThanOrEqualTo(limit int) data.StringArray
func (*StandardStringArray) LengthNotEqualTo ¶
func (s *StandardStringArray) LengthNotEqualTo(limit int) data.StringArray
type StandardStringAsBloodGlucoseUnits ¶
type StandardStringAsBloodGlucoseUnits struct {
// contains filtered or unexported fields
}
func NewStandardStringAsBloodGlucoseUnits ¶
func NewStandardStringAsBloodGlucoseUnits(context data.Context, reference interface{}, stringValue *string) *StandardStringAsBloodGlucoseUnits
func (*StandardStringAsBloodGlucoseUnits) Exists ¶
func (s *StandardStringAsBloodGlucoseUnits) Exists() data.BloodGlucoseUnits
type StandardStringAsTime ¶
type StandardStringAsTime struct {
// contains filtered or unexported fields
}
func NewStandardStringAsTime ¶
func NewStandardStringAsTime(context data.Context, reference interface{}, stringValue *string, timeLayout string) *StandardStringAsTime
func (*StandardStringAsTime) After ¶
func (s *StandardStringAsTime) After(limit time.Time) data.Time
func (*StandardStringAsTime) AfterNow ¶
func (s *StandardStringAsTime) AfterNow() data.Time
func (*StandardStringAsTime) Before ¶
func (s *StandardStringAsTime) Before(limit time.Time) data.Time
func (*StandardStringAsTime) BeforeNow ¶
func (s *StandardStringAsTime) BeforeNow() data.Time
func (*StandardStringAsTime) Exists ¶
func (s *StandardStringAsTime) Exists() data.Time
Source Files ¶
- errors.go
- standard.go
- standard_boolean.go
- standard_float.go
- standard_float_as_blood_glucose_value.go
- standard_integer.go
- standard_interface.go
- standard_interface_array.go
- standard_object.go
- standard_object_array.go
- standard_string.go
- standard_string_array.go
- standard_string_as_blood_glucose_units.go
- standard_string_as_time.go
Click to show internal directories.
Click to hide internal directories.