package
2.7.1+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.
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.
NotificationEventSteamHandler implements the http.Handler interface.
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.
TrackEvent - track a given event for the current user.

# 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.