Documentation
¶
Index ¶
- Constants
- type Array
- type Boolean
- func (b Boolean) Contains(value []string) bool
- func (b Boolean) EndsWith(value []string) bool
- func (b Boolean) Equal(value []string) bool
- func (b Boolean) EqualSensitive(value []string) bool
- func (b Boolean) GreaterThan(value []string) bool
- func (b Boolean) GreaterThanEqual(value []string) bool
- func (b Boolean) In(value []string) bool
- func (b Boolean) LessThan(value []string) bool
- func (b Boolean) LessThanEqual(value []string) bool
- func (b Boolean) Match(value []string) bool
- func (b Boolean) StartsWith(value []string) bool
- type ErrorType
- type Integer
- func (n Integer) Contains([]string) bool
- func (n Integer) EndsWith([]string) bool
- func (n Integer) Equal(value []string) bool
- func (n Integer) EqualSensitive([]string) bool
- func (n Integer) GreaterThan(value []string) bool
- func (n Integer) GreaterThanEqual(value []string) bool
- func (n Integer) In(value []string) bool
- func (n Integer) LessThan(value []string) bool
- func (n Integer) LessThanEqual(value []string) bool
- func (n Integer) Match([]string) bool
- func (n Integer) StartsWith([]string) bool
- type JSON
- type Number
- func (n Number) Contains(value []string) bool
- func (n Number) EndsWith(value []string) bool
- func (n Number) Equal(value []string) bool
- func (n Number) EqualSensitive(value []string) bool
- func (n Number) GreaterThan(value []string) bool
- func (n Number) GreaterThanEqual(value []string) bool
- func (n Number) In(value []string) bool
- func (n Number) LessThan(value []string) bool
- func (n Number) LessThanEqual(value []string) bool
- func (n Number) Match(value []string) bool
- func (n Number) StartsWith(value []string) bool
- type RealClock
- type Sleeper
- type Slice
- func (s Slice) Contains(values []string) bool
- func (s Slice) EndsWith(value []string) bool
- func (s Slice) Equal(value []string) bool
- func (s Slice) EqualSensitive(value []string) bool
- func (s Slice) GreaterThan(value []string) bool
- func (s Slice) GreaterThanEqual(value []string) bool
- func (s Slice) In(values []string) bool
- func (s Slice) LessThan(value []string) bool
- func (s Slice) LessThanEqual(value []string) bool
- func (s Slice) Match(value []string) bool
- func (s Slice) StartsWith(value []string) bool
- type String
- func (s String) Contains(value []string) bool
- func (s String) EndsWith(value []string) bool
- func (s String) Equal(value []string) bool
- func (s String) EqualSensitive(value []string) bool
- func (s String) GreaterThan(value []string) bool
- func (s String) GreaterThanEqual(value []string) bool
- func (s String) In(value []string) bool
- func (s String) LessThan(value []string) bool
- func (s String) LessThanEqual(value []string) bool
- func (s String) Match(value []string) bool
- func (s String) StartsWith(value []string) bool
- func (s String) String() string
- type ValueType
Constants ¶
const ( // ErrWrongTypeAssertion is custom error for wrong type assertions ErrWrongTypeAssertion = ErrorType("Wrong type assertion") )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Boolean ¶
type Boolean bool
Boolean type for clause attribute evaluation
func NewBoolean ¶
NewBoolean creates a Boolean instance with the object value
func (Boolean) EqualSensitive ¶
EqualSensitive always return false
func (Boolean) GreaterThan ¶
GreaterThan always return false
func (Boolean) GreaterThanEqual ¶
GreaterThanEqual always return false
func (Boolean) LessThanEqual ¶
LessThanEqual always return false
func (Boolean) StartsWith ¶
StartsWith always return false
type Integer ¶
type Integer int64
Integer type for clause attribute evaluation
func NewInteger ¶
NewInteger creates a Integer instance with the object value
func (Integer) EqualSensitive ¶
EqualSensitive always return false
func (Integer) GreaterThan ¶
GreaterThan checks if the number is greater than the value
func (Integer) GreaterThanEqual ¶
GreaterThanEqual checks if the number is greater or equal than the value
func (Integer) LessThanEqual ¶
LessThanEqual checks if the number is less or equal than the value
func (Integer) StartsWith ¶
StartsWith always return false
type Number ¶
type Number float64
Number type for clause attribute evaluation
func (Number) EqualSensitive ¶
EqualSensitive always return false
func (Number) GreaterThan ¶
GreaterThan checks if the number is greater than the value
func (Number) GreaterThanEqual ¶
GreaterThanEqual checks if the number is greater or equal than the value
func (Number) LessThanEqual ¶
LessThanEqual checks if the number is less or equal than the value
func (Number) StartsWith ¶
StartsWith always return false
type RealClock ¶ added in v0.1.12
type RealClock struct{}
RealClock is the default implementation for Sleeper
type Slice ¶
type Slice struct {
// contains filtered or unexported fields
}
Slice type for clause attribute evaluation
func NewSlice ¶
func NewSlice(value interface{}) Slice
NewSlice creates a Slice instance with the object value
func (Slice) EqualSensitive ¶
EqualSensitive always return false
func (Slice) GreaterThan ¶
GreaterThan always return false
func (Slice) GreaterThanEqual ¶
GreaterThanEqual always return false
func (Slice) In ¶
In compares the attributes held by the slice with the input values. it will first determine what type of slice this is, before casting values to the appropriate type.
func (Slice) LessThanEqual ¶
LessThanEqual always return false
func (Slice) StartsWith ¶
StartsWith always return false
type String ¶
type String string
String type for clause attribute evaluation
func (String) EqualSensitive ¶
EqualSensitive check if the string and value are equal (case sensitive)
func (String) GreaterThan ¶
GreaterThan checks if the string is greater than the value
func (String) GreaterThanEqual ¶
GreaterThanEqual checks if the string is greater or equal than the value
func (String) LessThanEqual ¶
LessThanEqual checks if the string is less or equal than the value
func (String) StartsWith ¶
StartsWith check if the string starts with the value
type ValueType ¶
type ValueType interface { StartsWith(value []string) bool EndsWith(value []string) bool Match(value []string) bool Contains(value []string) bool EqualSensitive(value []string) bool Equal(value []string) bool GreaterThan(value []string) bool GreaterThanEqual(value []string) bool LessThan(value []string) bool LessThanEqual(value []string) bool In(value []string) bool }
ValueType interface used for different clause types