OpenCBDC Transaction Processor
Loading...
Searching...
No Matches
util.cpp File Reference
#include "util.hpp"
#include <future>
#include <unordered_map>
Include dependency graph for util.cpp:

Go to the source code of this file.

Namespaces

namespace  cbdc
 
namespace  cbdc::parsec
 

Functions

auto cbdc::parsec::split (const std::string &s, const std::string &delim) -> std::vector< std::string >
 
auto cbdc::parsec::parse_args (int argc, char **argv) -> std::optional< std::unordered_map< std::string, std::string > >
 
auto cbdc::parsec::read_endpoints (const std::unordered_map< std::string, std::string > &opts, const std::string &component_name) -> std::optional< std::vector< network::endpoint_t > >
 
auto cbdc::parsec::read_cluster_endpoints (const std::unordered_map< std::string, std::string > &opts, const std::string &component_name) -> std::optional< std::vector< std::vector< network::endpoint_t > > >
 
auto cbdc::parsec::read_config (int argc, char **argv) -> std::optional< config >
 Reads the configuration parameters from the program arguments.
 
auto cbdc::parsec::put_row (const std::shared_ptr< broker::interface > &broker, broker::key_type key, broker::value_type value, const std::function< void(bool)> &result_callback) -> bool
 Asynchronously inserts the given row into the cluster.
 
auto cbdc::parsec::get_row (const std::shared_ptr< broker::interface > &broker, broker::key_type key, const std::function< void( cbdc::parsec::broker::interface::try_lock_return_type)> &result_callback) -> cbdc::parsec::broker::interface::try_lock_return_type
 Asynchronously get the value stored at key from the cluster.