1#ifndef DITTO_SMALL_PEER_INFO
2#define DITTO_SMALL_PEER_INFO
12class DittoHandleWrapper;
13enum SyncScope { BigPeerOnly, LocalPeerOnly };
21 SmallPeerInfo(std::shared_ptr<DittoHandleWrapper> ditto_handle_wrapper);
22 std::shared_ptr<DittoHandleWrapper> ditto_handle_wrapper;
44 std::string metadata_json_string()
const;
json metadata() const
Gets the metadata as JSON.
Definition SmallPeerInfo.cpp:34
void set_sync_scope(SyncScope sync_scope) const
Sets which "kind" of peers the small peer info will be replicated to.
Definition SmallPeerInfo.cpp:68
SyncScope sync_scope() const
Gets "kind" of peers the small peer info will be replicated to.
Definition SmallPeerInfo.cpp:63
bool is_enabled() const
Gets a value indicating whether small peer info collection is currently enabled. Defaults to true.
Definition SmallPeerInfo.cpp:55
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...
Definition SmallPeerInfo.cpp:46
void set_enabled(bool enabled) const
Sets a value indicating whether small peer info collection is currently enabled. Defaults to true.
Definition SmallPeerInfo.cpp:59
void set_metadata(json metadata) const
Sets the metadata as user-provided json and is inserted into the small peer info system doc at each c...
Definition SmallPeerInfo.cpp:51