Example #1
0
// Check is the Condition interface implementation for Map
func (m *Map) Check(params data.Parameters) bool {
	if value, error := params.Get(m.Name); error == nil {
		if _, check := m.Values[value]; check {
			return !m.Exclude
		}
	}
	return m.Exclude
}
Example #2
0
//TypeValue is the common interval value function
func TypeValue(params data.Parameters) int64 {
	return int64(params.Type())
}
Example #3
0
//TimeValue is the common interval value function
func TimeValue(params data.Parameters) int64 {
	return params.Time()
}