flagengine

package
v2.1.0 Latest Latest
Warning

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

Go to latest
Published: Oct 3, 2022 License: BSD-3-Clause Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetEnvironmentFeatureState

func GetEnvironmentFeatureState(environment *environments.EnvironmentModel, featureName string) *features.FeatureStateModel

GetEnvironmentFeatureState returns a specific feature state for a given featureName in a given environment, or nil feature state is not found.

func GetEnvironmentFeatureStates

func GetEnvironmentFeatureStates(environment *environments.EnvironmentModel) []*features.FeatureStateModel

GetEnvironmentFeatureStates returns a list of feature states for a given environment.

func GetIdentityFeatureState

func GetIdentityFeatureState(
	environment *environments.EnvironmentModel,
	identity *identities.IdentityModel,
	featureName string,
	overrideTraits ...*traits.TraitModel,
) *features.FeatureStateModel

func GetIdentityFeatureStates

func GetIdentityFeatureStates(
	environment *environments.EnvironmentModel,
	identity *identities.IdentityModel,
	overrideTraits ...*traits.TraitModel,
) []*features.FeatureStateModel

GetIdentityFeatureStates returns a list of feature states for a given identity in a given environment.

func GetIdentitySegments

func GetIdentitySegments(
	environment *environments.EnvironmentModel,
	identity *identities.IdentityModel,
	overrideTraits ...*traits.TraitModel,
) []*segments.SegmentModel

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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