1#ifndef DITTO_SMALL_PEER_INFO_H
2#define DITTO_SMALL_PEER_INFO_H
16class DittoHandleWrapper;
20enum DITTO_DEPRECATED_BECAUSE(
"Will be removed in v5")
SyncScope {
33 explicit SmallPeerInfo(
34 std::shared_ptr<DittoHandleWrapper> ditto_handle_wrapper);
35 std::shared_ptr<DittoHandleWrapper> ditto_handle_wrapper;
57 std::string metadata_json_string()
const;
91 DITTO_DEPRECATED_BECAUSE(
"Will be removed in v5")
100 DITTO_DEPRECATED_BECAUSE(
"Will be removed in v5")
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:20