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

# Functions

NewErrorDecision returns a decision with error.
NewOptimizelyDecision creates and returns a new instance of OptimizelyDecision.
WithBatchEventProcessor sets event processor on a client.
WithConfigManager sets polling config manager on a client.
WithContext allows user to pass in their own context to override the default one in the client.
WithDatafileAccessToken sets authenticated datafile token.
WithDecisionService sets decision service on a client.
WithDefaultDecideOptions sets default decide options on a client.
WithEventDispatcher sets event dispatcher on the factory.
WithEventProcessor sets event processor on a client.
WithExperimentOverrides sets the experiment override store on the decision service.
WithMetricsRegistry allows user to pass in their own implementation of a metrics collector.
WithNotificationCenter allows user to pass in their own implementation of the notification.Center interface.
WithOdpDisabled disables odp for the client.
WithOdpManager sets odp manager on a client.
WithPollingConfigManager sets polling config manager on a client.
WithPollingConfigManagerDatafileAccessToken sets polling config manager with auth datafile token on a client.
WithSegmentsCacheSize sets SegmentsCacheSize for odp manager.
WithSegmentsCacheTimeout sets SegmentsCacheTimeoutInSecs for odp manager.
WithTracer allows user to pass in their own implementation of the Tracer interface.
WithUserProfileService sets the user profile service on the decision service.

# Constants

DefaultTracerName is the name of the tracer used by the Optimizely SDK.
SpanNameActivate is the name of the span used by the Optimizely SDK for tracing Activate call.
SpanNameDecide is the name of the span used by the Optimizely SDK for tracing decide call.
SpanNameDecideAll is the name of the span used by the Optimizely SDK for tracing decideAll call.
SpanNameDecideForKeys is the name of the span used by the Optimizely SDK for tracing decideForKeys call.
SpanNameFetchQualifiedSegments is the name of the span used by the Optimizely SDK for tracing fetchQualifiedSegments call.
SpanNameGetAllFeatureVariables is the name of the span used by the Optimizely SDK for tracing GetAllFeatureVariables call.
SpanNameGetAllFeatureVariablesWithDecision is the name of the span used by the Optimizely SDK for tracing GetAllFeatureVariablesWithDecision call.
SpanNameGetDecisionVariableMap is the name of the span used by the Optimizely SDK for tracing getDecisionVariableMap call.
SpanNameGetDetailedFeatureDecisionUnsafe is the name of the span used by the Optimizely SDK for tracing GetDetailedFeatureDecisionUnsafe call.
SpanNameGetEnabledFeatures is the name of the span used by the Optimizely SDK for tracing GetEnabledFeatures call.
SpanNameGetExperimentDecision is the name of the span used by the Optimizely SDK for tracing getExperimentDecision call.
SpanNameGetFeatureDecision is the name of the span used by the Optimizely SDK for tracing getFeatureDecision call.
SpanNameGetFeatureVariableBoolean is the name of the span used by the Optimizely SDK for tracing GetFeatureVariableBoolean call.
SpanNameGetFeatureVariableDouble is the name of the span used by the Optimizely SDK for tracing GetFeatureVariableDouble call.
SpanNameGetFeatureVariableInteger is the name of the span used by the Optimizely SDK for tracing GetFeatureVariableInteger call.
SpanNameGetFeatureVariableJSON is the name of the span used by the Optimizely SDK for tracing GetFeatureVariableJSON call.
SpanNameGetFeatureVariablePrivate is the name of the span used by the Optimizely SDK for tracing getFeatureVariable call.
SpanNameGetFeatureVariablePublic is the name of the span used by the Optimizely SDK for tracing GetFeatureVariable call.
SpanNameGetFeatureVariableString is the name of the span used by the Optimizely SDK for tracing GetFeatureVariableString call.
SpanNameGetOptimizelyConfig is the name of the span used by the Optimizely SDK for tracing GetOptimizelyConfig call.
SpanNameGetProjectConfig is the name of the span used by the Optimizely SDK for tracing getProjectConfig call.
SpanNameGetVariation is the name of the span used by the Optimizely SDK for tracing GetVariation call.
SpanNameIsFeatureEnabled is the name of the span used by the Optimizely SDK for tracing IsFeatureEnabled call.
SpanNameSendOdpEvent is the name of the span used by the Optimizely SDK for tracing SendOdpEvent call.
SpanNameTrack is the name of the span used by the Optimizely SDK for tracing Track call.

# Structs

OptimizelyClient is the entry point to the Optimizely SDK.
OptimizelyDecision defines the decision returned by decide api.
OptimizelyFactory is used to customize and construct an instance of the OptimizelyClient.
OptimizelyUserContext defines user contexts that the SDK will use to make decisions for.

# Type aliases

OptionFunc is used to provide custom client configuration to the OptimizelyFactory.