Documentation ¶
Index ¶
Constants ¶
View Source
const ( AndInStr = " AND " OrInStr = " OR " AND = "AND" OR = "OR" NEGATIVE = "NOT" )
View Source
const ( ContainName = "contain" ContainUsageMsg = "usage: contain(key, target)" )
View Source
const ( EqualName = "equal" EqualUsageMsg = "usage: equal(key, target)" )
View Source
const ( ExistName = "exist" ExistUsageMsg = "usage: exist(key)" )
View Source
const ( GreaterName = "greater" GreaterUsageMsg = "usage: greater(key, value)" )
View Source
const ( HasPrefixName = "hasPrefix" HasPrefixUsageMsg = "usage: hasPrefix(key, prefix)" )
View Source
const ( LessName = "less" LessUsageMsg = "usage: less(key, value)" )
View Source
const ( MatchName = "match" MatchUsageMsg = "usage: match(key, regex)" )
View Source
const ( OneOfName = "oneOf" OneOfUsageMsg = "usage: oneOf(key, value1, value2...)" )
Variables ¶
This section is empty.
Functions ¶
func RegisterCondition ¶
Types ¶
type Config ¶
type Contain ¶
type Contain struct {
// contains filtered or unexported fields
}
Contain check if the value of fields is Contain to target value
func NewContain ¶
type Equal ¶
type Equal struct {
// contains filtered or unexported fields
}
Equal check if the value of fields is equal to target value
type Exist ¶
type Exist struct {
// contains filtered or unexported fields
}
Exist check if the fields value is null or not exist in the event
type Greater ¶
type Greater struct {
// contains filtered or unexported fields
}
Greater check if the value of fields is Greater to target value
func NewGreater ¶
type HasPrefix ¶
type HasPrefix struct {
// contains filtered or unexported fields
}
HasPrefix check if the value of fields has target prefix
func NewHasPrefix ¶
type Less ¶
type Less struct {
// contains filtered or unexported fields
}
Less check if the value of fields is Less to target value
Click to show internal directories.
Click to hide internal directories.