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

# Packages

Package datafileprojectconfig //.

# Functions

NewAsyncPollingProjectConfigManager returns an instance of the async polling config manager with the customized configuration.
NewOptimizelyConfig constructs OptimizelyConfig object.
NewPollingProjectConfigManager returns an instance of the polling config manager with the customized configuration.
NewStaticProjectConfigManager creates a new instance of the manager with the given project config.
NewStaticProjectConfigManagerFromPayload returns new instance of StaticProjectConfigManager for payload.
NewStaticProjectConfigManagerFromURL returns new instance of StaticProjectConfigManager for URL.
NewStaticProjectConfigManagerWithOptions creates a new instance of the manager with the given sdk key and some options.
WithDatafileAccessToken is an optional function, sets a passed datafile access token.
WithDatafileURLTemplate is an optional function, sets a passed datafile URL template.
WithInitialDatafile is an optional function, sets a passed datafile.
WithPollingInterval is an optional function, sets a passed polling interval.
WithRequester is an optional function, sets a passed requester.

# Constants

AuthDatafileURLTemplate is used to construct the endpoint for retrieving authenticated datafile from the CDN.
DatafileURLTemplate is used to construct the endpoint for retrieving regular datafile from the CDN.
default to 5 minutes for polling.
LastModified header key for response.
ModifiedSince header key for request.

# Variables

Err403Forbidden is 403Forbidden specific error.

# Structs

OptimizelyAttribute has attribute info.
OptimizelyAudience has audience info.
OptimizelyConfig is a snapshot of the experiments and features in the project config.
OptimizelyEvent has event info.
OptimizelyExperiment has experiment info.
OptimizelyFeature has feature info.
OptimizelyVariable has variable info.
OptimizelyVariation has variation info.
PollingProjectConfigManager maintains a dynamic copy of the project config by continuously polling for the datafile from the Optimizely CDN at a given (configurable) interval.
StaticProjectConfigManager maintains a static copy of the project config.

# Interfaces

ProjectConfig represents the project's experiments and feature flags and contains methods for accessing the them.
ProjectConfigManager maintains an instance of the ProjectConfig.

# Type aliases

OptionFunc is used to provide custom configuration to the PollingProjectConfigManager.