utils

package
v1.36.1 Latest Latest
Warning

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

Go to latest
Published: Oct 11, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuildHash added in v1.32.0

func BuildHash(flagName string, bucketingKey string, max uint32) uint32

BuildHash is building the hash based on the different properties of the evaluation.

func Contains added in v1.0.0

func Contains(s []string, str string) bool

func ContextToMap added in v1.12.0

func ContextToMap(ctx ffcontext.Context) map[string]interface{}

ContextToMap convert the context to a MAP to use the query on it.

func ConvertEvaluationCtxFromRequest added in v1.20.1

func ConvertEvaluationCtxFromRequest(targetingKey string, custom map[string]interface{}) ffcontext.Context

ConvertEvaluationCtxFromRequest convert the result of an unmarshal request from the API to a ffcontext.Context @param targetingKey the targeting key to use for the context @param custom the custom attributes to add to the context @return ffcontext.Context

func Hash

func Hash(s string) uint32

Hash is taking a string and convert.

func IsIntegral added in v1.20.1

func IsIntegral(val float64) bool

IsIntegral returns true if the float is an integer.

func JSONTypeExtractor added in v1.5.0

func JSONTypeExtractor(variation interface{}) (string, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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