|
C++ Server-Side SDK
LaunchDarkly SDK
|
#include <endpoints_builder.hpp>
Public Member Functions | |
| EndpointsBuilder ()=default | |
| EndpointsBuilder & | PollingBaseUrl (std::string url) |
| EndpointsBuilder & | StreamingBaseUrl (std::string url) |
| EndpointsBuilder & | EventsBaseUrl (std::string url) |
| EndpointsBuilder & | RelayProxyBaseURL (std::string const &url) |
| tl::expected< built::ServiceEndpoints, Error > | Build () const |
Friends | |
| bool | operator== (EndpointsBuilder< SDK > const &lhs, EndpointsBuilder< SDK > const &rhs) |
EndpointsBuilder allows for specification of LaunchDarkly service ServiceEndpoints.
|
default |
Constructs an EndpointsBuilder.
| tl::expected< built::ServiceEndpoints, Error > launchdarkly::config::shared::builders::EndpointsBuilder< SDK >::Build |
Builds a ServiceEndpoints if the configuration is valid. If not, returns an error. If any streaming, polling, or events URL is set, then all URLs must be set.
| EndpointsBuilder< SDK > & launchdarkly::config::shared::builders::EndpointsBuilder< SDK >::EventsBaseUrl | ( | std::string | url | ) |
Sets a custom URL for the events service.
| url | URL to set. |
| EndpointsBuilder< SDK > & launchdarkly::config::shared::builders::EndpointsBuilder< SDK >::PollingBaseUrl | ( | std::string | url | ) |
Sets a custom URL for the polling service.
| url | URL to set. |
| EndpointsBuilder< SDK > & launchdarkly::config::shared::builders::EndpointsBuilder< SDK >::RelayProxyBaseURL | ( | std::string const & | url | ) |
Sets a custom URL for a Relay Proxy instance. The streaming, polling, and events URLs are set automatically.
| url | URL to set. |
| EndpointsBuilder< SDK > & launchdarkly::config::shared::builders::EndpointsBuilder< SDK >::StreamingBaseUrl | ( | std::string | url | ) |
Sets a custom URL for the streaming service.
| url | URL to set. |