Decentralised Art Server
High-performance C++ backend that exposes HTML interface and a secure REST API for managing Performative Transactions entities
 
Loading...
Searching...
No Matches
ingestion.hpp
Go to the documentation of this file.
1#pragma once
2
3#include <cstddef>
4#include <cstdint>
5#include <functional>
6#include <filesystem>
7#include <optional>
8#include <string>
9
10#include "native.h"
11#include <asio.hpp>
12#include <nlohmann/json_fwd.hpp>
13
14#include "address.hpp"
15#include "crypto.hpp"
16
17namespace dcn::chain
18{
19 using RpcCall = std::function<std::optional<nlohmann::json>(const std::string & rpc_url, const nlohmann::json & request)>;
20
22 {
24 std::optional<std::size_t> max_polls = std::nullopt;
25 bool skip_sleep = false;
26 };
27
28 //asio::awaitable<void> runEventIngestion(IngestionConfig cfg, registry::Registry & registry, IngestionRuntimeOptions runtime_options);
29 //asio::awaitable<void> runEventIngestion(IngestionConfig cfg, registry::Registry & registry);
30}
Definition address.hpp:17
std::function< std::optional< nlohmann::json >(const std::string &rpc_url, const nlohmann::json &request)> RpcCall
Definition ingestion.hpp:19
Definition ingestion.hpp:22
bool skip_sleep
Definition ingestion.hpp:25
std::optional< std::size_t > max_polls
Definition ingestion.hpp:24
RpcCall rpc_call
Definition ingestion.hpp:23