interpreter

package
v0.0.0-...-e90a610 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 20, 2022 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AlertRule

type AlertRule struct {
	// contains filtered or unexported fields
}

AlertRule AlertRule

func NewAlertRule

func NewAlertRule(rule string) (*AlertRule, error)

NewAlertRule NewAlertRule

func (AlertRule) Interpret

func (r AlertRule) Interpret(stats map[string]float64) bool

Interpret Interpret

type AndExpression

type AndExpression struct {
	// contains filtered or unexported fields
}

AndExpression &&

func NewAndExpression

func NewAndExpression(exp string) (*AndExpression, error)

NewAndExpression NewAndExpression

func (AndExpression) Interpret

func (e AndExpression) Interpret(stats map[string]float64) bool

Interpret Interpret

type GreaterExpression

type GreaterExpression struct {
	// contains filtered or unexported fields
}

GreaterExpression >

func NewGreaterExpression

func NewGreaterExpression(exp string) (*GreaterExpression, error)

NewGreaterExpression NewGreaterExpression

func (GreaterExpression) Interpret

func (g GreaterExpression) Interpret(stats map[string]float64) bool

Interpret Interpret

type IExpression

type IExpression interface {
	Interpret(stats map[string]float64) bool
}

IExpression interface

type LessExpression

type LessExpression struct {
	// contains filtered or unexported fields
}

LessExpression <

func NewLessExpression

func NewLessExpression(exp string) (*LessExpression, error)

NewLessExpression NewLessExpression

func (LessExpression) Interpret

func (g LessExpression) Interpret(stats map[string]float64) bool

Interpret Interpret

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL