Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BooleanDataType ¶
type BooleanDataType struct { }
func (*BooleanDataType) Compare ¶
func (s *BooleanDataType) Compare(left interface{}, right interface{}, validated bool) (int, error)
func (*BooleanDataType) GetDataType ¶
func (s *BooleanDataType) GetDataType() constant.DataType
func (*BooleanDataType) GetValue ¶
func (s *BooleanDataType) GetValue(value interface{}) interface{}
func (*BooleanDataType) IsValid ¶
func (s *BooleanDataType) IsValid(value interface{}) bool
type DataType ¶
type DataType interface { IsValid(value interface{}) bool GetDataType() constant.DataType GetValue(value interface{}) any Compare(left interface{}, right interface{}, validated bool) (int, error) }
func GetAllDataTypes ¶
func GetAllDataTypes() []DataType
func GetDataType ¶
func NewBooleanDataType ¶
func NewBooleanDataType() DataType
func NewDecimalDataType ¶
func NewDecimalDataType() DataType
func NewIntDataType ¶
func NewIntDataType() DataType
func NewLongDataType ¶
func NewLongDataType() DataType
func NewStringDataType ¶
func NewStringDataType() DataType
func NewVersionDataType ¶
func NewVersionDataType() DataType
type DecimalDataType ¶
type DecimalDataType struct { }
func (*DecimalDataType) Compare ¶
func (s *DecimalDataType) Compare(left interface{}, right interface{}, validated bool) (int, error)
func (*DecimalDataType) GetDataType ¶
func (s *DecimalDataType) GetDataType() constant.DataType
func (*DecimalDataType) GetValue ¶
func (s *DecimalDataType) GetValue(value interface{}) interface{}
func (*DecimalDataType) IsValid ¶
func (s *DecimalDataType) IsValid(value interface{}) bool
type IntDataType ¶
type IntDataType struct { }
func (*IntDataType) Compare ¶
func (s *IntDataType) Compare(left interface{}, right interface{}, validated bool) (int, error)
func (*IntDataType) GetDataType ¶
func (s *IntDataType) GetDataType() constant.DataType
func (*IntDataType) GetValue ¶
func (s *IntDataType) GetValue(value interface{}) interface{}
func (*IntDataType) IsValid ¶
func (s *IntDataType) IsValid(value interface{}) bool
type LongDataType ¶
type LongDataType struct { }
func (*LongDataType) Compare ¶
func (s *LongDataType) Compare(left interface{}, right interface{}, validated bool) (int, error)
func (*LongDataType) GetDataType ¶
func (s *LongDataType) GetDataType() constant.DataType
func (*LongDataType) GetValue ¶
func (s *LongDataType) GetValue(value interface{}) interface{}
func (*LongDataType) IsValid ¶
func (s *LongDataType) IsValid(value interface{}) bool
type StringDataType ¶
type StringDataType struct { }
func (*StringDataType) Compare ¶
func (s *StringDataType) Compare(left interface{}, right interface{}, validated bool) (int, error)
func (*StringDataType) GetDataType ¶
func (s *StringDataType) GetDataType() constant.DataType
func (*StringDataType) GetValue ¶
func (s *StringDataType) GetValue(value interface{}) interface{}
func (*StringDataType) IsValid ¶
func (s *StringDataType) IsValid(value interface{}) bool
type VersionDataType ¶
type VersionDataType struct { }
func (*VersionDataType) Compare ¶
func (s *VersionDataType) Compare(left interface{}, right interface{}, validated bool) (int, error)
func (*VersionDataType) GetDataType ¶
func (s *VersionDataType) GetDataType() constant.DataType
func (*VersionDataType) GetValue ¶
func (s *VersionDataType) GetValue(value interface{}) interface{}
func (*VersionDataType) IsValid ¶
func (s *VersionDataType) IsValid(value interface{}) bool
Click to show internal directories.
Click to hide internal directories.