C Server-Side SDK
LaunchDarkly SDK
|
|
An opaque data source object.
struct LDFlagRuleBuilder * LDFlagBuilderIfMatch(struct LDFlagBuilder *flagBuilder, const char *const attribute, struct LDJSON *values)
Starts defining a flag rule, using the "is one of" operator.
A custom c89 boolean type.
LDBoolean LDFlagBuilderOffVariationBoolean(struct LDFlagBuilder *flagBuilder, LDBoolean value)
Specifies the off variation for a boolean flag.
Public API for data source implementation.
LDBoolean LDFlagBuilderVariationForUserBoolean(struct LDFlagBuilder *flagBuilder, const char *userKey, LDBoolean value)
Sets the flag to return the specified boolean variation for a specific user key when targeting is on.
void LDFlagBuilderValueForAllUsers(struct LDFlagBuilder *flagBuilder, struct LDJSON *value)
Sets the flag to always return the specified variation value for all users.
LDBoolean LDFlagRuleBuilderAndMatch(struct LDFlagRuleBuilder *ruleBuilder, const char *const attribute, struct LDJSON *values)
Adds another clause, using the "is one of" operator.
struct LDDataSource * LDTestDataCreateDataSource(struct LDTestData *)
Create a LDDataSource instance to be used in a client config.
void LDFlagBuilderFallthroughVariation(struct LDFlagBuilder *flagBuilder, int variationIndex)
Specifies the index of the fallthrough variation.
LDBoolean LDFlagBuilderFallthroughVariationBoolean(struct LDFlagBuilder *flagBuilder, LDBoolean value)
Specifies the fallthrough variation for a boolean flag.
A builder for feature flag configurations to be used with LDTestData.
Definition: test_data.h:66
#define LD_EXPORT(x)
Used to ensure only intended symbols are exported in the binaries.
Definition: export.h:10
LDBoolean LDFlagRuleBuilderAndNotMatch(struct LDFlagRuleBuilder *ruleBuilder, const char *const attribute, struct LDJSON *values)
Adds another clause, using the "is not one of" operator.
void LDFlagBuilderVariationForAllUsers(struct LDFlagBuilder *flagBuilder, int variationIndex)
Sets the flag to always return the specified variation for all users.
LDBoolean LDFlagRuleBuilderThenReturnBoolean(struct LDFlagRuleBuilder *ruleBuilder, LDBoolean value)
Finishes defining the rule, specifying the result value as a boolean.
void LDFlagRuleBuilderThenReturn(struct LDFlagRuleBuilder *ruleBuilder, int variationIndex)
Finishes defining the rule, specifying the result as a variation index.
void LDFlagBuilderOffVariation(struct LDFlagBuilder *flagBuilder, int variationIndex)
Specifies the index of the off variation.
LDBoolean LDFlagBuilderVariationForAllUsersBoolean(struct LDFlagBuilder *flagBuilder, LDBoolean value)
Sets the flag to always return the specified boolean variation for all users.
struct LDFlagBuilder * LDTestDataFlag(struct LDTestData *testData, const char *key)
Creates or copies a LDFlagBuilder for building a test flag configuration.
struct LDFlagRuleBuilder * LDFlagBuilderIfNotMatch(struct LDFlagBuilder *flagBuilder, const char *const attribute, struct LDJSON *values)
Starts defining a flag rule, using the "is not one of" operator.
LDBoolean LDFlagBuilderVariations(struct LDFlagBuilder *flagBuilder, struct LDJSON *variations)
Public API Interface for JSON usage.
LDBoolean LDTestDataUpdate(struct LDTestData *testData, struct LDFlagBuilder *flagBuilder)
Updates the test data with the specified flag configuration.
A builder for feature flag rules to be used with LDTestData.
Definition: test_data.h:72
void LDTestDataFree(struct LDTestData *testData)
Free all of the data associated with the test data source.
LDBoolean LDFlagBuilderBooleanFlag(struct LDFlagBuilder *flagBuilder)
A shortcut for setting the flag to use the standard boolean configuration.
An opaque TestData object.
LDBoolean LDFlagBuilderVariationForUser(struct LDFlagBuilder *flagBuilder, const char *userKey, int variationIndex)
Sets the flag to return the specified variation for a specific user key when targeting is on.
void LDFlagBuilderOn(struct LDFlagBuilder *flagBuilder, LDBoolean on)
Sets targeting to be on or off for this flag.
struct LDTestData * LDTestDataInit(void)
Creates a new instance of the LDTestData data source.
Public. Configuration of exported symbols.