package
1.3.0
Repository: https://github.com/optimizely/agent.git
Documentation: pkg.go.dev

# Functions

Activate makes feature and experiment decisions for the selected query parameters.
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.
TrackEvent - track a given event for the current user.

# Variables

ErrEmptyUserID is a constant error if userId is omitted from the request.

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

# Type aliases

JSON is a map alias, just for convenience.