BitShares-Core  4.0.0
BitShares blockchain implementation and command-line interface software
Classes | Functions | Variables
graphene::utilities Namespace Reference


class  CurlRequest
class  ES
class  padding_ostream


bool checkES (ES &es)
const std::string simpleQuery (ES &es)
bool SendBulk (ES &&es)
const std::string joinBulkLines (const std::vector< std::string > &bulk)
long getResponseCode (CURL *handler)
bool handleBulkResponse (long http_code, const std::string &CurlReadBuffer)
const std::vector< std::string > createBulk (const fc::mutable_variant_object &bulk_header, std::string &&data)
bool deleteAll (ES &es)
const std::string getEndPoint (ES &es)
const std::string generateIndexName (const fc::time_point_sec &block_date, const std::string &_elasticsearch_index_prefix)
const std::string doCurl (CurlRequest &curl)
std::string key_to_wif (const fc::sha256 &private_secret)
std::string key_to_wif (const fc::ecc::private_key &key)
fc::optional< fc::ecc::private_keywif_to_key (const std::string &wif_key)
std::string escape_string_for_c_source_code (const std::string &input)
fc::path temp_directory_path ()


const char *const git_revision_sha
const uint32_t git_revision_unix_timestamp
const char *const git_revision_description

Function Documentation

bool graphene::utilities::checkES ( ES es)

Definition at line 39 of file elasticsearch.cpp.

const std::vector< std::string > graphene::utilities::createBulk ( const fc::mutable_variant_object bulk_header,
std::string &&  data 

Definition at line 121 of file elasticsearch.cpp.

bool graphene::utilities::deleteAll ( ES es)

Definition at line 132 of file elasticsearch.cpp.

const std::string graphene::utilities::doCurl ( CurlRequest curl)

Definition at line 166 of file elasticsearch.cpp.

std::string graphene::utilities::escape_string_for_c_source_code ( const std::string &  input)

Definition at line 29 of file string_escape.cpp.

const std::string graphene::utilities::generateIndexName ( const fc::time_point_sec block_date,
const std::string &  _elasticsearch_index_prefix 

Definition at line 157 of file elasticsearch.cpp.

const std::string graphene::utilities::getEndPoint ( ES es)

Definition at line 146 of file elasticsearch.cpp.

long graphene::utilities::getResponseCode ( CURL *  handler)

Definition at line 89 of file elasticsearch.cpp.

bool graphene::utilities::handleBulkResponse ( long  http_code,
const std::string &  CurlReadBuffer 

Definition at line 96 of file elasticsearch.cpp.

const std::string graphene::utilities::joinBulkLines ( const std::vector< std::string > &  bulk)

Definition at line 82 of file elasticsearch.cpp.

std::string graphene::utilities::key_to_wif ( const fc::sha256 private_secret)

Definition at line 30 of file key_conversion.cpp.

std::string graphene::utilities::key_to_wif ( const fc::ecc::private_key key)

Definition at line 42 of file key_conversion.cpp.

bool graphene::utilities::SendBulk ( ES &&  es)

Definition at line 64 of file elasticsearch.cpp.

const std::string graphene::utilities::simpleQuery ( ES es)

Definition at line 52 of file elasticsearch.cpp.

fc::path graphene::utilities::temp_directory_path ( )

Definition at line 31 of file tempdir.cpp.

fc::optional< fc::ecc::private_key > graphene::utilities::wif_to_key ( const std::string &  wif_key)

Definition at line 47 of file key_conversion.cpp.

Variable Documentation

const char* const graphene::utilities::git_revision_description
const char* const graphene::utilities::git_revision_sha
const uint32_t graphene::utilities::git_revision_unix_timestamp