Documentation ¶
Index ¶
- type All
- type Comparsion
- func Compare(attr string, operator Operator, v interface{}) (Comparsion, error)
- func Contains(attr string, v interface{}) (Comparsion, error)
- func EndWith(attr string, v interface{}) (Comparsion, error)
- func IsEqual(attr string, v interface{}) (Comparsion, error)
- func IsGreater(attr string, v interface{}) (Comparsion, error)
- func IsGreaterOrEqual(attr string, v interface{}) (Comparsion, error)
- func IsLess(attr string, v interface{}) (Comparsion, error)
- func IsLessOrEqual(attr string, v interface{}) (Comparsion, error)
- func IsNotEqual(attr string, v interface{}) (Comparsion, error)
- func StartWith(attr string, v interface{}) (Comparsion, error)
- type Condition
- type Identifier
- type Logical
- type LogicalCondition
- type Node
- type Operator
- type Prefix
- type PrefixCondition
- type Query
- type QueryResult
- type Type
- type Value
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Comparsion ¶
type Comparsion interface { Condition Identifier() Identifier Operator() Operator Value() Value }
func Contains ¶
func Contains(attr string, v interface{}) (Comparsion, error)
func EndWith ¶
func EndWith(attr string, v interface{}) (Comparsion, error)
func IsEqual ¶
func IsEqual(attr string, v interface{}) (Comparsion, error)
func IsGreater ¶
func IsGreater(attr string, v interface{}) (Comparsion, error)
func IsGreaterOrEqual ¶
func IsGreaterOrEqual(attr string, v interface{}) (Comparsion, error)
func IsLess ¶
func IsLess(attr string, v interface{}) (Comparsion, error)
func IsLessOrEqual ¶
func IsLessOrEqual(attr string, v interface{}) (Comparsion, error)
func IsNotEqual ¶
func IsNotEqual(attr string, v interface{}) (Comparsion, error)
func StartWith ¶
func StartWith(attr string, v interface{}) (Comparsion, error)
type Identifier ¶
type LogicalCondition ¶
func And ¶
func And(left, right Node) LogicalCondition
func Or ¶
func Or(left, right Node) LogicalCondition
type PrefixCondition ¶
func Group ¶
func Group(n Node) PrefixCondition
func Not ¶
func Not(n Node) PrefixCondition
func Pr ¶
func Pr(i Identifier) PrefixCondition
type Query ¶
type QueryResult ¶
type QueryResult struct { From int `json:"from"` Size int `json:"size"` Count int `json:"count"` Result []interface{} `json:"result,omitempty"` Timestamp time.Time `json:"timestamp,omitempty"` Took int64 `json:"millis,omitempty"` }
func NewQueryResult ¶
func NewQueryResult(query Query, result []interface{}, count int) *QueryResult
Click to show internal directories.
Click to hide internal directories.