Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Evaluator ¶
type Evaluator interface { EvalWithMetric(metricName string, targetValue float64, value float64) bool EvalWithRawQuery(input string, rule string) bool }
func NewExpressionEvaluator ¶
func NewExpressionEvaluator() Evaluator
func NewOpaEvaluator ¶
func NewOpaEvaluator() Evaluator
type ExpressionEvaluator ¶
type ExpressionEvaluator struct { }
func (*ExpressionEvaluator) EvalWithMetric ¶
func (c *ExpressionEvaluator) EvalWithMetric(metricName string, targetValue float64, value float64) bool
func (*ExpressionEvaluator) EvalWithRawQuery ¶
func (c *ExpressionEvaluator) EvalWithRawQuery(input string, rule string) bool
type OpaEvaluator ¶
type OpaEvaluator struct { }
func (*OpaEvaluator) EvalWithMetric ¶
func (c *OpaEvaluator) EvalWithMetric(metricName string, targetValue float64, value float64) bool
func (*OpaEvaluator) EvalWithRawQuery ¶
func (c *OpaEvaluator) EvalWithRawQuery(input string, rule string) bool
Click to show internal directories.
Click to hide internal directories.