Kishore Nallan 58a10877ee Basics of background replication.
Supports inserts. Deletion will be tackled next.
2017-09-14 09:58:44 +05:30

26 lines
738 B
C

#pragma once
#include "http_server.h"
void get_collections(http_req & req, http_res & res);
void post_create_collection(http_req & req, http_res & res);
void del_drop_collection(http_req & req, http_res & res);
void get_search(http_req & req, http_res & res);
void get_collection_summary(http_req & req, http_res & res);
void post_add_document(http_req & req, http_res & res);
void get_fetch_document(http_req & req, http_res & res);
void del_remove_document(http_req & req, http_res & res);
void get_replication_updates(http_req &req, http_res &res);
void on_send_response(void *data);
static constexpr const char* SEND_RESPONSE_MSG = "send_response";
static constexpr const char* REPLICATION_EVENT_MSG = "replication_event";