Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Condition ¶
type Condition struct { Field string Operation OperationType Value string SkipRule bool }
type Filter ¶
type Filter struct {
// contains filtered or unexported fields
}
func (*Filter) SetConditions ¶
SetConditions sets filter rules
type OperationType ¶
type OperationType string
const ( OperationEqual OperationType = "eq" OperationNotEqual OperationType = "neq" OperationLessThan OperationType = "lt" OperationLessOrEqual OperationType = "lte" OperationGreaterThan OperationType = "gt" OperationGreaterOrEqual OperationType = "gte" OperationHas OperationType = "has" OperationIn OperationType = "in" OperationIsNull OperationType = "isnull" )
type Option ¶
type Option interface {
Apply(f *Filter)
}
Option for filter
func WithConditions ¶
WithConditions configures filter for query
type Rule ¶
type Rule struct { Key string Operation []OperationType Type VariableType AcceptNull bool }
type VariableType ¶
type VariableType string
const ( VariableString VariableType = "string" VariableInteger VariableType = "number" VariableBool VariableType = "boolean" VariableDecimal VariableType = "decimal" VariableDate VariableType = "date" VariableTimestamp VariableType = "timestamp" VariableTimestampMillis VariableType = "timestamp_millis" )
Click to show internal directories.
Click to hide internal directories.