C++ Server-Side SDK
LaunchDarkly SDK
service_endpoints.hpp
1 #pragma once
2 
3 #include <string>
4 
5 namespace launchdarkly::config::shared::built {
6 
11 class ServiceEndpoints final {
12  public:
25  ServiceEndpoints(std::string polling,
26  std::string streaming,
27  std::string events);
32  [[nodiscard]] std::string const& PollingBaseUrl() const;
37  [[nodiscard]] std::string const& StreamingBaseUrl() const;
42  [[nodiscard]] std::string const& EventsBaseUrl() const;
43 
44  private:
45  std::string polling_base_url_;
46  std::string streaming_base_url_;
47  std::string events_base_url_;
48 };
49 
50 bool operator==(ServiceEndpoints const& lhs, ServiceEndpoints const& rhs);
51 } // namespace launchdarkly::config::shared::built
Definition: service_endpoints.hpp:11
ServiceEndpoints(std::string polling, std::string streaming, std::string events)
Definition: service_endpoints.cpp:5
std::string const & PollingBaseUrl() const
Definition: service_endpoints.cpp:12
std::string const & StreamingBaseUrl() const
Definition: service_endpoints.cpp:16
std::string const & EventsBaseUrl() const
Definition: service_endpoints.cpp:20