Versions in this module Expand all Collapse all v0 v0.1.1 May 26, 2019 Changes in this version + const AnnotationOperatorContains + const AnnotationOperatorEndsWith + const AnnotationOperatorEqual + const AnnotationOperatorExists + const AnnotationOperatorGreaterEqual + const AnnotationOperatorGreaterThan + const AnnotationOperatorIn + const AnnotationOperatorIsNull + const AnnotationOperatorLessEqual + const AnnotationOperatorLessThan + const AnnotationOperatorNotEqual + const AnnotationOperatorNotExists + const AnnotationOperatorNotIn + const AnnotationOperatorNotNull + const AnnotationOperatorStDWithin + const AnnotationOperatorStartsWith + func AddNestedField(f, nested *FilterField) + func FilterAppendValues(f *FilterField, values ...*OpValuePair) + type FilterField struct + func CopyFilter(f *FilterField) *FilterField + func GetOrCreateNestedFilter(f *FilterField, field interface{}) *FilterField + func NestedFields(f *FilterField) []*FilterField + func NewFilter(s *models.StructField, values ...*OpValuePair) *FilterField + func (f *FilterField) AddNestedField(nested *FilterField) + func (f *FilterField) AddValues(values ...*OpValuePair) + func (f *FilterField) Key() string + func (f *FilterField) NestedFields() []*FilterField + func (f *FilterField) Raw() string + func (f *FilterField) SetValues(values []string, op *Operator, sup *i18n.Support) (errObj *aerrors.ApiError) + func (f *FilterField) StructField() *models.StructField + func (f *FilterField) Values() []*OpValuePair + type OpValuePair struct + Values []interface{} + func CopyOpValuePair(o *OpValuePair) *OpValuePair + func FilterOpValuePairs(f *FilterField) []*OpValuePair + func NewOpValuePair(o *Operator, values ...interface{}) *OpValuePair + func (o *OpValuePair) Operator() *Operator + func (o *OpValuePair) SetOperator(op *Operator) + type Operator struct + Id uint16 + Name string + Raw string + var OpContains = &Operator{ ... } + var OpEndsWith = &Operator{ ... } + var OpEqual *Operator = &Operator{ ... } + var OpExists *Operator = &Operator{ ... } + var OpGreaterEqual *Operator = &Operator{ ... } + var OpGreaterThan *Operator = &Operator{ ... } + var OpIn *Operator = &Operator{ ... } + var OpIsNull *Operator = &Operator{ ... } + var OpLessEqual *Operator = &Operator{ ... } + var OpLessThan *Operator = &Operator{ ... } + var OpNotEqual *Operator = &Operator{ ... } + var OpNotExists *Operator = &Operator{ ... } + var OpNotIn *Operator = &Operator{ ... } + var OpNotNull *Operator = &Operator{ ... } + var OpStartsWith = &Operator{ ... } + func (f Operator) IsStandard() bool + func (f Operator) String() string + type OperatorContainer struct + var Operators *OperatorContainer = NewOpContainer() + func NewOpContainer() *OperatorContainer + func (c *OperatorContainer) Get(raw string) (*Operator, bool) + func (c *OperatorContainer) GetByName(name string) (*Operator, bool) + func (c *OperatorContainer) RegisterOperator(op *Operator) error + func (c *OperatorContainer) RegisterOperators(ops ...*Operator) error