|
C++ Server-Side SDK
LaunchDarkly SDK
|
C bindings for read-only evaluation context passed to hooks. More...
#include <launchdarkly/bindings/c/export.h>#include <launchdarkly/server_side/bindings/c/hook_context.h>#include <launchdarkly/bindings/c/value.h>#include <launchdarkly/bindings/c/context.h>#include <stdbool.h>
Go to the source code of this file.
Typedefs | |
| typedef struct p_LDServerSDKEvaluationSeriesContext * | LDServerSDKEvaluationSeriesContext |
Functions | |
| LDEvaluationSeriesContext_FlagKey (LDServerSDKEvaluationSeriesContext eval_context) | |
| Get the flag key being evaluated. More... | |
| LDEvaluationSeriesContext_Context (LDServerSDKEvaluationSeriesContext eval_context) | |
| Get the context (user/organization) being evaluated. More... | |
| LDEvaluationSeriesContext_DefaultValue (LDServerSDKEvaluationSeriesContext eval_context) | |
| Get the default value provided to the variation call. More... | |
| LDEvaluationSeriesContext_Method (LDServerSDKEvaluationSeriesContext eval_context) | |
| Get the name of the variation method called. More... | |
| LDEvaluationSeriesContext_HookContext (LDServerSDKEvaluationSeriesContext eval_context) | |
| Get the hook context provided by the caller. More... | |
| LDEvaluationSeriesContext_EnvironmentId (LDServerSDKEvaluationSeriesContext eval_context) | |
| Get the environment ID, if available. More... | |
C bindings for read-only evaluation context passed to hooks.
EvaluationSeriesContext provides information about a flag evaluation to hook callbacks. All data is read-only and valid only during the callback execution.
LIFETIME:
| LDEvaluationSeriesContext_Context | ( | LDServerSDKEvaluationSeriesContext | eval_context | ) |
Get the context (user/organization) being evaluated.
| eval_context | Evaluation context. Must not be NULL. |
| LDEvaluationSeriesContext_DefaultValue | ( | LDServerSDKEvaluationSeriesContext | eval_context | ) |
Get the default value provided to the variation call.
| eval_context | Evaluation context. Must not be NULL. |
| LDEvaluationSeriesContext_EnvironmentId | ( | LDServerSDKEvaluationSeriesContext | eval_context | ) |
Get the environment ID, if available.
The environment ID is only available after SDK initialization completes. Returns NULL if not yet available.
| eval_context | Evaluation context. Must not be NULL. |
| LDEvaluationSeriesContext_FlagKey | ( | LDServerSDKEvaluationSeriesContext | eval_context | ) |
Get the flag key being evaluated.
| eval_context | Evaluation context. Must not be NULL. |
| LDEvaluationSeriesContext_HookContext | ( | LDServerSDKEvaluationSeriesContext | eval_context | ) |
Get the hook context provided by the caller.
This contains application-specific data passed to the variation call, such as OpenTelemetry span parents.
| eval_context | Evaluation context. Must not be NULL. |
| LDEvaluationSeriesContext_Method | ( | LDServerSDKEvaluationSeriesContext | eval_context | ) |
Get the name of the variation method called.
Examples: "BoolVariation", "StringVariationDetail", "JsonVariation"
| eval_context | Evaluation context. Must not be NULL. |