package
4.1.0+incompatible
Repository: https://github.com/optimizely/agent.git
Documentation: pkg.go.dev

# Functions

Activate makes feature and experiment decisions for the selected query parameters.
Decide makes feature decisions for the selected query parameters.
No description provided by the author
GetDatafile returns the datafile directly from the SDK.
Lookup searches for user profile for the given userId.
NewAdmin initializes admin.
NewOAuthHandler creates new handler for auth.
NewWebhookHandler returns a new instance of OptlyWebhookHandler.
No description provided by the author
OptimizelyConfig returns the entire OptimizelyConfig object directly from the SDK.
Override is used to set forced variations for a given experiment or feature test.
ParseRequestBody reads the request body from the request and unmarshals it into the provided interface.
RenderError sets the request status and renders the error message.
Save saves the user profile against the given userId.
SendOdpEvent sends event to ODP platform.
No description provided by the author
TrackEvent - track a given event for the current user.

# Constants

No description provided by the author
No description provided by the author
No description provided by the author

# Variables

ErrEmptyUserID is a constant error if userId is omitted from the request.
ErrNoUPS is a constant error if no user profile service was found.

# Structs

ActivateBody defines the request body for an activation.
Admin is holding info to pass to admin handlers.
ClientCredentials has all info for client credentials.
ClientCredentialsError is the response body returned when the provided client credentials are invalid.
DatafileUpdateData model which represents data specific to datafile update.
DecideBody defines the request body for decide API.
DecideOut defines the response.
ErrorResponse Model.
ForcedDecision defines Forced Decision.
Info holds the detail to support the info endpoint.
OAuthHandler provides handler for auth.
OptlyMessage model which represents any message received from Optimizely.
OptlyWebhookHandler handles incoming messages from Optimizely.
OverrideBody defines the request body for an override.
UPSResponseOut defines the UPS API response.

# Type aliases

JSON is a map alias, just for convenience.
No description provided by the author