Public API associated with LDAllFlagsState. More...
Go to the source code of this file.
Enumerations | |
enum | LDAllFlagsStateOption { LD_ALLFLAGS_DEFAULT = 0, LD_INCLUDE_REASON = (1 << 0), LD_DETAILS_ONLY_FOR_TRACKED_FLAGS = (1 << 1), LD_CLIENT_SIDE_ONLY = (1 << 2) } |
Options for use in LDAllFlagsState. More... | |
Functions | |
LDBoolean | LDAllFlagsStateValid (struct LDAllFlagsState *flags) |
Check if a call to LDAllFlagsState succeeded. More... | |
void | LDAllFlagsStateFree (struct LDAllFlagsState *flags) |
Frees memory associated with LDAllFlagsState . More... | |
char * | LDAllFlagsStateSerializeJSON (struct LDAllFlagsState *flags) |
Serializes flag data to JSON. More... | |
struct LDDetails * | LDAllFlagsStateGetDetails (struct LDAllFlagsState *flags, const char *key) |
Returns evaluation details for an individual feature flag at the time the state was recorded. More... | |
struct LDJSON * | LDAllFlagsStateGetValue (struct LDAllFlagsState *flags, const char *key) |
Returns the JSON value of an individual feature flag at the time the state was recorded. More... | |
struct LDJSON * | LDAllFlagsStateToValuesMap (struct LDAllFlagsState *flags) |
Returns a JSON map of flag keys to flag values. More... | |
Public API associated with LDAllFlagsState.
Options for use in LDAllFlagsState.
void LDAllFlagsStateFree | ( | struct LDAllFlagsState * | flags | ) |
Frees memory associated with LDAllFlagsState
.
[in] | flags | LDAllFlagsState handle. |
struct LDDetails* LDAllFlagsStateGetDetails | ( | struct LDAllFlagsState * | flags, |
const char * | key | ||
) |
Returns evaluation details for an individual feature flag at the time the state was recorded.
[in] | flags | LDAllFlagsState handle. |
[in] | key | Flag key. |
NULL
. Caller must not free the returned structure directly; instead, call LDAllFlagsStateFree to free all memory associated with an LDAllFlagsState
. struct LDJSON* LDAllFlagsStateGetValue | ( | struct LDAllFlagsState * | flags, |
const char * | key | ||
) |
Returns the JSON value of an individual feature flag at the time the state was recorded.
[in] | flags | LDAllFlagsState handle. |
key | Flag key. |
NULL
if the flag was not found. Caller must not free the returned structure directly; instead, call LDAllFlagsStateFree to free all memory associated with an LDAllFlagsState
. char* LDAllFlagsStateSerializeJSON | ( | struct LDAllFlagsState * | flags | ) |
Serializes flag data to JSON.
[in] | flags | LDAllFlagsState handle. |
struct LDJSON* LDAllFlagsStateToValuesMap | ( | struct LDAllFlagsState * | flags | ) |
Returns a JSON map of flag keys to flag values.
Do not use this method if you are passing data to the front end to "bootstrap" the JavaScript client. Instead, convert the state object to JSON using LDAllFlagsStateSerializeJSON.
[in] | flags | LDAllFlagsState handle. |
LDBoolean LDAllFlagsStateValid | ( | struct LDAllFlagsState * | flags | ) |
Check if a call to LDAllFlagsState succeeded.
[in] | flags | LDAllFlagsState handle. |
LDAllFlagsState
succeeded. False if there was an error (such as the data store not being available), in which case no flag data is in this object. It is safe to call LDAllFlagsStateSerializeJSON even if the state is invalid.