package
1.8.5
Repository: https://github.com/optimizely/go-sdk.git
Documentation: pkg.go.dev

# Packages

Package bucketer //.
Package evaluator //.
Package reasons //.

# Functions

FeatureNotification constructs default feature notification.
FeatureNotificationWithVariables constructs feature notification with variables.
FlagNotification constructs default flag notification.
NewCompositeExperimentService creates a new instance of the CompositeExperimentService.
NewCompositeFeatureService returns a new instance of the CompositeFeatureService.
NewCompositeService returns a new instance of the CompositeService with the defaults.
NewExperimentBucketerService returns a new instance of the ExperimentBucketerService.
NewExperimentOverrideService returns a pointer to an initialized ExperimentOverrideService.
NewExperimentWhitelistService returns a new instance of ExperimentWhitelistService.
NewFeatureExperimentService returns a new instance of the FeatureExperimentService.
NewForcedDecisionService returns an instance of the optimizely user context.
NewMapExperimentOverridesStore returns a new MapExperimentOverridesStore.
NewPersistingExperimentService returns a new instance of the PersistingExperimentService.
NewRolloutService returns a new instance of the Rollout service.
NewUserDecisionKey returns a new UserDecisionKey with the given experiment ID.
WithCompositeExperimentService sets the composite experiment service on the CompositeService.
WithOverrideStore adds an experiment override store.
WithUserProfileService adds a user profile service.

# Constants

FeatureTest - the decision came from a feature test.
Rollout - the decision came from a rollout.

# Structs

CompositeExperimentService bridges together the various experiment decision services that ship by default with the SDK.
CompositeFeatureService is the default out-of-the-box feature decision service.
CompositeService is the entry-point into the decision service.
Decision contains base information about a decision.
ExperimentBucketerService makes a decision using the experiment bucketer.
ExperimentDecision contains the decision information about an experiment.
ExperimentDecisionContext contains the information needed to be able to make a decision for a given experiment.
ExperimentOverrideKey represents the user ID and experiment associated with an override variation.
ExperimentOverrideService makes a decision using an ExperimentOverridesStore Implements the ExperimentService interface.
ExperimentWhitelistService makes a decision using an experiment's whitelist (a map of user id to variation keys) Implements the ExperimentService interface.
FeatureDecision contains the decision information about a feature.
FeatureDecisionContext contains the information needed to be able to make a decision for a given feature.
FeatureExperimentService helps evaluate feature test associated with the feature.
ForcedDecisionService defines user contexts that the SDK will use to make decisions for.
MapExperimentOverridesStore is a map-based implementation of ExperimentOverridesStore that is safe to use concurrently.
OptimizelyDecisionContext defines Decision Context.
OptimizelyForcedDecision defines Forced Decision.
PersistingExperimentService attempts to retrieve a saved decision from the user profile service for the user before having the ExperimentBucketerService compute it.
RolloutService makes a feature decision for a given feature rollout.
UnsafeFeatureDecisionInfo represents response for GetDetailedFeatureDecisionUnsafe api.
UserDecisionKey is used to access the saved decisions in a user profile.
UserProfile represents a saved user profile.

# Interfaces

ExperimentOverrideStore provides read access to overrides.
ExperimentService can make a decision about an experiment.
FeatureService can make a decision about a Feature Flag (can be feature test or rollout).
Service interface is used to make a decision for a given feature or experiment.
UserProfileService is used to save and retrieve past bucketing decisions for users.

# Type aliases

CESOptionFunc is used to assign optional configuration options.
CSOptionFunc is used to pass custom config options into the CompositeService.
Source is where the decision came from.