Documentation ¶
Overview ¶
Package mappers ...
Package mappers ...
Package mappers ...
Package mappers ...
Package mappers ...
Package mappers ...
Package mappers ...
Package mappers ...
Package mappers ...
Index ¶
- func MapAttributes(attributes []datafileEntities.Attribute) (attributeMap map[string]entities.Attribute, ...)
- func MapAudiences(audiences []datafileEntities.Audience) (audienceMap map[string]entities.Audience)
- func MapEvents(events []datafileEntities.Event) (eventMap map[string]entities.Event)
- func MapExperiments(rawExperiments []datafileEntities.Experiment, ...) (experimentIDMap map[string]entities.Experiment, ...)
- func MapFeatures(featureFlags []datafileEntities.FeatureFlag, ...) (featureMap map[string]entities.Feature)
- func MapFlagVariations(featureMap map[string]entities.Feature) (flagVariationsMap map[string][]entities.Variation)
- func MapGroups(rawGroups []datafileEntities.Group) (groupMap map[string]entities.Group, experimentGroupMap map[string]string)
- func MapRollouts(rollouts []datafileEntities.Rollout) (rolloutList []entities.Rollout, rolloutMap map[string]entities.Rollout)
- func MergeExperiments(rawExperiments []datafileEntities.Experiment, ...) (mergedExperiments []datafileEntities.Experiment)
- type OperatorType
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MapAttributes ¶
func MapAttributes(attributes []datafileEntities.Attribute) (attributeMap map[string]entities.Attribute, attributeKeyToIDMap map[string]string)
MapAttributes maps the raw datafile attribute entities to SDK Attribute entities
func MapAudiences ¶
func MapAudiences(audiences []datafileEntities.Audience) (audienceMap map[string]entities.Audience)
MapAudiences maps the raw datafile audience entities to SDK Audience entities
func MapEvents ¶
func MapEvents(events []datafileEntities.Event) (eventMap map[string]entities.Event)
MapEvents maps the raw datafile event entities to SDK Event entities
func MapExperiments ¶
func MapExperiments(rawExperiments []datafileEntities.Experiment, experimentGroupMap map[string]string) (experimentIDMap map[string]entities.Experiment, experimentKeyMap map[string]string)
MapExperiments maps the raw experiments entities from the datafile to SDK Experiment entities and also returns a map of experiment key to experiment ID
func MapFeatures ¶
func MapFeatures(featureFlags []datafileEntities.FeatureFlag, rolloutMap map[string]entities.Rollout, experimentMap map[string]entities.Experiment, ) (featureMap map[string]entities.Feature)
MapFeatures maps the raw datafile feature flag entities to SDK Feature entities
func MapFlagVariations ¶ added in v1.8.0
func MapFlagVariations(featureMap map[string]entities.Feature) (flagVariationsMap map[string][]entities.Variation)
MapFlagVariations all variations for each flag datafile does not contain a separate entity for this we collect variations used in each rule (experiment rules and delivery rules)
func MapGroups ¶
func MapGroups(rawGroups []datafileEntities.Group) (groupMap map[string]entities.Group, experimentGroupMap map[string]string)
MapGroups maps the raw group entity from the datafile to an SDK Group entity
func MapRollouts ¶
func MapRollouts(rollouts []datafileEntities.Rollout) (rolloutList []entities.Rollout, rolloutMap map[string]entities.Rollout)
MapRollouts maps the raw datafile rollout entities to SDK Rollout entities
func MergeExperiments ¶
func MergeExperiments(rawExperiments []datafileEntities.Experiment, rawGroups []datafileEntities.Group) (mergedExperiments []datafileEntities.Experiment)
MergeExperiments combines raw experiments and experiments inside groups and returns the array
Types ¶
type OperatorType ¶ added in v1.7.0
type OperatorType string
OperatorType defines logical operator for conditions
const ( And OperatorType = "and" Or OperatorType = "or" Not OperatorType = "not" )
Default conditional operators