engine

package
v5.0.0 Latest Latest
Warning

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

Go to latest
Published: Jul 18, 2023 License: Apache-2.0 Imports: 7 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Engine

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

Engine struct is responsible for checking if any of the conditions of the feature flag matches, performing traffic allocation, calculating the bucket and returning the appropriate treatment

func NewEngine

func NewEngine(logger logging.LoggerInterface) *Engine

NewEngine instantiates and returns a new engine

func (*Engine) DoEvaluation

func (e *Engine) DoEvaluation(
	split *grammar.Split,
	key string,
	bucketingKey string,
	attributes map[string]interface{},
) (*string, string)

DoEvaluation performs the main evaluation against each condition

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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