Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AssertRule ¶
AssertRule validates if the rules is fullfilled the the entity
Types ¶
type Rule ¶
type Rule struct {
Name string // rule ID
Property string // property name to check on the structure
Condition Operator // condition operator
ConditionValue interface{} // value to be checked
ReturnValuePositive interface{} // value returned if the condition is positive
ReturnValueNegative interface{} // value returned if the condition fails
}
Rule represents a simple condition that needs to be applied on a given entity
Click to show internal directories.
Click to hide internal directories.