Documentation ¶
Index ¶
Constants ¶
View Source
const ( GroupLogicAnd = iota GroupLogicOr GroupLogicXor )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Builder ¶
type Builder interface { Negation() Builder GroupLogic(l GroupLogic) Builder GroupChildren(children []Condition) Builder MatchAttrKey(k string) Builder MatchText(p string) Builder BuildGroupCondition() (c Condition) BuildTextCondition() (c Condition) }
func NewBuilder ¶
func NewBuilder() Builder
type GroupCondition ¶
type GroupCondition interface { Condition GetLogic() (logic GroupLogic) GetGroup() (group []Condition) }
func NewGroupCondition ¶
func NewGroupCondition(c Condition, logic GroupLogic, group []Condition) GroupCondition
type GroupLogic ¶
type GroupLogic int
func (GroupLogic) String ¶
func (gl GroupLogic) String() string
type KeyCondition ¶
func NewKeyCondition ¶
func NewKeyCondition(c Condition, k string) KeyCondition
type TextCondition ¶ added in v0.0.5
type TextCondition interface { KeyCondition GetTerm() string }
func NewTextCondition ¶ added in v0.0.5
func NewTextCondition(kc KeyCondition, pattern string) TextCondition
Click to show internal directories.
Click to hide internal directories.