1#ifndef DITTO_SMALL_PEER_INFO_H
2#define DITTO_SMALL_PEER_INFO_H
16class DittoHandleWrapper;
21enum DITTO_DEPRECATED_BECAUSE(
22 "Use Sync Scopes instead, settable via DQL ALTER SYSTEM. Will be removed "
24 "https://docs.ditto.live/sdk/latest/sync/sync-scopes")
SyncScope {
37 explicit SmallPeerInfo(
38 std::shared_ptr<DittoHandleWrapper> ditto_handle_wrapper);
39 std::shared_ptr<DittoHandleWrapper> ditto_handle_wrapper;
61 std::string metadata_json_string()
const;
96 DITTO_DEPRECATED_BECAUSE(
97 "Use Sync Scopes instead, settable via DQL ALTER SYSTEM. Will be removed "
99 "https://docs.ditto.live/sdk/latest/sync/sync-scopes")
109 DITTO_DEPRECATED_BECAUSE(
110 "Use Sync Scopes instead, settable via DQL ALTER SYSTEM. Will be removed "
112 "https://docs.ditto.live/sdk/latest/sync/sync-scopes")
void set_sync_scope(SyncScope sync_scope) const
Sets which "kind" of peers the small peer info will be replicated to.
nlohmann::json metadata() const
Gets the metadata as JSON.
SyncScope sync_scope() const
Gets "kind" of peers the small peer info will be replicated to.
bool is_enabled() const
Gets a value indicating whether small peer info collection is currently enabled. Defaults to true.
void set_metadata_json_string(std::string metadata) const
Sets the metadata as user-provided json string and is inserted into the small peer info system doc at...
void set_enabled(bool enabled) const
Sets a value indicating whether small peer info collection is currently enabled. Defaults to true.
void set_metadata(nlohmann::json metadata) const
Sets the metadata as user-provided json and is inserted into the small peer info system doc at each c...
Namespace for the Ditto C++ SDK types and functions.
Definition AbstractDocumentPath.hpp:19
SyncScope
Definition SmallPeerInfo.hpp:24