data

package
v1.1.4 Latest Latest
Warning

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

Go to latest
Published: Sep 5, 2025 License: Apache-2.0 Imports: 4 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ExpressionInterface

type ExpressionInterface interface {
	String() string
	Convert(targetFormat OutputFormat) (string, error)
}

type OutputFormat

type OutputFormat string
const (
	GRL  OutputFormat = "GRL"
	JSON OutputFormat = "JSON"
)

type Rule

type Rule struct {
	Name        string
	Annotation  string
	Salience    int
	InvSalience int //Necessary for HitPolicies
	Expressions []Term
	Assignments []Term
}

type RuleSet

type RuleSet struct {
	Key             string
	Name            string
	HitPolicy       hitPolicy.HitPolicy
	CollectOperator collectOperator.CollectOperator
	Interference    bool
	Rules           []Rule
}

type Term

type Term struct {
	Field              field.Field
	Expression         ExpressionInterface
	ExpressionLanguage expressionLanguage.ExpressionLanguage
}

Jump to

Keyboard shortcuts

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