C++ Server-Side SDK
LaunchDarkly SDK
|
#include <bucketing.hpp>
Classes | |
struct | KeyAndSalt |
Public Types | |
using | Seed = std::int64_t |
Public Member Functions | |
BucketPrefix (Seed seed) | |
BucketPrefix (std::string key, std::string salt) | |
Friends | |
std::ostream & | operator<< (std::ostream &os, BucketPrefix const &prefix) |
Bucketing is performed by hashing an input string. This string may be comprised of a seed (if the flag rule has a seed) or a combined key/salt pair.
|
explicit |
Constructs a BucketPrefix from a seed value.
seed | Value of the seed. |
launchdarkly::server_side::evaluation::BucketPrefix::BucketPrefix | ( | std::string | key, |
std::string | salt | ||
) |
Constructs a BucketPrefix from a key and salt.
key | Key to use. |
salt | Salt to use. |