C++ Server-Side SDK
LaunchDarkly SDK
config.hpp
1 #pragma once
2 
3 #include <launchdarkly/server_side/config/built/all_built.hpp>
4 #include <launchdarkly/server_side/config/built/data_system/data_system_config.hpp>
5 
6 namespace launchdarkly::server_side {
7 
8 struct Config {
9  public:
10  Config(std::string sdk_key,
11  config::built::Logging logging,
13  config::built::Events events,
14  std::optional<std::string> application_tag,
15  config::built::DataSystemConfig data_system_config,
16  config::built::HttpProperties http_properties);
17 
18  [[nodiscard]] std::string const& SdkKey() const;
19 
20  [[nodiscard]] config::built::ServiceEndpoints const& ServiceEndpoints()
21  const;
22 
23  [[nodiscard]] config::built::Events const& Events() const;
24 
25  [[nodiscard]] std::optional<std::string> const& ApplicationTag() const;
26 
27  config::built::DataSystemConfig const& DataSystemConfig() const;
28 
29  [[nodiscard]] config::built::HttpProperties const& HttpProperties() const;
30 
31  [[nodiscard]] config::built::Logging const& Logging() const;
32 
33  private:
34  std::string sdk_key_;
35  bool offline_;
36  config::built::Logging logging_;
37  config::built::ServiceEndpoints service_endpoints_;
38  std::optional<std::string> application_tag_;
39  config::built::Events events_;
40  config::built::DataSystemConfig data_system_config_;
41  config::built::HttpProperties http_properties_;
42 };
43 } // namespace launchdarkly::server_side
Definition: http_properties.hpp:26
Definition: service_endpoints.hpp:11
Definition: config.hpp:8