Documentation
¶
Index ¶
- Variables
- type Expr
- func And(exprArray ...Expr) Expr
- func ArrayExpr(expr ...Expr) Expr
- func BooleanExpr(b bool) Expr
- func ExprArrayFromStrings(stringArray []string) []Expr
- func ExprFromStrings(stringArray []string) Expr
- func NewExpr() Expr
- func NotAnd(exprArray ...Expr) Expr
- func NotOr(exprArray ...Expr) Expr
- func NumberExpr(number float64) Expr
- func OperatorExpr(o string) Expr
- func Or(exprArray ...Expr) Expr
- func StringExpr(str string) Expr
- func (e Expr) AppendExpr(expr ...Expr) Expr
- func (e Expr) AppendString(str string) Expr
- func (e Expr) AppendStrings(strs ...string)
- func (e Expr) CreateArrayExpr(exprArray ...Expr) Expr
- func (e *Expr) DeepCopy() *Expr
- func (e *Expr) DeepCopyInto(out *Expr)
- func (e Expr) Equals(expr Expr) Expr
- func (e Expr) GreaterThan(expr Expr) Expr
- func (e Expr) Has(expr Expr) Expr
- func (e Expr) IPMatch(expr Expr) Expr
- func (e Expr) In(expr Expr) Expr
- func (e Expr) InsensitiveRegularMatch(expr Expr) Expr
- func (e Expr) LessThan(expr Expr) Expr
- func (expr *Expr) MarshalJSON() ([]byte, error)
- func (e Expr) Not() Expr
- func (e Expr) NotEquals(expr Expr) Expr
- func (e Expr) NotIn(expr Expr) Expr
- func (e Expr) RegularMatch(expr Expr) Expr
- func (e *Expr) StringArrayExpr(strs ...string) Expr
- func (e Expr) ToArray() []Expr
- func (expr *Expr) UnmarshalJSON(buf []byte) error
- type Type
Constants ¶
This section is empty.
Variables ¶
View Source
var ( Equal = OperatorExpr("==") NotEqual = OperatorExpr("~=") RegularMatch = OperatorExpr("~~") InsensitiveRegularMatch = OperatorExpr("~*") Not = OperatorExpr("!") Has = OperatorExpr("has") In = OperatorExpr("in") GreaterThan = OperatorExpr(">") LessThan = OperatorExpr("<") IPMatch = OperatorExpr("ipmatch") AND = OperatorExpr("AND") OR = OperatorExpr("OR") NOTANT = OperatorExpr("!AND") NOTOR = OperatorExpr("!OR") )
Functions ¶
This section is empty.
Types ¶
type Expr ¶
type Expr struct { Type Type `json:"-"` NumberVal float64 StringVal string BooleanVal bool ArrayVal []Expr }
func BooleanExpr ¶
func ExprArrayFromStrings ¶
func ExprFromStrings ¶
func NumberExpr ¶
func OperatorExpr ¶
func StringExpr ¶
func (Expr) AppendExpr ¶
AppendExpr function appends element to the end of this Expr ArrayVal
func (Expr) AppendString ¶
AppendString function is a simple way to append string variable.
func (Expr) AppendStrings ¶
func (Expr) CreateArrayExpr ¶
CreateArrayExpr function create a new array type Expr contains this expr and input exprs
func (*Expr) DeepCopyInto ¶ added in v0.1.1
func (Expr) GreaterThan ¶
func (Expr) InsensitiveRegularMatch ¶
func (*Expr) MarshalJSON ¶
func (Expr) RegularMatch ¶
func (*Expr) StringArrayExpr ¶
StringArrayExpr function create a new array type Expr by string slice.
func (*Expr) UnmarshalJSON ¶
Source Files
¶
Click to show internal directories.
Click to hide internal directories.