Documentation ¶
Index ¶
Constants ¶
View Source
const ( EQ = iota + 1 NE LE GE LT GT AND OR BETWEEN LINK IN ISNULL )
Operators
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type And ¶
type And Condition
type ConditionService ¶
type ConditionService interface { SetFields(key string, value interface{}, operator Operator) ConditionService GetType() int SetGroup(bool) ToString() string }
func NewAnd ¶
func NewAnd() ConditionService
func NewOr ¶
func NewOr() ConditionService
type ConditionStack ¶
type ConditionStack struct {
// contains filtered or unexported fields
}
type Factory ¶
type Factory interface { Factory(restrictionType int) ConditionService AddCondition(fn func() string, operator Operator) Transpile() string }
func NewRestriction ¶
func NewRestriction() Factory
type Field ¶
type Field struct { Field query.FieldService Operator Operator }
type Or ¶
type Or Condition
type Restriction ¶
func (*Restriction) AddCondition ¶
func (r *Restriction) AddCondition(condition func() string, operator Operator)
func (*Restriction) Factory ¶
func (r *Restriction) Factory(restrictionType int) ConditionService
func (*Restriction) Transpile ¶
func (r *Restriction) Transpile() string
Click to show internal directories.
Click to hide internal directories.