Documentation
¶
Index ¶
Constants ¶
View Source
const ( LessThanEq = "Less Than Or Eq" MoreThanEq = "More Than Or Eq" MoreThan = "More Than" NotEq = "Not Equal" )
Comparison type constants
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Comparator ¶
type Comparator struct {
Label string // Label that identifies reference value
Type string // Less Than Eq, More Than Eq, or More Than
Value uint64 // Value to Compare To
}
Comparator struct for value comparisons
func (*Comparator) Validate ¶
func (c *Comparator) Validate(val uint64) error
Validate checks if the given value satisfies the comparator constraint
Click to show internal directories.
Click to hide internal directories.