Documentation
¶
Index ¶
- type BooleanValidator
- type DatetimeValidator
- type Error
- type FloatMaxValueValidator
- type FloatMinValueValidator
- type FloatValidator
- type IntegerMaxValueValidator
- type IntegerMinValueValidator
- type IntegerValidator
- type StringMaxLengthValidator
- type StringMinLengthValidator
- type StringValidator
- type Validator
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BooleanValidator ¶
type DatetimeValidator ¶
type Error ¶
type Error struct {
Code uint
Parameters []interface{}
}
Error describes error occured during validation.
type FloatMaxValueValidator ¶
type FloatMaxValueValidator struct {
Value float64
}
FloatMaxValueValidator controls maximum value.
func FloatMaxValue ¶
func FloatMaxValue(value float64) *FloatMaxValueValidator
FloatMaxValue initializes FloatMaxValueValidator instance.
type FloatMinValueValidator ¶
type FloatMinValueValidator struct {
Value float64
}
FloatMinValueValidator controls minimum value.
func FloatMinValue ¶
func FloatMinValue(value float64) *FloatMinValueValidator
FloatMinValue initializes FloatMinValueValidator instance.
type FloatValidator ¶
type IntegerMaxValueValidator ¶
type IntegerMaxValueValidator struct {
Value int
}
IntegerMaxValueValidator controls maximum value.
func IntegerMaxValue ¶
func IntegerMaxValue(value int) *IntegerMaxValueValidator
IntegerMaxValue initializes IntegerMaxValueValidator instance.
type IntegerMinValueValidator ¶
type IntegerMinValueValidator struct {
Value int
}
IntegerMinValueValidator controls minimum value.
func IntegerMinValue ¶
func IntegerMinValue(value int) *IntegerMinValueValidator
IntegerMinValue initializes IntegerMinValueValidator instance.
type IntegerValidator ¶
type StringMaxLengthValidator ¶
type StringMaxLengthValidator struct {
Length int
}
StringMaxLengthValidator controls minimum length.
func StringMaxLength ¶
func StringMaxLength(length int) *StringMaxLengthValidator
StringMaxLength initializes MaxLengthValidator instance.
type StringMinLengthValidator ¶
type StringMinLengthValidator struct {
Length int
}
StringMinLengthValidator controls minimum length.
func StringMinLength ¶
func StringMinLength(length int) *StringMinLengthValidator
StringMinLength initializes MinLengthValidator instance.