Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( SyntaxErrorMissingRightBracket = errors.New("kv condition missing right bracket") SyntaxErrorInvalidCondition = errors.New("kv condition invalid condition") )
View Source
var (
UnknownOperator = errors.New("unknown operator")
)
Functions ¶
This section is empty.
Types ¶
type Condition ¶
type Condition struct { Operator ConditionOperator Left Node Right Node }
type ConditionOperator ¶
type ConditionOperator int
const ( ConditionOperatorAND ConditionOperator = iota + 1 ConditionOperatorOR )
type KVCondition ¶
type KVCondition struct {
Node
}
openapi:strfmt kv-condition
func ParseKVCondition ¶
func ParseKVCondition(r []byte) (*KVCondition, error)
func (KVCondition) IsZero ¶
func (v KVCondition) IsZero() bool
func (KVCondition) MarshalText ¶
func (v KVCondition) MarshalText() ([]byte, error)
func (*KVCondition) Range ¶
func (v *KVCondition) Range(cb func(condition *Rule))
func (*KVCondition) UnmarshalText ¶
func (v *KVCondition) UnmarshalText(data []byte) error
Click to show internal directories.
Click to hide internal directories.