9 #include <launchdarkly/connection.hpp>
10 #include <launchdarkly/data_sources/data_source_status_base.hpp>
12 namespace launchdarkly::server_side {
17 enum class DataSourceState {
63 using DataSourceStatus =
64 common::data_sources::DataSourceStatusBase<DataSourceState>;
108 std::ostream& operator<<(std::ostream& out,
109 DataSourceStatus::DataSourceState
const& state);
111 std::ostream& operator<<(std::ostream& out,
DataSourceStatus const& status);
Definition: data_source_status_base.hpp:12
Definition: data_source_status.hpp:69
virtual DataSourceStatus Status() const =0
virtual std::unique_ptr< IConnection > OnDataSourceStatusChangeEx(std::function< bool(DataSourceStatus status)> handler)=0
virtual std::unique_ptr< IConnection > OnDataSourceStatusChange(std::function< void(DataSourceStatus status)> handler)=0