Documentation
¶
Index ¶
- Constants
- func DefaultBool(boolValue bool) func(interface{}) BoolValue
- func DefaultText(textValue string) func(interface{}) TextValue
- type AttributeStub
- func (stub AttributeStub) AvailableFilters() []interface{}
- func (stub AttributeStub) DefaultFallback(val interface{}, instance interface{}) (interface{}, error)
- func (stub AttributeStub) GetFilterWhere(int, map[string][]string) ([]string, []interface{})
- func (stub AttributeStub) GetInsert(val interface{}) ([]string, []interface{})
- func (stub AttributeStub) GetOrderMap() map[string]string
- func (stub AttributeStub) Validate(val interface{}) (interface{}, error)
- func (stub AttributeStub) ValidateFilters(map[string][]string) ([]schema.Filter, error)
- func (stub AttributeStub) ValidateUpdate(newVal interface{}, oldVal interface{}) (interface{}, error)
- type Bool
- func (b Bool) AvailableFilters() []interface{}
- func (b *Bool) DefaultFallback(val interface{}, instance interface{}) (interface{}, error)
- func (b *Bool) GetInsert(val interface{}) ([]string, []interface{})
- func (b Bool) GetKey() string
- func (b Bool) GetOrderMap() map[string]string
- func (b Bool) GetSelectDirect() ([]string, []interface{})
- func (b *Bool) Validate(val interface{}) (interface{}, error)
- func (b Bool) ValidateFilters(queries map[string][]string) ([]schema.Filter, error)
- func (b *Bool) ValidateUpdate(newVal interface{}, oldVal interface{}) (interface{}, error)
- type BoolExactFilter
- type BoolNullFilter
- type BoolValue
- type Date
- func (d Date) AvailableFilters() []interface{}
- func (d *Date) DefaultFallback(val interface{}, instance interface{}) (interface{}, error)
- func (d *Date) GetInsert(val interface{}) ([]string, []interface{})
- func (d Date) GetKey() string
- func (d Date) GetOrderMap() map[string]string
- func (d Date) GetSelectDirect() ([]string, []interface{})
- func (d *Date) Validate(val interface{}) (interface{}, error)
- func (d Date) ValidateFilters(queries map[string][]string) ([]schema.Filter, error)
- func (d *Date) ValidateUpdate(newVal interface{}, oldVal interface{}) (interface{}, error)
- type DateAfterFilter
- type DateExactFilter
- type DateNullFilter
- type DateValue
- type Datetime
- func (dt Datetime) AvailableFilters() []interface{}
- func (dt *Datetime) DefaultFallback(val interface{}, instance interface{}) (interface{}, error)
- func (dt *Datetime) GetInsert(val interface{}) ([]string, []interface{})
- func (dt Datetime) GetKey() string
- func (dt Datetime) GetOrderMap() map[string]string
- func (dt Datetime) GetSelectDirect() ([]string, []interface{})
- func (dt *Datetime) Validate(val interface{}) (interface{}, error)
- func (dt Datetime) ValidateFilters(queries map[string][]string) ([]schema.Filter, error)
- func (dt *Datetime) ValidateUpdate(newVal interface{}, oldVal interface{}) (interface{}, error)
- type DatetimeAfterFilter
- type DatetimeExactFilter
- type DatetimeNullFilter
- type DatetimeValue
- type Decimal
- func (d Decimal) AvailableFilters() []interface{}
- func (d *Decimal) DefaultFallback(val interface{}, instance interface{}) (interface{}, error)
- func (d *Decimal) GetInsert(val interface{}) ([]string, []interface{})
- func (d Decimal) GetKey() string
- func (d Decimal) GetOrderMap() map[string]string
- func (d Decimal) GetSelectDirect() ([]string, []interface{})
- func (d *Decimal) Validate(val interface{}) (interface{}, error)
- func (d Decimal) ValidateFilters(queries map[string][]string) ([]schema.Filter, error)
- func (d *Decimal) ValidateUpdate(newVal interface{}, oldVal interface{}) (interface{}, error)
- type DecimalExactFilter
- type DecimalLesserFilter
- type DecimalNullFilter
- type DecimalValue
- type Integer
- func (i Integer) AvailableFilters() []interface{}
- func (i *Integer) DefaultFallback(val interface{}, instance interface{}) (interface{}, error)
- func (i *Integer) GetInsert(val interface{}) ([]string, []interface{})
- func (i Integer) GetKey() string
- func (i Integer) GetOrderMap() map[string]string
- func (i Integer) GetSelectDirect() ([]string, []interface{})
- func (i *Integer) Validate(val interface{}) (interface{}, error)
- func (i Integer) ValidateFilters(queries map[string][]string) ([]schema.Filter, error)
- func (i *Integer) ValidateUpdate(newVal interface{}, oldVal interface{}) (interface{}, error)
- type IntegerExactFilter
- type IntegerLesserFilter
- type IntegerNullFilter
- type IntegerValue
- type Text
- func (t Text) AvailableFilters() []interface{}
- func (t *Text) DefaultFallback(val interface{}, instance interface{}) (interface{}, error)
- func (t *Text) GetInsert(val interface{}) ([]string, []interface{})
- func (t Text) GetKey() string
- func (t Text) GetOrderMap() map[string]string
- func (t Text) GetSelectDirect() ([]string, []interface{})
- func (t *Text) Validate(val interface{}) (interface{}, error)
- func (t Text) ValidateFilters(queries map[string][]string) ([]schema.Filter, error)
- func (t *Text) ValidateUpdate(newVal interface{}, oldVal interface{}) (interface{}, error)
- type TextContainsFilter
- type TextExactFilter
- type TextLengthExactFilter
- type TextLengthGreaterFilter
- type TextLengthLesserFilter
- type TextNullFilter
- type TextValue
Constants ¶
View Source
const DATE_LAYOUT = "2006-01-02"
Variables ¶
This section is empty.
Functions ¶
func DefaultBool ¶
func DefaultText ¶
Types ¶
type AttributeStub ¶
type AttributeStub struct{}
func (AttributeStub) AvailableFilters ¶
func (stub AttributeStub) AvailableFilters() []interface{}
func (AttributeStub) DefaultFallback ¶
func (stub AttributeStub) DefaultFallback( val interface{}, instance interface{}, ) ( interface{}, error, )
func (AttributeStub) GetFilterWhere ¶
func (stub AttributeStub) GetFilterWhere(int, map[string][]string) ([]string, []interface{})
func (AttributeStub) GetInsert ¶
func (stub AttributeStub) GetInsert(val interface{}) ([]string, []interface{})
func (AttributeStub) GetOrderMap ¶
func (stub AttributeStub) GetOrderMap() map[string]string
func (AttributeStub) Validate ¶
func (stub AttributeStub) Validate(val interface{}) (interface{}, error)
func (AttributeStub) ValidateFilters ¶
func (AttributeStub) ValidateUpdate ¶
func (stub AttributeStub) ValidateUpdate(newVal interface{}, oldVal interface{}) (interface{}, error)
type Bool ¶
type Bool struct { AttributeStub Key string ColumnName string Nullable bool Default func(interface{}) BoolValue }
func (Bool) AvailableFilters ¶
func (b Bool) AvailableFilters() []interface{}
func (*Bool) DefaultFallback ¶
func (Bool) GetOrderMap ¶
func (Bool) GetSelectDirect ¶
func (Bool) ValidateFilters ¶
func (*Bool) ValidateUpdate ¶
type BoolExactFilter ¶
type BoolExactFilter struct { *schema.BaseFilter // contains filtered or unexported fields }
type BoolNullFilter ¶
type BoolNullFilter struct { *schema.BaseFilter // contains filtered or unexported fields }
type BoolValue ¶
func AssertBool ¶
func AssertBool(val interface{}) BoolValue
func (*BoolValue) MarshalJSON ¶
func (*BoolValue) UnmarshalJSON ¶
type Date ¶
type Date struct { AttributeStub Key string ColumnName string Nullable bool Default func(interface{}) DateValue }
func (Date) AvailableFilters ¶
func (d Date) AvailableFilters() []interface{}
func (*Date) DefaultFallback ¶
func (Date) GetOrderMap ¶
func (Date) GetSelectDirect ¶
func (Date) ValidateFilters ¶
func (*Date) ValidateUpdate ¶
type DateAfterFilter ¶
type DateAfterFilter struct { *schema.BaseFilter // contains filtered or unexported fields }
type DateExactFilter ¶
type DateExactFilter struct { *schema.BaseFilter // contains filtered or unexported fields }
type DateNullFilter ¶
type DateNullFilter struct { *schema.BaseFilter // contains filtered or unexported fields }
type DateValue ¶
func AssertDate ¶
func AssertDate(val interface{}) DateValue
func (DateValue) MarshalJSON ¶
func (*DateValue) UnmarshalJSON ¶
type Datetime ¶
type Datetime struct { AttributeStub Key string ColumnName string Nullable bool Default func(interface{}) DatetimeValue }
func (Datetime) AvailableFilters ¶
func (dt Datetime) AvailableFilters() []interface{}
func (*Datetime) DefaultFallback ¶
func (Datetime) GetOrderMap ¶
func (Datetime) GetSelectDirect ¶
func (Datetime) ValidateFilters ¶
func (*Datetime) ValidateUpdate ¶
type DatetimeAfterFilter ¶
type DatetimeAfterFilter struct { *schema.BaseFilter // contains filtered or unexported fields }
type DatetimeExactFilter ¶
type DatetimeExactFilter struct { *schema.BaseFilter // contains filtered or unexported fields }
type DatetimeNullFilter ¶
type DatetimeNullFilter struct { *schema.BaseFilter // contains filtered or unexported fields }
type DatetimeValue ¶
func AssertDatetime ¶
func AssertDatetime(val interface{}) DatetimeValue
func (DatetimeValue) Equal ¶
func (dtv DatetimeValue) Equal(odtv DatetimeValue) bool
func (DatetimeValue) MarshalJSON ¶
func (dtv DatetimeValue) MarshalJSON() ([]byte, error)
func (*DatetimeValue) UnmarshalJSON ¶
func (dtv *DatetimeValue) UnmarshalJSON(data []byte) error
type Decimal ¶
type Decimal struct { AttributeStub Key string ColumnName string DecimalPlaces int32 Nullable bool Default func(interface{}) DecimalValue }
func (Decimal) AvailableFilters ¶
func (d Decimal) AvailableFilters() []interface{}
func (*Decimal) DefaultFallback ¶
func (Decimal) GetOrderMap ¶
func (Decimal) GetSelectDirect ¶
func (Decimal) ValidateFilters ¶
func (*Decimal) ValidateUpdate ¶
type DecimalExactFilter ¶
type DecimalExactFilter struct { *schema.BaseFilter // contains filtered or unexported fields }
type DecimalLesserFilter ¶
type DecimalLesserFilter struct { *schema.BaseFilter // contains filtered or unexported fields }
type DecimalNullFilter ¶
type DecimalNullFilter struct { *schema.BaseFilter // contains filtered or unexported fields }
type DecimalValue ¶
func AssertDecimal ¶
func AssertDecimal(val interface{}, decimalPlaces int32) DecimalValue
func (DecimalValue) Equal ¶
func (dv DecimalValue) Equal(odv DecimalValue) bool
func (*DecimalValue) MarshalJSON ¶
func (dv *DecimalValue) MarshalJSON() ([]byte, error)
func (*DecimalValue) UnmarshalJSON ¶
func (dv *DecimalValue) UnmarshalJSON(data []byte) error
type Integer ¶
type Integer struct { AttributeStub Key string ColumnName string Nullable bool Default func(interface{}) IntegerValue }
func (Integer) AvailableFilters ¶
func (i Integer) AvailableFilters() []interface{}
func (*Integer) DefaultFallback ¶
func (Integer) GetOrderMap ¶
func (Integer) GetSelectDirect ¶
func (Integer) ValidateFilters ¶
func (*Integer) ValidateUpdate ¶
type IntegerExactFilter ¶
type IntegerExactFilter struct { *schema.BaseFilter // contains filtered or unexported fields }
type IntegerLesserFilter ¶
type IntegerLesserFilter struct { *schema.BaseFilter // contains filtered or unexported fields }
type IntegerNullFilter ¶
type IntegerNullFilter struct { *schema.BaseFilter // contains filtered or unexported fields }
type IntegerValue ¶
func AssertInteger ¶
func AssertInteger(val interface{}) IntegerValue
func (IntegerValue) Equal ¶
func (iv IntegerValue) Equal(oiv IntegerValue) bool
func (*IntegerValue) MarshalJSON ¶
func (iv *IntegerValue) MarshalJSON() ([]byte, error)
func (*IntegerValue) UnmarshalJSON ¶
func (iv *IntegerValue) UnmarshalJSON(data []byte) error
type Text ¶
type Text struct { AttributeStub Key string ColumnName string Nullable bool MinLength *int MaxLength *int Default func(interface{}) TextValue }
func (Text) AvailableFilters ¶
func (t Text) AvailableFilters() []interface{}
func (*Text) DefaultFallback ¶
func (Text) GetOrderMap ¶
func (Text) GetSelectDirect ¶
func (Text) ValidateFilters ¶
func (*Text) ValidateUpdate ¶
type TextContainsFilter ¶
type TextContainsFilter struct { *schema.BaseFilter // contains filtered or unexported fields }
type TextExactFilter ¶
type TextExactFilter struct { *schema.BaseFilter // contains filtered or unexported fields }
type TextLengthExactFilter ¶
type TextLengthExactFilter struct { *schema.BaseFilter // contains filtered or unexported fields }
type TextLengthGreaterFilter ¶
type TextLengthGreaterFilter struct { *schema.BaseFilter // contains filtered or unexported fields }
type TextLengthLesserFilter ¶
type TextLengthLesserFilter struct { *schema.BaseFilter // contains filtered or unexported fields }
type TextNullFilter ¶
type TextNullFilter struct { *schema.BaseFilter // contains filtered or unexported fields }
type TextValue ¶
func AssertText ¶
func AssertText(val interface{}) TextValue
func (*TextValue) MarshalJSON ¶
func (*TextValue) UnmarshalJSON ¶
Source Files
¶
- a_bool.go
- a_bool_filters.go
- a_bool_value.go
- a_date.go
- a_date_filters.go
- a_date_value.go
- a_datetime.go
- a_datetime_filters.go
- a_datetime_value.go
- a_decimal.go
- a_decimal_filters.go
- a_decimal_value.go
- a_integer.go
- a_integer_filters.go
- a_integer_value.go
- a_text.go
- a_text_filters.go
- a_text_value.go
- attribute.go
- defaults.go
Click to show internal directories.
Click to hide internal directories.